From bf2ba2e9e7073ab1116ee04178d695110e076a25 Mon Sep 17 00:00:00 2001 From: Ibby Date: Thu, 23 Mar 2017 15:18:35 -0400 Subject: [PATCH] chore(docs): fix native menu rendering --- scripts/docs/processors/jekyll.js | 4 ++-- scripts/docs/processors/npm-id.js | 2 +- scripts/docs/templates/native_menu.template.html | 5 ++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/scripts/docs/processors/jekyll.js b/scripts/docs/processors/jekyll.js index 993224985..56a2032c4 100644 --- a/scripts/docs/processors/jekyll.js +++ b/scripts/docs/processors/jekyll.js @@ -26,8 +26,8 @@ module.exports = function jekyll(renderDocsProcessor) { }); docs.push({ - docType: 'native_menu-menu', - id: 'native_menu-menu', + docType: 'nativeMenu', + id: 'native_menu', template: 'native_menu.template.html', outputPath: 'content/_includes/v2_fluid/native_menu.html' }); diff --git a/scripts/docs/processors/npm-id.js b/scripts/docs/processors/npm-id.js index 3097e4433..4e1a7f4ac 100644 --- a/scripts/docs/processors/npm-id.js +++ b/scripts/docs/processors/npm-id.js @@ -2,7 +2,7 @@ module.exports = function npmId(renderDocsProcessor) { return { name: 'npm-id', $runAfter: ['paths-computed'], - $runBefore: ['rendering-docs'], + $runBefore: ['jekyll'], $process: function(docs) { var currentVersion = renderDocsProcessor.extraData.version.current.name; diff --git a/scripts/docs/templates/native_menu.template.html b/scripts/docs/templates/native_menu.template.html index a5c958659..d2deb358a 100644 --- a/scripts/docs/templates/native_menu.template.html +++ b/scripts/docs/templates/native_menu.template.html @@ -4,12 +4,11 @@
  • Browser Usage
  • -<@ for doc in docs @><@ if doc.URL and doc.private != true and doc.beta != true @> +<@- for doc in docs @><@ if doc.URL and doc.private != true and doc.beta != true @>
  • <$ doc.name $>
  • <@ endif @><@ endfor @> - -<@ for doc in docs @><@ if doc.URL and doc.private != true and doc.beta == true @> +<@- for doc in docs @><@ if doc.URL and doc.private != true and doc.beta == true @>
  • <$ doc.name $> β
  • <@ endif @><@ endfor @>