mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-22 01:19:36 +08:00
make doc URLs use dashes and lower case
This commit is contained in:
parent
a631cc1d3a
commit
3cdf50bf3b
@ -17,8 +17,9 @@ module.exports = function jekyll(renderDocsProcessor) {
|
|||||||
return (textA < textB) ? -1 : (textA > textB) ? 1 : 0;
|
return (textA < textB) ? -1 : (textA > textB) ? 1 : 0;
|
||||||
});
|
});
|
||||||
docs.forEach(function(doc, i) {
|
docs.forEach(function(doc, i) {
|
||||||
docs[i].URL = doc.outputPath.replace('docs/v2//','docs/v2/')
|
doc.outputPath = doc.outputPath.toLowerCase().replace(' ', '-');
|
||||||
.replace('/index.md','');
|
docs[i].URL = doc.outputPath.replace('docs/v2//', 'docs/v2/')
|
||||||
|
.replace('/index.md', '');
|
||||||
});
|
});
|
||||||
|
|
||||||
docs.push({
|
docs.push({
|
||||||
|
Loading…
Reference in New Issue
Block a user