From 3cdf50bf3be0757954d228c79033ac268011a086 Mon Sep 17 00:00:00 2001 From: perry Date: Mon, 9 May 2016 13:07:42 -0500 Subject: [PATCH] make doc URLs use dashes and lower case --- scripts/docs/processors/jekyll.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/docs/processors/jekyll.js b/scripts/docs/processors/jekyll.js index 21152dfa..1e5f68a6 100644 --- a/scripts/docs/processors/jekyll.js +++ b/scripts/docs/processors/jekyll.js @@ -17,8 +17,9 @@ module.exports = function jekyll(renderDocsProcessor) { return (textA < textB) ? -1 : (textA > textB) ? 1 : 0; }); docs.forEach(function(doc, i) { - docs[i].URL = doc.outputPath.replace('docs/v2//','docs/v2/') - .replace('/index.md',''); + doc.outputPath = doc.outputPath.toLowerCase().replace(' ', '-'); + docs[i].URL = doc.outputPath.replace('docs/v2//', 'docs/v2/') + .replace('/index.md', ''); }); docs.push({