mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-03-04 00:13:06 +08:00
Merge pull request #2490 from ionic-team/google-maps-docs
docs(google-maps): add menu entry for google maps plugin
This commit is contained in:
commit
a1c54f36b4
@ -10,6 +10,12 @@ module.exports = function jekyll(renderDocsProcessor) {
|
|||||||
// pretty up and sort the docs object for menu generation
|
// pretty up and sort the docs object for menu generation
|
||||||
docs = docs.filter(doc => (!!doc.name && !!doc.outputPath) || doc.docType === 'index-page');
|
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) => {
|
docs.sort((a, b) => {
|
||||||
const textA = a.name ? a.name.toUpperCase() : '',
|
const textA = a.name ? a.name.toUpperCase() : '',
|
||||||
textB = b.name ? b.name.toUpperCase() : '';
|
textB = b.name ? b.name.toUpperCase() : '';
|
||||||
@ -18,6 +24,10 @@ module.exports = function jekyll(renderDocsProcessor) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
docs.forEach(doc => {
|
docs.forEach(doc => {
|
||||||
|
if (!doc.outputPath) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
doc.outputPath = doc.outputPath.toLowerCase().replace(/\s/g, '-');
|
doc.outputPath = doc.outputPath.toLowerCase().replace(/\s/g, '-');
|
||||||
doc.URL = doc.outputPath.replace('docs//', 'docs/')
|
doc.URL = doc.outputPath.replace('docs//', 'docs/')
|
||||||
.replace('/index.md', '')
|
.replace('/index.md', '')
|
||||||
|
Loading…
Reference in New Issue
Block a user