|
1 | | -import { defineConfig } from 'vitepress' |
| 1 | +import { defineConfig } from 'vitepress'; |
| 2 | + |
| 3 | +const SITE_URL = 'https://bvm-core.pages.dev'; |
2 | 4 |
|
3 | 5 | export default defineConfig({ |
4 | | - title: "BVM", |
5 | | - description: "Bun Version Manager", |
6 | 6 | head: [ |
7 | | - ['link', { rel: 'icon', type: 'image/svg+xml', href: '/logo.svg' }] |
| 7 | + ['meta', { name: 'viewport', content: 'width=device-width,initial-scale=1' }], |
| 8 | + ['link', { rel: 'icon', type: 'image/svg+xml', href: '/logo.svg' }], |
| 9 | + ['meta', { property: 'og:site_name', content: 'BVM' }], |
| 10 | + ['meta', { property: 'og:type', content: 'website' }], |
| 11 | + ['meta', { property: 'og:image', content: `${SITE_URL}/logo.svg` }], |
| 12 | + ['meta', { name: 'twitter:card', content: 'summary' }], |
| 13 | + ['meta', { name: 'twitter:image', content: `${SITE_URL}/logo.svg` }], |
8 | 14 | ], |
9 | | - themeConfig: { |
10 | | - logo: '/logo.svg', |
11 | | - nav: [ |
12 | | - { text: 'Guide', link: '/guide/getting-started' }, |
13 | | - { text: 'Architecture', link: '/guide/architecture' }, |
14 | | - { |
15 | | - text: 'Author', |
16 | | - items: [ |
17 | | - { text: '掘金 (Juejin)', link: 'https://juejin.cn/user/4072246800548999/posts' }, |
18 | | - { text: '公众号 (WeChat)', link: 'https://mp.weixin.qq.com/s/CbO2wybwglEg6D5dh-tSCg' } |
19 | | - ] |
| 15 | + cleanUrls: true, |
| 16 | + lastUpdated: true, |
| 17 | + locales: { |
| 18 | + root: { |
| 19 | + label: 'English', |
| 20 | + lang: 'en-US', |
| 21 | + title: 'BVM', |
| 22 | + description: 'Bun Version Manager', |
| 23 | + themeConfig: { |
| 24 | + logo: '/logo.svg', |
| 25 | + nav: [ |
| 26 | + { text: 'Guide', link: '/guide/getting-started' }, |
| 27 | + { text: 'Troubleshooting', link: '/guide/troubleshooting' }, |
| 28 | + { text: 'Architecture (CN)', link: '/guide/architecture' }, |
| 29 | + { text: '中文', link: '/zh/' }, |
| 30 | + { text: 'GitHub', link: 'https://github.com/EricLLLLLL/bvm' }, |
| 31 | + ], |
| 32 | + sidebar: [ |
| 33 | + { |
| 34 | + text: 'Guide', |
| 35 | + items: [ |
| 36 | + { text: 'Getting Started', link: '/guide/getting-started' }, |
| 37 | + { text: 'Troubleshooting', link: '/guide/troubleshooting' }, |
| 38 | + { text: 'Architecture (CN)', link: '/guide/architecture' }, |
| 39 | + ], |
| 40 | + }, |
| 41 | + ], |
| 42 | + socialLinks: [{ icon: 'github', link: 'https://github.com/EricLLLLLL/bvm' }], |
| 43 | + footer: { |
| 44 | + message: 'Released under the MIT License.', |
| 45 | + copyright: 'Copyright © 2024-present EricLLLLLL', |
| 46 | + }, |
| 47 | + }, |
| 48 | + }, |
| 49 | + zh: { |
| 50 | + label: '简体中文', |
| 51 | + lang: 'zh-CN', |
| 52 | + title: 'BVM', |
| 53 | + description: 'Bun 版本管理器', |
| 54 | + themeConfig: { |
| 55 | + logo: '/logo.svg', |
| 56 | + nav: [ |
| 57 | + { text: '指南', link: '/zh/guide/getting-started' }, |
| 58 | + { text: '排障', link: '/zh/guide/troubleshooting' }, |
| 59 | + { text: '架构', link: '/zh/guide/architecture' }, |
| 60 | + { text: 'English', link: '/' }, |
| 61 | + { text: 'GitHub', link: 'https://github.com/EricLLLLLL/bvm' }, |
| 62 | + ], |
| 63 | + sidebar: [ |
| 64 | + { |
| 65 | + text: '指南', |
| 66 | + items: [ |
| 67 | + { text: '快速开始', link: '/zh/guide/getting-started' }, |
| 68 | + { text: '排障', link: '/zh/guide/troubleshooting' }, |
| 69 | + { text: '架构', link: '/zh/guide/architecture' }, |
| 70 | + ], |
| 71 | + }, |
| 72 | + ], |
| 73 | + socialLinks: [{ icon: 'github', link: 'https://github.com/EricLLLLLL/bvm' }], |
| 74 | + footer: { |
| 75 | + message: '基于 MIT License 发布。', |
| 76 | + copyright: 'Copyright © 2024-present EricLLLLLL', |
| 77 | + }, |
20 | 78 | }, |
21 | | - { text: 'GitHub', link: 'https://github.com/EricLLLLLL/bvm' } |
22 | | - ], |
23 | | - sidebar: [ |
24 | | - { |
25 | | - text: 'Introduction', |
26 | | - items: [ |
27 | | - { text: 'Getting Started', link: '/guide/getting-started' }, |
28 | | - { text: '快速开始 (CN)', link: '/guide/getting-started-zh' }, |
29 | | - { text: 'Architecture', link: '/guide/architecture' } |
30 | | - ] |
31 | | - } |
32 | | - ], |
33 | | - socialLinks: [ |
34 | | - { icon: 'github', link: 'https://github.com/EricLLLLLL/bvm' } |
35 | | - ], |
36 | | - footer: { |
37 | | - message: 'Released under the MIT License.', |
38 | | - copyright: 'Copyright © 2024-present EricLLLLLL' |
39 | | - } |
40 | | - } |
41 | | -}) |
| 79 | + }, |
| 80 | + }, |
| 81 | +}); |
0 commit comments