1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-27 01:02:42 +01:00

Generate Diviner book for Javelin

Summary: And also fix a bug in the generator script.

Test Plan: Run `bin/diviner generate`, wait till the cows come home, see 3 pages about Javelin in the Diviner app.

Reviewers: O1 Blessed Committers, chris

Reviewed By: O1 Blessed Committers, chris

Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Differential Revision: https://we.phorge.it/D25429
This commit is contained in:
Aviv Eyal 2023-08-30 11:14:14 -07:00
parent 4c314a733c
commit aeab4efe17
3 changed files with 18 additions and 2 deletions

1
.gitignore vendored
View file

@ -4,6 +4,7 @@
# Diviner # Diviner
/docs/ /docs/
/.divinercache/ /.divinercache/
/webroot/rsrc/externals/javelin/docs/.divinercache/
/src/.cache/ /src/.cache/
# libphutil # libphutil

View file

@ -348,7 +348,7 @@ final class DivinerGenerateWorkflow extends DivinerWorkflow {
$atomizers[$atomizer][] = $file; $atomizers[$atomizer][] = $file;
} }
$root = dirname(phutil_get_library_root('phabricator')); $root = dirname(phutil_get_library_root('phorge'));
$config_root = $this->getConfig('root'); $config_root = $this->getConfig('root');
$bar = id(new PhutilConsoleProgressBar()) $bar = id(new PhutilConsoleProgressBar())
@ -363,7 +363,6 @@ final class DivinerGenerateWorkflow extends DivinerWorkflow {
$this->getBookConfigPath(), $this->getBookConfigPath(),
$class, $class,
$chunk); $chunk);
$future->setCWD($config_root);
$futures[] = $future; $futures[] = $future;

View file

@ -0,0 +1,16 @@
{
"name" : "javelin",
"title" : "Javelin Documentation",
"short" : "Javelin Docs",
"preface" : "Documentation for developers using Javelin.",
"uri.source":
"https://we.phorge.it/diffusion/P/browse/master/%f$%l",
"rules": {
"(\\.diviner$)": "DivinerArticleAtomizer"
},
"groups": {
"concepts": {
"name": "Concepts"
}
}
}