Skip to content

Commit

Permalink
Fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Gugustinette committed Jul 29, 2024
1 parent 19edf27 commit 519c004
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
4 changes: 0 additions & 4 deletions docs/.vitepress/theme/index.js

This file was deleted.

7 changes: 7 additions & 0 deletions docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import type { Theme } from 'vitepress'
import DefaultTheme from 'vitepress/theme'
import './custom.css'

export default {
extends: DefaultTheme
} satisfies Theme
12 changes: 8 additions & 4 deletions docs/getting-started/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,14 @@ const zoom = 8;
And here is how it should look :

<script setup>
import {
MglMap,
MglNavigationControl,
} from '@indoorequal/vue-maplibre-gl';
import { defineClientComponent } from 'vitepress'

const MglMap = defineClientComponent(() => {
return import('@indoorequal/vue-maplibre-gl').then(m => m.MglMap)
})
const MglNavigationControl = defineClientComponent(() => {
return import('@indoorequal/vue-maplibre-gl').then(m => m.MglNavigationControl)
})

const style = 'https://api.maptiler.com/maps/streets/style.json?key=cQX2iET1gmOW38bedbUh';
const center = [-1.559482, 47.21322];
Expand Down

0 comments on commit 519c004

Please sign in to comment.