mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
v2 docs
This commit is contained in:
@ -17,7 +17,7 @@ module.exports = function indexPage(renderDocsProcessor) {
|
||||
id: 'index-page',
|
||||
currentVersion: currentVersion,
|
||||
template: 'api_index.template.html',
|
||||
outputPath: 'docs/' + versionPath + '/api/index.md'
|
||||
outputPath: 'docs/v2/' + versionPath + '/api/index.md'
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -11,20 +11,20 @@ module.exports = function jekyll(renderDocsProcessor){
|
||||
docType: 'api-menu',
|
||||
id: 'api-menu',
|
||||
template: 'api_menu.template.html',
|
||||
outputPath: '_includes/api_menu.html'
|
||||
outputPath: '_includes/v2_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'
|
||||
outputPath: '_includes/v2_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'
|
||||
outputPath: '_includes/v2_api_version_select.html'
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ module.exports = function latestVersion(renderDocsProcessor) {
|
||||
$process: function(docs) {
|
||||
var versionData = renderDocsProcessor.extraData.version;
|
||||
|
||||
var docsBase = 'dist/ionic-site/docs';
|
||||
var docsBase = 'dist/ionic-site/docs/v2/';
|
||||
var versionDir = path.resolve(docsBase, versionData.latest.name);
|
||||
var latestDir = path.resolve(docsBase, 'api');
|
||||
|
||||
|
Reference in New Issue
Block a user