1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-23 07:12:41 +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
/docs/
/.divinercache/
/webroot/rsrc/externals/javelin/docs/.divinercache/
/src/.cache/
# libphutil

View file

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