chore(docs): replace all spaces with dashes

This commit is contained in:
Ibby
2017-03-16 17:00:10 -04:00
parent 0c2e84c9c0
commit d498f9823a
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ module.exports = function jekyll(renderDocsProcessor) {
return (textA < textB) ? -1 : (textA > textB) ? 1 : 0;
});
docs.forEach(function(doc, i) {
doc.outputPath = doc.outputPath.toLowerCase().replace(' ', '-');
doc.outputPath = doc.outputPath.toLowerCase().replace(/\s/g, '-');
docs[i].URL = doc.outputPath.replace('docs/v2//', 'docs/v2/')
.replace('/index.md', '')
.replace('content/', '');