mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +08:00
generate api index page
This commit is contained in:
23
scripts/docs/processors/jekyll.js
Normal file
23
scripts/docs/processors/jekyll.js
Normal 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'
|
||||
});
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user