1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-22 21:22:40 +00:00

Anticipate the next release of Daux

This commit is contained in:
J. King 2019-08-11 12:48:18 -04:00
parent 2a19777537
commit ca49785f6f

View file

@ -211,7 +211,6 @@ class RoboFile extends \Robo\Tasks {
$languages = ["php", "bash", "shell", "xml", "nginx", "apache"]; $languages = ["php", "bash", "shell", "xml", "nginx", "apache"];
$themeout = realpath(self::BASE."docs/theme/arsse/").\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; $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;
// start a collection; this stops after the first failure // start a collection; this stops after the first failure
$t = $this->collectionBuilder(); $t = $this->collectionBuilder();
$tmp = $t->tmpDir().\DIRECTORY_SEPARATOR; $tmp = $t->tmpDir().\DIRECTORY_SEPARATOR;
@ -221,12 +220,6 @@ class RoboFile extends \Robo\Tasks {
foreach(glob($dauxjs."daux*") as $file) { foreach(glob($dauxjs."daux*") as $file) {
$t->taskFilesystemStack()->copy($file, $themeout.basename($file), true); $t->taskFilesystemStack()->copy($file, $themeout.basename($file), true);
} }
foreach(glob($dauxjs."jquery*") as $file) {
$t->taskFilesystemStack()->copy($file, $themeout.basename("jquery.min.js"), true);
}
foreach(glob($dauxjs."html5shiv*") as $file) {
$t->taskFilesystemStack()->copy($file, $dauxout.basename($file), true);
}
// download highlight.js // download highlight.js
$t->addCode(function() use ($languages, $tmp, $themeout) { $t->addCode(function() use ($languages, $tmp, $themeout) {
// compile the list of desired language (enumerated above) into an application/x-www-form-urlencoded body // compile the list of desired language (enumerated above) into an application/x-www-form-urlencoded body