Skip to content

Commit

Permalink
feat(docs): change init module
Browse files Browse the repository at this point in the history
  • Loading branch information
Dongkyuuuu committed Sep 16, 2021
1 parent 8f5eab1 commit 0918032
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
12 changes: 11 additions & 1 deletion docs/.vitepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,24 @@ const config = {
title: "Vue3 Naver Maps",
description: "NaverMap component for Vue3",
base: "/vue3-naver-maps/",
head: [
[
"script",
{
id: "vue3-naver-maps",
src: "https://openapi.map.naver.com/openapi/v3/maps.js?ncpClientId=krm0ye8xno",
async: "",
defer: "",
},
],
],
locales: {
"/": {
lang: "ko",
title: "Vue3 Naver Maps",
description: "NaverMap component for Vue3",
},
},

themeConfig: {
repo: "DongKyuuuu/vue3-naver-maps",
docsRepo: "DongKyuuuu/vue3-naver-maps",
Expand Down
7 changes: 1 addition & 6 deletions docs/.vitepress/theme/index.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
import theme from "vitepress/dist/client/theme-default";
import Vue3NaverMaps, {
NaverMaps,
NaverMarker,
} from "../../../dist/vue3-naver-maps";
import { 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);
},
Expand Down

0 comments on commit 0918032

Please sign in to comment.