|
@ -2,7 +2,6 @@ |
|
|
|
|
|
|
|
|
use Robo\Result; |
|
|
use Robo\Result; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const BASE = __DIR__.\DIRECTORY_SEPARATOR; |
|
|
const BASE = __DIR__.\DIRECTORY_SEPARATOR; |
|
|
const BASE_TEST = BASE."tests".\DIRECTORY_SEPARATOR; |
|
|
const BASE_TEST = BASE."tests".\DIRECTORY_SEPARATOR; |
|
|
define("IS_WIN", defined("PHP_WINDOWS_VERSION_MAJOR")); |
|
|
define("IS_WIN", defined("PHP_WINDOWS_VERSION_MAJOR")); |
|
@ -223,7 +222,7 @@ class RoboFile extends \Robo\Tasks { |
|
|
// rebuild the stylesheet |
|
|
// rebuild the stylesheet |
|
|
$t->addCode([$this, "manualCss"]); |
|
|
$t->addCode([$this, "manualCss"]); |
|
|
// copy JavaScript files from the Daux theme |
|
|
// copy JavaScript files from the Daux theme |
|
|
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); |
|
|
} |
|
|
} |
|
|
// download highlight.js |
|
|
// download highlight.js |
|
@ -231,7 +230,7 @@ class RoboFile extends \Robo\Tasks { |
|
|
// 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 |
|
|
$post = http_build_query((function($langs) { |
|
|
$post = http_build_query((function($langs) { |
|
|
$out = []; |
|
|
$out = []; |
|
|
foreach($langs as $l) { |
|
|
foreach ($langs as $l) { |
|
|
$out[$l.".js"] = "on"; |
|
|
$out[$l.".js"] = "on"; |
|
|
} |
|
|
} |
|
|
return $out; |
|
|
return $out; |
|
|