diff --git a/scripts/docs/processors/jekyll.js b/scripts/docs/processors/jekyll.js index aea99435..f0b7c303 100644 --- a/scripts/docs/processors/jekyll.js +++ b/scripts/docs/processors/jekyll.js @@ -10,6 +10,12 @@ module.exports = function jekyll(renderDocsProcessor) { // pretty up and sort the docs object for menu generation docs = docs.filter(doc => (!!doc.name && !!doc.outputPath) || doc.docType === 'index-page'); + docs.push({ + docType: 'class', + URL: 'https://github.com/ionic-team/ionic-native-google-maps/blob/master/documents/README.md', + name: 'Google Maps', + }); + docs.sort((a, b) => { const textA = a.name ? a.name.toUpperCase() : '', textB = b.name ? b.name.toUpperCase() : ''; @@ -18,6 +24,10 @@ module.exports = function jekyll(renderDocsProcessor) { }); docs.forEach(doc => { + if (!doc.outputPath) { + return; + } + doc.outputPath = doc.outputPath.toLowerCase().replace(/\s/g, '-'); doc.URL = doc.outputPath.replace('docs//', 'docs/') .replace('/index.md', '')