Skip to content

Commit ae27240

Browse files
committed
Document stuff in /build
1 parent 58e06f8 commit ae27240

File tree

4 files changed

+18
-23
lines changed

4 files changed

+18
-23
lines changed

build/helpers.js

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
2-
var getDefaultHelpers = require("./make_default_helpers"),
3-
_ = require("lodash");
1+
var getDefaultHelpers = require("./make_default_helpers");
2+
var _ = require("lodash");
43
var fsx = require('../fs_extras');
54
var path = require('path');
65
var md5 = require("md5");
7-
var Handlebars = require("handlebars"),
8-
buildHash = require("./build_hash");
6+
var Handlebars = require("handlebars");
7+
var buildHash = require("./build_hash");
8+
99
/**
10-
* @function documentjs.generators.html.build.helpers
11-
* @parent documentjs.generators.html.build.methods
10+
* @parent bit-docs-generate-html/modules
11+
* @module {Promise} bit-docs-generate-html/build/helpers
1212
*
13-
* Gets the default helpers and helpers in the _documentjs/site/templates_ folder and
14-
* registers them with Handlebars.
15-
*
16-
* @signature `.build.helpers(buildTemplatesPromise, docMap, options, getCurrent)`
13+
* Gets the default helpers, and helpers in the _{buildHash}/site/templates_
14+
* folder, and registers them with Handlebars.
15+
*
16+
* @signature `build.helpers(buildTemplatesPromise, docMap, options, getCurrent)`
1717
*
1818
* Registers helpers
1919
*
@@ -42,7 +42,7 @@ var Handlebars = require("handlebars"),
4242
module.exports = function(buildTemplatesPromise, docMap, options, getCurrent){
4343

4444
return buildTemplatesPromise.then(function(OtherHandlebars){
45-
// get the default heleprs
45+
// get the default helpers
4646
var helpers = getDefaultHelpers(docMap,options,getCurrent, OtherHandlebars);
4747

4848
var templatesPath = path.join('site/templates', buildHash(options) );
@@ -73,8 +73,4 @@ module.exports = function(buildTemplatesPromise, docMap, options, getCurrent){
7373

7474
});
7575

76-
77-
78-
79-
8076
};

build/make_default_helpers.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -386,11 +386,10 @@ module.exports = function(docMap, config, getCurrent, Handlebars){
386386
}
387387
},
388388
/**
389-
* @function documentjs.generators.html.defaultHelpers.makeParentTitle
390-
*
391-
* Returns the parent docObject's title.
392-
*
393-
*/
389+
* @function bit-docs-generate-html/theme/templates/helpers/getTitle
390+
*
391+
* Returns the parent docObject's title.
392+
*/
394393
getTitle: function(){
395394
var root = docMap[config.parent];
396395
return (root.title || root.name)+ " - "+(this.title || this.name);

build/renderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ var buildTemplates = require("./templates"),
99

1010

1111
/**
12-
* @module {function} bit-docs-generate-html/build/renderer
1312
* @parent bit-docs-generate-html/modules
13+
* @module {function} bit-docs-generate-html/build/renderer
1414
*
1515
* Creates a renderer function used to generate
1616
* the documentation.

build/static_dist.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ var queue = promiseLock(),
1212
remove = Q.denodeify(fs.remove);
1313

1414
/**
15-
* @module {function} bit-docs-generate-html/build/static_dist
1615
* @parent bit-docs-generate-html/modules
16+
* @module {function} bit-docs-generate-html/build/static_dist
1717
*
1818
* Builds a static distributable which will eventually be copied
1919
* to the `static` folder of the generated output.

0 commit comments

Comments
 (0)