mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
32 lines
959 B
JavaScript
32 lines
959 B
JavaScript
module.exports = function jekyll(renderDocsProcessor){
|
|
return {
|
|
name: 'jekyll',
|
|
description: 'Create jekyll includes',
|
|
$runAfter: ['adding-extra-docs'],
|
|
$runBefore: ['extra-docs-added'],
|
|
$process: function(docs) {
|
|
var currentVersion = renderDocsProcessor.extraData.version.current.name;
|
|
|
|
docs.push({
|
|
docType: 'api-menu',
|
|
id: 'api-menu',
|
|
template: 'api_menu.template.html',
|
|
outputPath: '_includes/api_menu.html'
|
|
});
|
|
//TODO autogenerate this
|
|
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'
|
|
});
|
|
}
|
|
}
|
|
};
|