add api menu templates

This commit is contained in:
Tim Lancina
2015-09-01 15:51:56 -05:00
parent ab079ce72c
commit 1027d2bacc
3 changed files with 68 additions and 47 deletions

View File

@ -10,6 +10,7 @@ var path = require('path');
module.exports = new Package('ionic-v2-docs', [jsdocPackage, nunjucksPackage, typescriptPackage, linksPackage, gitPackage])
.processor(require('./processors/index-page'))
.processor(require('./processors/jekyll'))
// for debugging docs
// .processor(function test(){
@ -68,9 +69,21 @@ module.exports = new Package('ionic-v2-docs', [jsdocPackage, nunjucksPackage, ty
// Nunjucks and Angular conflict in their template bindings so change the Nunjucks
templateEngine.config.tags = {
variableStart: '{$',
variableEnd: '$}'
variableEnd: '$}',
blockStart: '<@',
blockEnd: '@>'
};
//Don't conflict with the jekyll tags
// config.set('rendering.nunjucks.config.tags', {
// blockStart: '<@',
// blockEnd: '@>',
// variableStart: '<$',
// variableEnd: '$>',
// commentStart: '<#',
// commentEnd: '#>'
// });
templateFinder.templateFolders.unshift(path.resolve(__dirname, 'templates'));
// Specify how to match docs to templates.