chore(): begin adding ionic components to mono-repo.

This commit is contained in:
Josh Thomas
2017-06-21 09:33:06 -05:00
parent 1181fe98fc
commit bd5b67304d
2159 changed files with 15687 additions and 147 deletions

View File

@ -0,0 +1,26 @@
module.exports = function indexPage(renderDocsProcessor) {
return {
name: 'index-page',
description: 'Create documentation index page',
$runAfter: ['adding-extra-docs'],
$runBefore: ['extra-docs-added'],
$process: function(docs) {
//TODO(tlancina): move versionData into its own service
var versionData = renderDocsProcessor.extraData.version;
var currentVersion = versionData.current.name;
var latestVersion = versionData.latest.name;
// var versionPath = currentVersion == 'nightly' ? '' : currentVersion;
// If latest and not initial build, set path to docs root
var versionPath = (currentVersion == latestVersion) && !versionData.initialVersionBuild ? '' : currentVersion;
docs.push({
docType: 'index-page',
id: 'index-page',
currentVersion: currentVersion,
template: 'api_index.template.html',
outputPath: 'content/docs/' + versionPath + '/api/index.md'
});
}
}
};