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:
parent
2ec7acc50b
commit
3e55ab3849
3 changed files with 10 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -7,6 +7,7 @@
|
||||||
/dist/arch/arsse/
|
/dist/arch/arsse/
|
||||||
/dist/arch/src/
|
/dist/arch/src/
|
||||||
/dist/arch/pkg/
|
/dist/arch/pkg/
|
||||||
|
/dist/man/
|
||||||
/arsse.db*
|
/arsse.db*
|
||||||
/config.php
|
/config.php
|
||||||
/.php_cs.cache
|
/.php_cs.cache
|
||||||
|
|
12
RoboFile.php
12
RoboFile.php
|
@ -204,6 +204,7 @@ class RoboFile extends \Robo\Tasks {
|
||||||
$dir."RoboFile.php",
|
$dir."RoboFile.php",
|
||||||
$dir."CONTRIBUTING.md",
|
$dir."CONTRIBUTING.md",
|
||||||
$dir."docs",
|
$dir."docs",
|
||||||
|
$dir."manpages",
|
||||||
$dir."tests",
|
$dir."tests",
|
||||||
$dir."vendor-bin",
|
$dir."vendor-bin",
|
||||||
$dir."vendor/bin",
|
$dir."vendor/bin",
|
||||||
|
@ -332,9 +333,14 @@ class RoboFile extends \Robo\Tasks {
|
||||||
* available in $PATH.
|
* available in $PATH.
|
||||||
*/
|
*/
|
||||||
public function manpage(): Result {
|
public function manpage(): Result {
|
||||||
$src = BASE."docs/manpage.md";
|
$p = $this->taskParallelExec();
|
||||||
$out = BASE."dist/manpage";
|
$man = [
|
||||||
return $this->taskExec("pandoc -s -f markdown-smart -t man -o ".escapeshellarg($out)." ".escapeshellarg($src))->run();
|
'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 {
|
protected function changelogParse(string $text, string $targetVersion): array {
|
||||||
|
|
Loading…
Reference in a new issue