Skip to content

Commit

Permalink
docs: add sponsor
Browse files Browse the repository at this point in the history
  • Loading branch information
yue1123 committed Nov 8, 2022
1 parent ff76d13 commit 094d8d9
Show file tree
Hide file tree
Showing 8 changed files with 146 additions and 104 deletions.
134 changes: 69 additions & 65 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,71 +4,75 @@ import sidebarConfigZh from './sidebar.config.zh'
import { version } from '../../package.json'

export default defineConfig({
lang: 'zh-CN',
title: 'Vue3 BaiduMap GL',
description: 'Vite & Vue powered static site generator.',
lastUpdated: true,
base: '/vue3-baidu-map-gl/',
head: heads,
themeConfig: {
nav: [
{
text: '指南',
link: '/zh/guide/'
},
{
text: '相关链接',
items: [
{
text: '百度拾取坐标系统',
link: 'https://api.map.baidu.com/lbsapi/getpoint/index.html'
},
{
text: '百度地图开放平台',
link: 'https://lbsyun.baidu.com/index.php?title=%E9%A6%96%E9%A1%B5'
},
{
text: '个性化地图编辑器',
link: 'https://lbsyun.baidu.com/index.php?title=open/custom'
},
{
text: '百度地图JSAPI WebGL v1.0类参考',
link: 'https://mapopen-pub-jsapi.bj.bcebos.com/jsapi/reference/jsapi_webgl_1_0.html'
}
]
},
{
text: `v${version}`,
items: [
{
text: '历史版本',
link: 'https://github.com/yue1123/vue3-baidu-map-gl/releases'
}
]
}
],
localeLinks: {
text: '简体中文',
items: [
// { text: 'English', link: '/es' }
]
},
algolia: {
appId: 'RT4OHPUGD1',
apiKey: '76ba0d807534197fb89a2644c412240b',
indexName: 'vue3-baidu-map-gl-zh'
},
footer: {
message: 'Released under the MIT License.',
copyright: 'Copyright © 2022-present dh and all contributors'
},
socialLinks: [{ icon: 'github', link: 'https://github.com/yue1123/vue3-baidu-map-gl' }],
sidebar: sidebarConfigZh,
editLink: {
pattern: 'https://github.com/yue1123/vue3-baidu-map-gl/edit/main/docs/:path',
text: 'Suggest changes to this page'
}
}
lang: 'zh-CN',
title: 'Vue3 BaiduMap GL',
description: 'Vite & Vue powered static site generator.',
lastUpdated: true,
base: '/vue3-baidu-map-gl/',
head: heads,
themeConfig: {
nav: [
{
text: '指南',
link: '/zh/guide/'
},
{
text: '相关链接',
items: [
{
text: '百度拾取坐标系统',
link: 'https://api.map.baidu.com/lbsapi/getpoint/index.html'
},
{
text: '百度地图开放平台',
link: 'https://lbsyun.baidu.com/index.php?title=%E9%A6%96%E9%A1%B5'
},
{
text: '个性化地图编辑器',
link: 'https://lbsyun.baidu.com/index.php?title=open/custom'
},
{
text: '百度地图JSAPI WebGL v1.0类参考',
link: 'https://mapopen-pub-jsapi.bj.bcebos.com/jsapi/reference/jsapi_webgl_1_0.html'
}
]
},
{
text: `v${version}`,
items: [
{
text: '历史版本',
link: 'https://github.com/yue1123/vue3-baidu-map-gl/releases'
}
]
},
{
text: '赞助',
link: '/sponsor/'
}
],
localeLinks: {
text: '简体中文',
items: [
// { text: 'English', link: '/es' }
]
},
algolia: {
appId: 'RT4OHPUGD1',
apiKey: '76ba0d807534197fb89a2644c412240b',
indexName: 'vue3-baidu-map-gl-zh'
},
footer: {
message: 'Released under the MIT License.',
copyright: 'Copyright © 2022-present dh and all contributors'
},
socialLinks: [{ icon: 'github', link: 'https://github.com/yue1123/vue3-baidu-map-gl' }],
sidebar: sidebarConfigZh,
editLink: {
pattern: 'https://github.com/yue1123/vue3-baidu-map-gl/edit/main/docs/:path',
text: 'Suggest changes to this page'
}
}
})

// // 主题和它的配置
Expand Down
6 changes: 4 additions & 2 deletions docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { watch } from 'vue'
import DefaultTheme from 'vitepress/theme'
import defaultTheme from 'vitepress/theme'
import baiduMapInit from '../../../packages/index'
import '../styles/main.css'

export default {
...DefaultTheme,
...defaultTheme,
// FIXME: vitepress bug: default theme with user config
enhanceApp(ctx) {
defaultTheme.enhanceApp(ctx)
const { app, router } = ctx
if (process.env.NODE_ENV === 'production') {
if (typeof window !== 'undefined') {
Expand Down
Binary file added docs/public/aliPay.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/public/weiCharPay.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions docs/sponsor/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# 成为 Vue3 BaiduMap GL 的赞助者 🙌

<br />
<br />
Vue3 BaiduMap GL 是采用 MIT 许可的开源项目,使用完全免费。

维护项目和开发新功能需要大量的时间和精力。如果您觉得该项目还不错,请不要吝啬您的大方,您的赞助就是支持作者持续更新,熬夜肝代码的最强动力!!

## 如何赞助

你可以通过微信赞赏码或者支付宝进行赞助,赞助后会在下面列表中显示赞助者信息。

<label>
<input type="radio" v-model="activeKey" value="weiChatPay" name="pay-type">
微信
</label>

<label>
<input type="radio" v-model="activeKey" value="aliPay" name="pay-type">
支付宝
</label>
<br />
<br />
<img width="300" v-if="activeKey === 'aliPay'" src="/aliPay.jpg" alt="">
<img width="300" v-else src="/weiCharPay.jpeg" alt="">

<script lang="ts" setup>
import { ref } from 'vue'
const activeKey = ref<'weiChatPay' | 'aliPay'>('weiChatPay')
</script>

## 当前赞助者

- 虚位以待...

<span style="font-size:12px">┭┮﹏┭┮,还没有小伙伴赞助,快抢沙发</span>
2 changes: 1 addition & 1 deletion docs/zh/context-menu/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 上下文菜单
# 上下文菜单 <Badge type="tip" text="^0.0.29" />

在地图上添加自定义内容的右键菜单

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"tslib": "^2.4.0",
"typescript": "^4.6.3",
"vite": "3.1.8",
"vitepress": "1.0.0-alpha.21",
"vitepress": "1.0.0-alpha.27",
"vue-tsc": "^1.0.0"
},
"sideEffects": false,
Expand Down
70 changes: 35 additions & 35 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 094d8d9

Please sign in to comment.