generate api index page

This commit is contained in:
Tim Lancina
2015-09-01 15:07:00 -05:00
parent 481fd7f651
commit d0c9f1404e
28 changed files with 1183 additions and 1 deletions

View File

@ -0,0 +1,23 @@
var log = require('winston');
module.exports = {
name: 'jekyll',
runAfter: ['api-docs'],
runBefore: ['compute-path'],
description: 'Create jekyll includes',
process: function(docs, config) {
var currentVersion = config.versionData.current.name;
docs.push({
template: 'api_menu.template.html',
outputPath: '_includes/api_menu.html'
});
docs.push({
template: 'api_menu_version.template.html',
outputPath: '_includes/api_menu_' + currentVersion + '.html'
});
docs.push({
template: 'api_version_select.template.html',
outputPath: '_includes/api_version_select.html'
});
}
};