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
这个提交包含在:
Aviv Eyal 2023-08-30 11:14:14 -07:00
父节点 4c314a733c
当前提交 aeab4efe17
共有 3 个文件被更改,包括 18 次插入2 次删除

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;

查看文件

@ -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"
}
}
}