mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
generate api index page
This commit is contained in:
18
scripts/docs/processors/index-page.js
Normal file
18
scripts/docs/processors/index-page.js
Normal file
@ -0,0 +1,18 @@
|
||||
module.exports = function indexPage() {
|
||||
return {
|
||||
name: 'index-page',
|
||||
description: 'Create documentation index page',
|
||||
version: 'nightly',
|
||||
$runAfter: ['adding-extra-docs'],
|
||||
$runBefore: ['extra-docs-added'],
|
||||
$process: function(docs) {
|
||||
docs.push({
|
||||
docType: 'index-page',
|
||||
id: 'index-page',
|
||||
currentVersion: this.version,
|
||||
template: 'api_index.template.html',
|
||||
outputPath: 'index.md'
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user