File tree Expand file tree Collapse file tree 13 files changed +212
-0
lines changed Expand file tree Collapse file tree 13 files changed +212
-0
lines changed Original file line number Diff line number Diff line change
1
+ @parent bit-docs-generate-html/site/static/build/buildHash
2
+ @module bit-docs-generate-html/site/static/build/buildHash/build.html
3
+
4
+ @description An unmodified copy of
5
+ [ bit-docs-generate-html/site/default/static/build.html] .
6
+
7
+ @body
Original file line number Diff line number Diff line change
1
+ @parent bit-docs-generate-html/site/static/build/buildHash
2
+ @module bit-docs-generate-html/site/static/build/buildHash/build.js
3
+
4
+ @description An unmodified copy of
5
+ [ bit-docs-generate-html/site/default/static/build.js] .
6
+
7
+ @body
8
+
9
+ Gets required and executed by [ bit-docs-generate-html/build/static_dist] .
Original file line number Diff line number Diff line change
1
+ @parent bit-docs-generate-html/generated
2
+ @module bit-docs-generate-html/site/static/build/buildHash
3
+
4
+ @description Generated directory that contains copied/built files for the
5
+ generated website.
6
+
7
+ @body
8
+
9
+ - [ bit-docs-generate-html/site/static/build/buildHash/build.html]
10
+ - [ bit-docs-generate-html/site/static/build/buildHash/build.js]
11
+ - [ bit-docs-generate-html/site/static/build/buildHash/dist]
12
+ - [ bit-docs-generate-html/site/static/build/buildHash/package.json]
13
+ - [ bit-docs-generate-html/site/static/build/buildHash/packages.js]
14
+ - [ bit-docs-generate-html/site/static/build/buildHash/static.js]
15
+ - [ bit-docs-generate-html/site/static/build/buildHash/styles]
16
+
17
+ See [ bit-docs-generate-html/build/build_hash] for information about how the
18
+ ` buildHash ` hash is generated.
Original file line number Diff line number Diff line change
1
+ @parent bit-docs-generate-html/site/static/build/buildHash
2
+ @module bit-docs-generate-html/site/static/build/buildHash/dist
3
+
4
+ @description An unmodified copy of the generated directory
5
+ [ bit-docs-generate-html/site/static/dist/buildHash] .
6
+
7
+ @body
Original file line number Diff line number Diff line change
1
+ @parent bit-docs-generate-html/site/static/build/buildHash
2
+ @module bit-docs-generate-html/site/static/build/buildHash/package.json
3
+
4
+ @description A modified copy of
5
+ [ bit-docs-generate-html/site/default/static/package.json] .
6
+
7
+ @body
8
+
9
+ Gets updated with any plugins that hooked into ` dependencies ` of the ` html `
10
+ hook:
11
+
12
+ ``` js
13
+ {
14
+ " name" : " bit-docs-site" ,
15
+ " version" : " 0.0.1" ,
16
+ " description" : " A site to be built" ,
17
+ " main" : " static.js" ,
18
+ " scripts" : {
19
+ " test" : " echo \" Error: no test specified\" && exit 1"
20
+ },
21
+ " steal" : {
22
+ " plugins" : [
23
+ " steal-less"
24
+ ]
25
+ },
26
+ " author" : " Bitovi" ,
27
+ " license" : " MIT" ,
28
+ " dependencies" : {
29
+ " steal" : " 1.X" ,
30
+ " steal-less" : " 1.X" ,
31
+ " bit-docs-html-toc" : " 0.6.2" ,
32
+ " bit-docs-js" : " 0.0.6" ,
33
+ " bit-docs-prettify" : " 0.1.1" ,
34
+ " bit-docs-html-highlight-line" : " 0.2.3" ,
35
+ " bit-docs-tag-demo" : " 0.3.0"
36
+ }
37
+ }
38
+ ```
39
+
40
+ The listed dependencies are installed by bit-docs using
41
+ [ enpeem] ( https://www.npmjs.com/package/enpeem ) which makes them available for
42
+ use by steal on the front end of the generated website.
Original file line number Diff line number Diff line change
1
+ @parent bit-docs-generate-html/site/static/build/buildHash
2
+ @module {{}} bit-docs-generate-html/site/static/build/buildHash/packages.js
3
+
4
+ @description A modified copy of
5
+ [ bit-docs-generate-html/site/default/static/packages.js] .
6
+
7
+ @body
8
+
9
+ Depending on what plugins you're using, gets updated to look like this:
10
+
11
+ ``` js
12
+ function callIfFunction (value ){
13
+ if (typeof value === " function" ) {
14
+ value ();
15
+ }
16
+ return value;
17
+ }
18
+ module .exports = {
19
+ " bit-docs-html-toc" : callIfFunction ( require (" bit-docs-html-toc" ) ),
20
+ " bit-docs-js" : callIfFunction ( require (" bit-docs-js" ) ),
21
+ " bit-docs-prettify" : callIfFunction ( require (" bit-docs-prettify" ) ),
22
+ " bit-docs-html-highlight-line" : callIfFunction ( require (" bit-docs-html-highlight-line" ) ),
23
+ " bit-docs-tag-demo" : callIfFunction ( require (" bit-docs-tag-demo" ) )};
24
+ ```
25
+
26
+ This generated module requires front end plugins and calls them if the ` main `
27
+ of their ` package.json ` points to a JavaScript file that exports a function.
28
+ For an example of a plugin that exports a front end function, see
29
+ [ bit-docs-prettify/prettify.js] .
Original file line number Diff line number Diff line change
1
+ @parent bit-docs-generate-html/site/static/build/buildHash
2
+ @module bit-docs-generate-html/site/static/build/buildHash/static.js
3
+
4
+ @description An unmodified copy of
5
+ [ bit-docs-generate-html/site/default/static/static.js] .
6
+
7
+ @body
8
+
9
+ Tells steal to require
10
+ [ bit-docs-generate-html/site/static/build/buildHash/packages.js] and
11
+ ` styles.less ` from
12
+ [ bit-docs-generate-html/site/static/build/buildHash/styles] , and sets up a
13
+ global ` window.PACKAGES ` variable:
14
+
15
+ ``` js
16
+ var packages = require (" ./packages" );
17
+ require (" ./styles/styles.less!" );
18
+ window .PACKAGES = packages;
19
+ ```
20
+
21
+ Gets compiled by steal, and becomes
22
+ [ bit-docs-generate-html/site/static/dist/buildHash/bundles/bit-docs-site/static.js]
Original file line number Diff line number Diff line change
1
+ @parent bit-docs-generate-html/site/static/build/buildHash
2
+ @module bit-docs-generate-html/site/static/build/buildHash/styles
3
+
4
+ @description Directory that contains less files for the generated website.
5
+
6
+ @body
7
+
8
+ If the default theme is being used, this directory will contain copies of:
9
+ - [ bit-docs-generate-html/site/default/static/styles/mixins.less]
10
+ - [ bit-docs-generate-html/site/default/static/styles/styles.less]
11
+ - [ bit-docs-generate-html/site/default/static/styles/variables.less]
12
+
13
+ Gets compiled by steal, and becomes
14
+ [ bit-docs-generate-html/site/static/dist/buildHash/bundles/bit-docs-site/static.css]
Original file line number Diff line number Diff line change
1
+ @parent bit-docs-generate-html/generated
2
+ @module bit-docs-generate-html/site/static/dist/buildHash
3
+
4
+ @description Generated directory that contains minified distributable files
5
+ for the generated website.
6
+
7
+ @body
8
+
9
+ - [ bit-docs-generate-html/site/static/dist/buildHash/bundles/bit-docs-site/static.css]
10
+ - [ bit-docs-generate-html/site/static/dist/buildHash/bundles/bit-docs-site/static.js]
11
+ - [ bit-docs-generate-html/site/static/dist/buildHash/steal.production.js]
12
+
13
+ Gets copied to [ bit-docs-generate-html/site/static/build/buildHash/dist]
14
+
15
+ See [ bit-docs-generate-html/build/build_hash] for information about how the
16
+ ` buildHash ` hash is generated.
Original file line number Diff line number Diff line change
1
+ @parent bit-docs-generate-html/site/static/dist/buildHash
2
+ @module bit-docs-generate-html/site/static/dist/buildHash/bundles/bit-docs-site/static.css
3
+
4
+ @description Less styles compiled into css for the front end of the generated
5
+ website.
6
+
7
+ @body
8
+
9
+ Gets compiled by steal because of
10
+ [ bit-docs-generate-html/site/static/build/buildHash/static.js] .
You can’t perform that action at this time.
0 commit comments