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:
parent
4c314a733c
commit
aeab4efe17
3 changed files with 18 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -4,6 +4,7 @@
|
|||
# Diviner
|
||||
/docs/
|
||||
/.divinercache/
|
||||
/webroot/rsrc/externals/javelin/docs/.divinercache/
|
||||
/src/.cache/
|
||||
|
||||
# libphutil
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
16
webroot/rsrc/externals/javelin/docs/javelin.book
vendored
Normal file
16
webroot/rsrc/externals/javelin/docs/javelin.book
vendored
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue