From cea1dc14d3238657184c644e8b8ef7c57e64698d Mon Sep 17 00:00:00 2001 From: Daniel Imhoff Date: Wed, 2 May 2018 11:28:40 -0500 Subject: [PATCH] fix(site): no prepended slash --- scripts/docs/processors/jekyll.js | 4 +++- scripts/docs/templates/native_menu.template.html | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/docs/processors/jekyll.js b/scripts/docs/processors/jekyll.js index f0b7c303..4d800065 100644 --- a/scripts/docs/processors/jekyll.js +++ b/scripts/docs/processors/jekyll.js @@ -34,8 +34,10 @@ module.exports = function jekyll(renderDocsProcessor) { .replace('content/', ''); // add trailing slash to plugin pages if(!doc.URL.endsWith("/") && !doc.URL.endsWith(".html")) { - doc.URL = doc.URL+'/'; + doc.URL = doc.URL + '/'; } + + doc.URL = '/' + doc.URL; }); const betaDocs = []; diff --git a/scripts/docs/templates/native_menu.template.html b/scripts/docs/templates/native_menu.template.html index a52a5655..2c8e5c15 100644 --- a/scripts/docs/templates/native_menu.template.html +++ b/scripts/docs/templates/native_menu.template.html @@ -6,5 +6,5 @@ <@- for doc in docs @><@ if doc.URL and doc.private != true @>
  • - <$ doc.name $><@ if doc.paid == true @> <@ endif @><@ if doc.beta == true @> β<@ endif @> + <$ doc.name $><@ if doc.paid == true @> <@ endif @><@ if doc.beta == true @> β<@ endif @>
  • <@ endif @><@ endfor @>