make doc URLs use dashes and lower case

This commit is contained in:
perry 2016-05-09 13:07:42 -05:00
parent a631cc1d3a
commit 3cdf50bf3b

View File

@ -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({