-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmake-example.js
More file actions
33 lines (30 loc) · 818 Bytes
/
make-example.js
File metadata and controls
33 lines (30 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
var generate = require("bit-docs-generate-html/generate");
var Q = require("q");
var fs = require("fs");
var readFile = Q.denodeify(fs.readFile);
var path = require("path");
var docMap = readFile(path.join(__dirname, "docMap.json"))
.then(function(source) {
return JSON.parse(""+source);
});
var forceBuild = process.argv.indexOf("-f") !== -1;
generate(docMap, {
html: {
templates: path.join(__dirname, "templates"),
dependencies: {
"bit-docs-docjs-theme": __dirname,
"bit-docs-prettify": "^0.1.0",
"bit-docs-html-highlight-line": "^0.2.2",
"bit-docs-html-toc": "^0.4.0"
}
},
dest: path.join(__dirname, "temp"),
parent: "StealJS",
googleAnalyticsTrackingCode: 'UA-2302003-20',
forceBuild: forceBuild,
minifyBuild: false,
debug: true
})
.catch(function(error) {
console.error(error);
});