mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
24 lines
648 B
JavaScript
24 lines
648 B
JavaScript
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'
|
|
});
|
|
}
|
|
};
|