mirror of
https://github.com/wahyd4/Libr-mobile.git
synced 2026-08-09 12:55:56 +10: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'
|
|
});
|
|
}
|
|
};
|