Skip to content

Commit

Permalink
docs: add v1 documentation link
Browse files Browse the repository at this point in the history
  • Loading branch information
yue1123 committed Mar 8, 2023
1 parent a7e4ab7 commit 3a545e3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
12 changes: 7 additions & 5 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,22 @@ export default defineConfig({
// titleTemplate: 'Vue3 BaiduMap GL',
lastUpdated: true,
base: '/vue3-baidu-map-gl/',
cleanUrls: 'without-subfolders',
cleanUrls: true,
head,
markdown: {
config: (md) => mdPlugin(md)
},
// localeLinks: {
// text: '语言',
// items: [{ text: '简体中文', link: '/zh-CN/' }]
// },
themeConfig: {
i18nRouting: true,
returnToTopLabel: 'top',
logo: '/logo.svg',
nav,
outlineTitle: 'ON THIS PAGE',
outline: [1, 5],
localeLinks: {
text: '语言',
items: [{ text: '简体中文', link: '/zh-CN/' }]
},
algolia: {
appId: 'RT4OHPUGD1',
apiKey: '76ba0d807534197fb89a2644c412240b',
Expand Down
4 changes: 4 additions & 0 deletions docs/.vitepress/configs/nav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ export const nav: DefaultTheme.Config['nav'] = [
text: 'CHANGELOG',
link: 'https://github.com/yue1123/vue3-baidu-map-gl/blob/main/CHANGELOG.md'
},
{
text: 'v1',
link: 'https://yue1123.github.io/vue3-baidu-map-gl/v1/'
},
{
text: '历史版本',
link: 'https://github.com/yue1123/vue3-baidu-map-gl/releases'
Expand Down

0 comments on commit 3a545e3

Please sign in to comment.