|
1 |
| - |
2 |
| -var getDefaultHelpers = require("./make_default_helpers"), |
3 |
| - _ = require("lodash"); |
| 1 | +var getDefaultHelpers = require("./make_default_helpers"); |
| 2 | +var _ = require("lodash"); |
4 | 3 | var fsx = require('../fs_extras');
|
5 | 4 | var path = require('path');
|
6 | 5 | 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 | + |
9 | 9 | /**
|
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 |
12 | 12 | *
|
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)` |
17 | 17 | *
|
18 | 18 | * Registers helpers
|
19 | 19 | *
|
@@ -42,7 +42,7 @@ var Handlebars = require("handlebars"),
|
42 | 42 | module.exports = function(buildTemplatesPromise, docMap, options, getCurrent){
|
43 | 43 |
|
44 | 44 | return buildTemplatesPromise.then(function(OtherHandlebars){
|
45 |
| - // get the default heleprs |
| 45 | + // get the default helpers |
46 | 46 | var helpers = getDefaultHelpers(docMap,options,getCurrent, OtherHandlebars);
|
47 | 47 |
|
48 | 48 | var templatesPath = path.join('site/templates', buildHash(options) );
|
@@ -73,8 +73,4 @@ module.exports = function(buildTemplatesPromise, docMap, options, getCurrent){
|
73 | 73 |
|
74 | 74 | });
|
75 | 75 |
|
76 |
| - |
77 |
| - |
78 |
| - |
79 |
| - |
80 | 76 | };
|
0 commit comments