From e7e4c823e4e502ef3730f91db1a4e05b21286286 Mon Sep 17 00:00:00 2001 From: "J. King" Date: Sun, 4 Aug 2019 16:21:58 -0400 Subject: [PATCH] Clean up theme files after generation --- RoboFile.php | 7 +++++-- docs/config.json | 4 +++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/RoboFile.php b/RoboFile.php index 7e82d006..2bd341cf 100644 --- a/RoboFile.php +++ b/RoboFile.php @@ -180,7 +180,11 @@ class RoboFile extends \Robo\Tasks { */ public function manual(array $args): Result { $execpath = escapeshellarg(realpath(self::BASE."vendor/bin/daux")); - return $this->taskExec($execpath)->arg("generate")->option("-d", self::BASE."manual")->args($args)->run(); + $t = $this->collectionBuilder(); + $t->taskExec($execpath)->arg("generate")->option("-d", self::BASE."manual")->args($args); + $t->taskDeleteDir(realpath(self::BASE."manual/theme")); + $t->taskDeleteDir(realpath(self::BASE."manual/themes/src")); + return $t->run(); } /** Serves a live view of the manual using PHP's built-in Web server */ @@ -196,7 +200,6 @@ class RoboFile extends \Robo\Tasks { */ public function manualTheme(array $args): Result { $languages = ["php", "bash", "shell", "xml", "nginx", "apache"]; - $themesrc = realpath(self::BASE."docs/theme/src/").\DIRECTORY_SEPARATOR; $themeout = realpath(self::BASE."docs/theme/arsse/").\DIRECTORY_SEPARATOR; $dauxjs = realpath(self::BASE."vendor-bin/daux/vendor/daux/daux.io/themes/daux/js/").\DIRECTORY_SEPARATOR; $dauxout = realpath(self::BASE."docs/theme/daux/js/").\DIRECTORY_SEPARATOR; diff --git a/docs/config.json b/docs/config.json index 8d9f2f06..15701ff4 100644 --- a/docs/config.json +++ b/docs/config.json @@ -1,6 +1,7 @@ { "title": "The Advanced RSS Environment", "tagline": "The clean & modern RSS server that doesn't give you any crap.", + "author": "J. King", "languages": { "en": "English" }, @@ -8,6 +9,7 @@ "html": { "theme": "arsse", "float": false, - "toggle_code": false + "toggle_code": false, + "search": false } }