@@ -3,37 +3,38 @@ var Q = require('q');
3
3
var md5 = require ( 'md5' ) ;
4
4
var path = require ( 'path' ) ;
5
5
var promiseLock = require ( "../promise_lock" ) ;
6
- var queue = promiseLock ( ) ,
7
- buildHash = require ( "./build_hash" ) ,
8
- _ = require ( "lodash" ) ;
6
+ var queue = promiseLock ( ) ;
7
+ var buildHash = require ( "./build_hash" ) ;
8
+ var _ = require ( "lodash" ) ;
9
9
10
10
/**
11
- * @function documentjs.generators. html.build.templates
12
- * @parent documentjs.generators. html. build.methods
11
+ * @parent bit-docs-generate- html/modules
12
+ * @module {function} bit-docs-generate- html/ build/templates
13
13
*
14
- * Creates a folder with all the templates used to generate
15
- * the documentation.
14
+ * Creates a folder with all the templates used to generate the documentation.
16
15
*
17
- * @signature `. build.templates(siteConfig)`
16
+ * @signature `build.templates(siteConfig)`
18
17
*
19
- * Builds the _documentjs /site/templates_ folder with the following
20
- * steps:
18
+ * Builds the [bit-docs-generate-html /site/templates/buildHash] folder with the
19
+ * following steps:
21
20
*
22
- * 1. Copies _documentjs/site/default/templates_ to _documentjs/site/templates_.
23
- * 2. Copies `siteConfig.templates` to _documentjs/site/templates_.
21
+ * 1. Copies [bit-docs-generate-html/site/default/templates] to
22
+ * [bit-docs-generate-html/site/templates/buildHash].
23
+ * 2. Copies `siteConfig.templates` to
24
+ * [bit-docs-generate-html/site/templates/buildHash].
24
25
*
25
26
* @param {{} } siteConfig
26
27
*
27
28
* siteConfig used to configure the behavior of the templates.
28
29
*
29
- * @option {Boolean} [forceBuild=false] If set to `true`, rebuilds the
30
- * static bundle even if it has already been built.
31
- *
32
- * @option {String} [templates] The location of templates used to overwrite or
33
- * add to the default templates.
34
- *
35
- * @return {Promise } A promise that resolves if the static dist was successfully created.
30
+ * @option {Boolean} [forceBuild=false] If set to `true`, rebuilds the static
31
+ * bundle even if it has already been built.
32
+ *
33
+ * @option {String} [templates] The location of templates used to overwrite or
34
+ * add to the default templates.
36
35
*
36
+ * @return {Promise } A promise that resolves if the static dist was
37
+ * successfully created.
37
38
*/
38
39
module . exports = function ( siteConfig ) {
39
40
0 commit comments