1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-22 13:12:41 +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"];
$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;
// start a collection; this stops after the first failure
$t = $this->collectionBuilder();
$tmp = $t->tmpDir().\DIRECTORY_SEPARATOR;
@ -221,12 +220,6 @@ class RoboFile extends \Robo\Tasks {
foreach(glob($dauxjs."daux*") as $file) {
$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
$t->addCode(function() use ($languages, $tmp, $themeout) {
// compile the list of desired language (enumerated above) into an application/x-www-form-urlencoded body