mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
25 lines
650 B
JavaScript
25 lines
650 B
JavaScript
var path = require('canonical-path');
|
|
var log = require('winston');
|
|
|
|
var currentVersion;
|
|
var contentsFolder;
|
|
module.exports = {
|
|
name: 'index-page',
|
|
runAfter: ['adding-extra-docs'],
|
|
runBefore: ['extra-docs-added'],
|
|
description: 'Create documentation index page',
|
|
init: function(config) {
|
|
currentVersion = config.get('currentVersion');
|
|
contentsFolder = config.get('rendering.contentsFolder');
|
|
},
|
|
process: function(docs) {
|
|
docs.push({
|
|
docType: 'index-page',
|
|
id: 'index-page',
|
|
currentVersion: currentVersion,
|
|
template: 'index.template.html',
|
|
outputPath: contentsFolder + '/index.md'
|
|
});
|
|
}
|
|
};
|