Skip to content

Commit 091facc

Browse files
author
Manuel Mujica
authored
Merge pull request #1 from bit-docs/steal-layout
Replicate StealJS website layout
2 parents e1308c2 + 5733029 commit 091facc

31 files changed

+1369
-1576
lines changed

.editorconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
; Unix-style newlines
2+
[*]
3+
end_of_line = LF
4+
indent_style = tab
5+
trim_trailing_whitespace = false
6+
insert_final_newline = true

make-example.js

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,29 @@ var fs = require("fs");
44
var readFile = Q.denodeify(fs.readFile);
55
var path = require("path");
66

7-
var docMap = readFile(__dirname+"/docMap.json").then(function(source){
8-
return JSON.parse(""+source);
7+
var docMap = readFile(path.join(__dirname, "docMap.json"))
8+
.then(function(source) {
9+
return JSON.parse(""+source);
910
});
1011

1112
var forceBuild = process.argv.indexOf("-f") !== -1;
1213

13-
generate(docMap,{
14-
html: {
15-
templates: path.join(__dirname, "templates"),
16-
dependencies: {
17-
"bit-docs-docjs-theme": __dirname,
18-
"bit-docs-prettify": "^0.1.0",
19-
"bit-docs-html-highlight-line": "^0.2.2"
20-
}
21-
},
22-
dest: path.join(__dirname, "temp"),
23-
parent: "StealJS",
24-
forceBuild: forceBuild,
14+
generate(docMap, {
15+
html: {
16+
templates: path.join(__dirname, "templates"),
17+
dependencies: {
18+
"bit-docs-docjs-theme": __dirname,
19+
"bit-docs-prettify": "^0.1.0",
20+
"bit-docs-html-highlight-line": "^0.2.2",
21+
"bit-docs-html-toc": "^0.2.1"
22+
}
23+
},
24+
dest: path.join(__dirname, "temp"),
25+
parent: "StealJS",
26+
forceBuild: forceBuild,
2527
minifyBuild: false,
26-
debug: true
27-
}).done();
28+
debug: true
29+
})
30+
.catch(function(error) {
31+
console.error(error);
32+
});

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
},
2121
"homepage": "https://github.com/bit-docs/bit-docs-docjs-theme#readme",
2222
"devDependencies": {
23-
"bit-docs-generate-html": "^0.3.3"
23+
"bit-docs-generate-html": "^0.3.3",
24+
"bit-docs-html-toc": "^0.2.1"
2425
}
2526
}

static/img/StealJS-Logo-V2.svg

Lines changed: 45 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)