forked from xkjyeah/vue-google-maps
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(docs): fix documentation issues with webpack config and build
- Loading branch information
Showing
3 changed files
with
163 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,64 @@ | ||
const { sidebarTree } = require('../code/config'); | ||
const apiDocs = sidebarTree('API docs'); | ||
const { sidebarTree } = require("../code/config"); | ||
const apiDocs = sidebarTree("API docs"); | ||
const HtmlWebpackPlugin = require('html-webpack-plugin'); | ||
const HtmlWebpackInlineSourcePlugin = require('html-webpack-inline-source-plugin'); | ||
|
||
module.exports = { | ||
base: '/gmap-vue/', | ||
title: 'Gmap-vue plugin', | ||
description: 'Documentation for gmap-vue plugin', | ||
base: "/gmap-vue/", | ||
title: "Gmap-vue plugin", | ||
description: "Documentation for gmap-vue plugin", | ||
themeConfig: { | ||
sidebarDepth: 4, | ||
nav: [ | ||
{ text: 'Plugin', link: '/' }, | ||
{ text: 'Guide', link: '/guide/' }, | ||
{ text: 'API', link: '/code/' }, | ||
{ text: 'GitHub', link: 'https://github.com/diegoazh/gmap-vue' }, | ||
{ text: "Plugin", link: "/" }, | ||
{ text: "Guide", link: "/guide/" }, | ||
{ text: "API", link: "/code/" }, | ||
{ text: "GitHub", link: "https://github.com/diegoazh/gmap-vue" }, | ||
], | ||
sidebar: { | ||
'/code/': apiDocs['/code/'], | ||
'/guide/': [ | ||
"/code/": apiDocs["/code/"], | ||
"/guide/": [ | ||
{ | ||
title: 'Guide', | ||
title: "Guide", | ||
collapsable: false, | ||
children: [ | ||
{ | ||
title: 'Concepts', | ||
title: "Concepts", | ||
collapsable: false, | ||
path: '/guide/' | ||
path: "/guide/", | ||
}, | ||
{ | ||
title: 'Components', | ||
title: "Components", | ||
collapsable: false, | ||
path: '/guide/map', | ||
path: "/guide/map", | ||
children: [ | ||
['map', 'GmapMap'], | ||
['autocomplete', 'GmapAutocomplete'], | ||
['circle', 'GmapCircle'], | ||
['cluster', 'GmapCluster'], | ||
['drawing-manager', 'GmapDrawingManager'], | ||
['heatmap-layer', 'GmapHeatmapLayer'], | ||
['info-window', 'GmapInfoWindow'], | ||
['kml-layer', 'GmapKmlLayer'], | ||
['marker', 'GmapMarker'], | ||
['place-input', 'GmapPlaceInput'], | ||
['polygon', 'GmapPolygon'], | ||
['polyline', 'GmapPolyline'], | ||
['rectangle', 'GmapRectangle'], | ||
['street-view-panorama', 'GmapStreetViewPanorama'], | ||
['extra-examples', 'Extra examples'], | ||
['cdn', 'Using a CDN'], | ||
] | ||
["map", "GmapMap"], | ||
["autocomplete", "GmapAutocomplete"], | ||
["circle", "GmapCircle"], | ||
["cluster", "GmapCluster"], | ||
["drawing-manager", "GmapDrawingManager"], | ||
["heatmap-layer", "GmapHeatmapLayer"], | ||
["info-window", "GmapInfoWindow"], | ||
["kml-layer", "GmapKmlLayer"], | ||
["marker", "GmapMarker"], | ||
["place-input", "GmapPlaceInput"], | ||
["polygon", "GmapPolygon"], | ||
["polyline", "GmapPolyline"], | ||
["rectangle", "GmapRectangle"], | ||
["street-view-panorama", "GmapStreetViewPanorama"], | ||
["extra-examples", "Extra examples"], | ||
["cdn", "Using a CDN"], | ||
], | ||
}, | ||
], | ||
} | ||
}, | ||
], | ||
'/': [['', 'Getting started']] | ||
} | ||
} | ||
"/": [["", "Getting started"]], | ||
}, | ||
}, | ||
configureWebpack: (config, isServer) => { | ||
configureWebpack: (config) => { | ||
return { plugins: [new HtmlWebpackPlugin(), new HtmlWebpackInlineSourcePlugin(HtmlWebpackPlugin)] }; | ||
}; | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.