diff --git a/scripts/docs/processors/index-page.js b/scripts/docs/processors/index-page.js index 0866b104a4..81ed8cd4df 100644 --- a/scripts/docs/processors/index-page.js +++ b/scripts/docs/processors/index-page.js @@ -10,7 +10,7 @@ module.exports = function indexPage(renderDocsProcessor) { var currentVersion = versionData.current.name; var latestVersion = versionData.latest.name; - var versionPath = currentVersion == latestVersion ? '' : currentVersion; + var versionPath = currentVersion == 'nightly' ? '' : currentVersion; docs.push({ docType: 'index-page', diff --git a/scripts/docs/templates/common.template.html b/scripts/docs/templates/common.template.html index 470def8422..7b3092ecf5 100644 --- a/scripts/docs/templates/common.template.html +++ b/scripts/docs/templates/common.template.html @@ -9,8 +9,8 @@ title: "<@ if doc.docType == "directive" @><$ doc.name | dashCase $><@ else @><$ header_sub_title: "<$ doc.docType | capital $> in module <$ doc.module $>" doc: "<$ doc.name $>" docType: "<$ doc.docType $>" -<@ if doc.demo and false @>show_preview_device: true -preview_device_url= "<$ doc.demo $>"<@ endif @> +<@ if doc.demo @>show_preview_device: true +preview_device_url: "<$ doc.demo $>"<@ endif @> ---