Update to new panino, fix doc bugs
This commit is contained in:
parent
5e1c1457d6
commit
1846f3c9ba
29 changed files with 1055 additions and 17529 deletions
38
doc/build.js
38
doc/build.js
|
|
@ -1,10 +1,38 @@
|
|||
var path = require("path");
|
||||
|
||||
var panino = require("panino");
|
||||
|
||||
var srcPath = process.cwd() + "/../lib/ace";
|
||||
var srcPath = __dirname + "/../lib/ace";
|
||||
|
||||
panino.main(["--path=" + srcPath, "-o", "../api/", "-u", "../api/resources", "-a", "./additionalObjs.json", "-i", "index.md", "-t", "Ace API", "--skin", "./resources/ace/", "-s"], function(err) {
|
||||
var buildOptions = {
|
||||
parseOptions: "./parseOptions.json",
|
||||
additionalObjs: "./additionalObjs.json"
|
||||
}
|
||||
|
||||
var options = {
|
||||
title : "Ace API",
|
||||
linkFormat : 'http://example.com/{file}#{line}',
|
||||
output : "../api/",
|
||||
outputAssets : "../api/resources",
|
||||
skin : "./resources/ace/templates/layout.jade",
|
||||
assets : "./resources/ace/skeleton",
|
||||
additionalObjs : "./additionalObjs.json",
|
||||
exclude : ["**/*_test.js", "**/mode/**", "**/test/**", "**/theme/**", "**/worker/**"],
|
||||
index : "./index.md"
|
||||
};
|
||||
|
||||
files = [srcPath];
|
||||
|
||||
panino.parse(files, options, function (err, ast) {
|
||||
if (err) {
|
||||
console.error(err);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
panino.render('html', ast, options, function (err) {
|
||||
if (err) {
|
||||
console.error(err);
|
||||
process.exit(-1);
|
||||
}
|
||||
console.error(err);
|
||||
process.exit(1);
|
||||
}
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue