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

Move man pages to their own directory

This commit is contained in:
J. King 2021-05-29 15:44:51 -04:00
parent 2ec7acc50b
commit 3e55ab3849
3 changed files with 10 additions and 3 deletions

1
.gitignore vendored
View file

@ -7,6 +7,7 @@
/dist/arch/arsse/
/dist/arch/src/
/dist/arch/pkg/
/dist/man/
/arsse.db*
/config.php
/.php_cs.cache

View file

@ -204,6 +204,7 @@ class RoboFile extends \Robo\Tasks {
$dir."RoboFile.php",
$dir."CONTRIBUTING.md",
$dir."docs",
$dir."manpages",
$dir."tests",
$dir."vendor-bin",
$dir."vendor/bin",
@ -332,9 +333,14 @@ class RoboFile extends \Robo\Tasks {
* available in $PATH.
*/
public function manpage(): Result {
$src = BASE."docs/manpage.md";
$out = BASE."dist/manpage";
return $this->taskExec("pandoc -s -f markdown-smart -t man -o ".escapeshellarg($out)." ".escapeshellarg($src))->run();
$p = $this->taskParallelExec();
$man = [
'en' => "man1/arsse.1",
];
foreach($man as $src => $out) {
$p->process("pandoc -s -f markdown-smart -t man -o ".escapeshellarg(BASE."dist/$out")." ".escapeshellarg(BASE."manpages/$src.md"));
}
return $p->run();
}
protected function changelogParse(string $text, string $targetVersion): array {