From 22d5d92dd34cab75a1cdb3a7992ed5279c755195 Mon Sep 17 00:00:00 2001 From: Daniel Imhoff Date: Mon, 30 Apr 2018 10:09:23 -0500 Subject: [PATCH] docs(google-maps): add menu entry for google maps plugin --- scripts/docs/processors/jekyll.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/docs/processors/jekyll.js b/scripts/docs/processors/jekyll.js index aea994359..f0b7c3034 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', '')