From 8f5eab13ba854648593a276c918b44ed5ccf9979 Mon Sep 17 00:00:00 2001 From: Dongkyuuuu Date: Thu, 16 Sep 2021 23:11:31 +0900 Subject: [PATCH] feat(docs): add example components --- README.md | 2 +- docs/.vitepress/config.js | 11 ----------- docs/.vitepress/theme/index.js | 15 +++++++++++++++ docs/guide/Maps.md | 11 +++++++---- docs/guide/Marker.md | 9 +++++++-- playground/App.vue | 7 ++----- 6 files changed, 32 insertions(+), 23 deletions(-) create mode 100644 docs/.vitepress/theme/index.js diff --git a/README.md b/README.md index 21028a0..23b7370 100644 --- a/README.md +++ b/README.md @@ -38,4 +38,4 @@ $ yarn add vue3-naver-maps ## Contributing Guide -현재 `vue3-naver-maps`는 계속 작성해 나가고 있습니다. 자유롭게 [Issue](https://github.com/DongKyuuuu/vue3-naver-maps/issues) 혹은 [Pull Request](https://github.com/DongKyuuuu/vue3-naver-maps/pulls)를 통해 기여 가능합니다. **여러분들의 기여를 두 팔 벌려 환영합니다 👍** +현재 `vue3-naver-maps`는 계속 작성해 나가고 있습니다. 자유롭게 [Issue](https://github.com/DongKyuuuu/vue3-naver-maps/issues) 혹은 [Pull Request](https://github.com/DongKyuuuu/vue3-naver-maps/pulls)를 통해 기여 가능합니다. 👍 diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js index 559b83c..0018051 100644 --- a/docs/.vitepress/config.js +++ b/docs/.vitepress/config.js @@ -11,17 +11,6 @@ const config = { }, }, - head: [ - [ - "script", - { - href: "https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9675166132883612", - crossorigin: "anonymous", - async: "", - }, - ], - ], - themeConfig: { repo: "DongKyuuuu/vue3-naver-maps", docsRepo: "DongKyuuuu/vue3-naver-maps", diff --git a/docs/.vitepress/theme/index.js b/docs/.vitepress/theme/index.js new file mode 100644 index 0000000..aa89872 --- /dev/null +++ b/docs/.vitepress/theme/index.js @@ -0,0 +1,15 @@ +import theme from "vitepress/dist/client/theme-default"; +import Vue3NaverMaps, { + NaverMaps, + NaverMarker, +} from "../../../dist/vue3-naver-maps"; + +export default { + ...theme, + enhanceApp({ app, router, siteData }) { + app.use(Vue3NaverMaps, { clientId: "krm0ye8xno" }); + + app.component("naver-maps", NaverMaps); + app.component("naver-marker", NaverMarker); + }, +}; diff --git a/docs/guide/Maps.md b/docs/guide/Maps.md index c48a466..3c69ab6 100644 --- a/docs/guide/Maps.md +++ b/docs/guide/Maps.md @@ -4,6 +4,10 @@ ## 예시 +\ + + + ```vue