From 7e72140ae4cee38bce4de7db67c9a245c14cfb42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=B1=E5=BC=80=E5=8D=8A=E4=BA=A9=E5=9C=B0?= <2572468699@qq.com> Date: Tue, 22 Nov 2022 15:54:09 +0800 Subject: [PATCH] chore: monorepo --- docs/.vitepress/head.ts | 1 - docs/.vitepress/styles/main.css | 21 ++- docs/.vitepress/theme/index.ts | 2 +- docs/index.md | 2 + docs/package.json | 16 ++ docs/public/logo_bg.png | Bin 0 -> 942486 bytes docs/vite.config.ts | 10 ++ docs/zh/hooks/useAddressGeocoder.md | 2 +- docs/zh/hooks/useBrowserLocation.md | 2 +- docs/zh/hooks/useIpLocation.md | 2 +- docs/zh/hooks/usePointGeocoder.md | 2 +- docs/zh/hooks/useTrackAnimation.md | 2 +- docs/zh/hooks/useViewAnimation.md | 2 +- docs/zh/index.md | 1 + docs/zh/overlay/polygon.md | 2 +- docs/zh/overlay/prism.md | 2 +- package.json | 8 +- pnpm-lock.yaml | 254 +++++++++++++--------------- pnpm-workspace.yaml | 3 + 19 files changed, 181 insertions(+), 153 deletions(-) create mode 100644 docs/package.json create mode 100644 docs/public/logo_bg.png create mode 100644 docs/vite.config.ts create mode 100644 pnpm-workspace.yaml diff --git a/docs/.vitepress/head.ts b/docs/.vitepress/head.ts index 57658175..5ca63fdb 100644 --- a/docs/.vitepress/head.ts +++ b/docs/.vitepress/head.ts @@ -11,7 +11,6 @@ const heads: HeadConfig[] = [ ], ['meta', { name: 'msapplication-TileColor', content: '#3eaf7c' }], ['meta', { name: 'theme-color', content: '#3eaf7c' }], - ['script', { src: '/vue3-baidu-map-gl/lib/tilt.min.js' }] ] if (process.env.NODE_ENV === 'production') { diff --git a/docs/.vitepress/styles/main.css b/docs/.vitepress/styles/main.css index cac92958..82c53e67 100644 --- a/docs/.vitepress/styles/main.css +++ b/docs/.vitepress/styles/main.css @@ -1,6 +1,23 @@ :root { --vp-layout-max-width: 1620px; -} + /* --vp-home-hero-name-color: transparent; + --vp-home-hero-name-background: -webkit-linear-gradient(120deg, ##fff 30%, #fff); + --vp-home-hero-image-background-image: linear-gradient(-45deg, #fff 50%, #fff 50%); + --vp-home-hero-image-filter: blur(40px); */ +} + +/* .image-bg { + position: absolute; + top: 50%; + left: 50%; + border-radius: 50%; + width: 192px; + height: 192px; + background-image: var(--vp-home-hero-image-background-image); + filter: var(--vp-home-hero-image-filter); + transform: translate(-50%, -50%); +} */ + .dark [img-light] { display: none; } @@ -22,7 +39,7 @@ img.resizable-img { height: unset; } -.vp-doc td{ +.vp-doc td { font-size: 14px !important; } diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts index e20fa447..46adc762 100644 --- a/docs/.vitepress/theme/index.ts +++ b/docs/.vitepress/theme/index.ts @@ -1,6 +1,6 @@ import { watch } from 'vue' import defaultTheme from 'vitepress/theme' -import baiduMapInit from '../../../packages/index' +import baiduMapInit from 'vue3-baidu-map-gl' import '../styles/main.css' export default { diff --git a/docs/index.md b/docs/index.md index b7fa1916..e6635f9a 100644 --- a/docs/index.md +++ b/docs/index.md @@ -11,6 +11,7 @@ hero: src: /logo.png alt: Vue3 BaiduMap GL id: J_index_logo + width: 240 actions: - theme: brand text: 开始使用 @@ -46,6 +47,7 @@ features: ---