Skip to content

Commit

Permalink
option "links='true'" to generate links in the {{dirTree}}-helper
Browse files Browse the repository at this point in the history
- The dirTree-helper can now generate links that point to the
  listed files in the github repository. The option `links='true'`
  can be used to activate this behavior.
- Links are only generated for files matching the glob-pattern,
  not for intermediate nodes that are implicitely created.
  • Loading branch information
nknapp committed Apr 7, 2017
1 parent 3fe174c commit 4579887
Show file tree
Hide file tree
Showing 10 changed files with 347 additions and 412 deletions.
2 changes: 1 addition & 1 deletion .thought/templates/docs/helpers.md.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

The following helpers are built-in for use in templates and partials

{{jsdoc 'handlebars/helpers.js'}}
{{jsdoc 'handlebars/helpers/*.js' }}

2 changes: 1 addition & 1 deletion customize.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module.exports = function createSpec (workingDir) {
handlebars: {
partials: path.join(__dirname, 'handlebars', 'partials'),
templates: path.join(__dirname, 'handlebars', 'templates'),
helpers: require.resolve('./handlebars/helpers.js'),
helpers: require.resolve('./handlebars/helpers/index.js'),
data: {
'package': require(path.resolve(workingDir, 'package.json')),
config: config,
Expand Down
Loading

0 comments on commit 4579887

Please sign in to comment.