mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
add api menu templates
This commit is contained in:
@ -1,23 +1,31 @@
|
||||
var log = require('winston');
|
||||
module.exports = function jekyll(){
|
||||
return {
|
||||
name: 'jekyll',
|
||||
description: 'Create jekyll includes',
|
||||
$runAfter: ['adding-extra-docs'],
|
||||
$runBefore: ['extra-docs-added'],
|
||||
$process: function(docs) {
|
||||
//TODO(tlancina): supply this via DI
|
||||
var currentVersion = '2.0.0-alpha.2';
|
||||
|
||||
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'
|
||||
});
|
||||
docs.push({
|
||||
docType: 'api-menu',
|
||||
id: 'api-menu',
|
||||
template: 'api_menu.template.html',
|
||||
outputPath: '_includes/api_menu.html'
|
||||
});
|
||||
docs.push({
|
||||
docType: 'api-menu-version',
|
||||
id: 'api-menu-version',
|
||||
template: 'api_menu_version.template.html',
|
||||
outputPath: '_includes/api_menu_' + currentVersion + '.html'
|
||||
});
|
||||
docs.push({
|
||||
docType: 'api-version-select',
|
||||
id: 'api-version-select',
|
||||
template: 'api_version_select.template.html',
|
||||
outputPath: '_includes/api_version_select.html'
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user