Skip to content

Commit

Permalink
fix(documentation): change guide menu order
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoazh committed Nov 23, 2021
1 parent 1d4d4ba commit 6e2bbfb
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 29 deletions.
63 changes: 37 additions & 26 deletions packages/documentation/docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,32 +19,43 @@ module.exports = {
title: 'Guide',
collapsable: false,
children: [
['', 'Application concepts'],
['cdn', 'Using a CDN'],
['map-center', 'Map center'],
['map-center-twoway', 'Map center two way binding'],
['autocomplete', 'GmapAutocomplete'],
['kml-layer', 'Kml layer'],
['map-functions', 'Map functions'],
['marker', 'Marker'],
['basic-marker-cluster', 'Marker cluster'],
['basic-marker-shape', 'Marker shape'],
['place-input', 'Place input'],
['place-default', 'Place default'],
['status-bar-information', 'Status bar information'],
['window-information', 'Window information'],
['map-type-id', 'Map type id'],
['overlay', 'Overlay'],
['polyline', 'Polyline'],
['polygon-simple', 'Poligon simple'],
['polygon-advanced', 'Poligon advanced'],
['resize-bus', 'Resize bus'],
['map-destroy', 'Map destroy'],
['street-view-panorama', 'Street view panorama'],
['heat-map-layer', 'Heat Map Layer'],
['drawing-manager', 'Drawing manager'],
['drawing-manager-with-slot', 'Drawing manager with slot']
]
{
title: 'Concepts',
collapsable: false,
path: '/guide/'
},
{
title: 'Components',
collapsable: false,
path: '/guide/cdn',
children: [
['cdn', 'Using a CDN'],
['map-center', 'Map center'],
['map-center-twoway', 'Map center two way binding'],
['autocomplete', 'GmapAutocomplete'],
['kml-layer', 'Kml layer'],
['map-functions', 'Map functions'],
['marker', 'Marker'],
['basic-marker-cluster', 'Marker cluster'],
['basic-marker-shape', 'Marker shape'],
['place-input', 'Place input'],
['place-default', 'Place default'],
['status-bar-information', 'Status bar information'],
['window-information', 'Window information'],
['map-type-id', 'Map type id'],
['overlay', 'Overlay'],
['polyline', 'Polyline'],
['polygon-simple', 'Poligon simple'],
['polygon-advanced', 'Poligon advanced'],
['resize-bus', 'Resize bus'],
['map-destroy', 'Map destroy'],
['street-view-panorama', 'Street view panorama'],
['heat-map-layer', 'Heat Map Layer'],
['drawing-manager', 'Drawing manager'],
['drawing-manager-with-slot', 'Drawing manager with slot']
]
},
],
}
],
'/': [['', 'Getting started']]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: autocomplete
Autocomplete component

::: tip Tags
**see**: [source code](/examples/autocomplete.html#source-code)<br />
**see**: [source code](/guide/autocomplete.html#source-code)<br />
:::

## Table of contents
Expand Down
10 changes: 9 additions & 1 deletion packages/documentation/docs/guide/autocomplete.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ For more information please read the [Vue.js documentation for slots](https://vu

:::

## Variables

This component save the original autocomplete object provided by Google Maps in a property called `$autocomplete`, as the example below.

```javascript
this.$autocomplete = new google.maps.places.Autocomplete(...);
```

## Source code

:::details Click to se the source code of <code>autocomplete.vue</code> component
Expand Down Expand Up @@ -177,7 +185,7 @@ export const autocompleteMappedProps = {

If you need to know the API of this component please read it [here](/code/components/autocomplete.html).

## Html example
## Html examples

:::details Complete HTML example

Expand Down
2 changes: 1 addition & 1 deletion packages/gmap-vue/src/components/autocomplete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { autocompleteMappedProps } from '../utils/mapped-props-by-map-element';
/**
* Autocomplete component
* @displayName GmapAutocomplete
* @see [source code](/examples/autocomplete.html#source-code)
* @see [source code](/guide/autocomplete.html#source-code)
*/
export default {
props: {
Expand Down

0 comments on commit 6e2bbfb

Please sign in to comment.