chore(docs): change api root to latest stable

This commit is contained in:
Brian Dennis
2016-07-18 18:10:14 -05:00
parent cca3309f4c
commit f4fac225fa
7 changed files with 46 additions and 16 deletions

View File

@ -10,7 +10,9 @@ module.exports = function indexPage(renderDocsProcessor) {
var currentVersion = versionData.current.name;
var latestVersion = versionData.latest.name;
var versionPath = currentVersion == 'nightly' ? '' : currentVersion;
// 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',