|
1 | | -module.exports = { |
| 1 | +import { viteBundler } from '@vuepress/bundler-vite' |
| 2 | +import { defaultTheme } from '@vuepress/theme-default' |
| 3 | + |
| 4 | +export default { |
| 5 | + bundler: viteBundler(), |
2 | 6 | locales: { |
3 | 7 | '/': { |
4 | 8 | lang: 'zh-CN', |
5 | 9 | title: 'Auto Task', |
6 | | - description: '自动完成赠key站任务' |
| 10 | + description: '自动完成赠key站任务', |
7 | 11 | }, |
8 | 12 | '/en/': { |
9 | 13 | lang: 'en-US', |
10 | 14 | title: 'Auto Task', |
11 | | - description: 'Automatically complete giveaway tasks' |
12 | | - } |
| 15 | + description: 'Automatically complete giveaway tasks', |
| 16 | + }, |
13 | 17 | }, |
14 | | - themeConfig: { |
| 18 | + theme: defaultTheme({ |
15 | 19 | sidebarDepth: 2, |
16 | 20 | sidebar: 'auto', |
17 | | - displayAllHeaders: true, |
18 | 21 | lastUpdated: true, |
19 | | - themeConfig: { |
20 | | - nextLinks: false, |
21 | | - prevLinks: false |
22 | | - }, |
23 | | - smoothScroll: true, |
24 | 22 | repo: 'HCLonely/auto-task', |
25 | 23 | repoLabel: 'Github', |
26 | 24 | docsRepo: 'HCLonely/auto-task-doc', |
27 | 25 | docsDir: 'docs', |
28 | | - editLinks: true, |
29 | | - activeHeaderLinks: true, |
| 26 | + docsBranch: 'main', |
| 27 | + editLink: true, |
30 | 28 | locales: { |
31 | 29 | '/': { |
32 | | - label: '简体中文', |
33 | | - selectText: 'Languages', |
34 | | - ariaLabel: 'Languages', |
| 30 | + selectLanguageName: '简体中文', |
| 31 | + selectLanguageText: 'Languages', |
| 32 | + selectLanguageAriaLabel: 'Languages', |
35 | 33 | editLinkText: '在 GitHub 上编辑此页', |
36 | | - lastUpdated: '上次更新', |
37 | | - nav: [ |
| 34 | + lastUpdatedText: '上次更新', |
| 35 | + navbar: [ |
38 | 36 | { text: '首页', link: '/' }, |
39 | 37 | { text: '指南', link: '/guide/' }, |
40 | 38 | { text: '常见问题', link: '/FAQ/' }, |
41 | 39 | { text: '反馈', link: '/feedback/' }, |
42 | 40 | { text: '参与开发', link: '/dev/' }, |
43 | 41 | { text: '更新日志', link: '/logs/' }, |
44 | | - { text: '其他脚本', link: '/other/' } |
45 | | - ] |
| 42 | + { text: '其他脚本', link: '/other/' }, |
| 43 | + ], |
46 | 44 | }, |
47 | 45 | '/en/': { |
48 | | - label: 'English', |
49 | | - selectText: '更改语言', |
50 | | - ariaLabel: '更改语言', |
| 46 | + selectLanguageName: 'English', |
| 47 | + selectLanguageText: '更改语言', |
| 48 | + selectLanguageAriaLabel: '更改语言', |
51 | 49 | editLinkText: 'Edit this page on GitHub', |
52 | | - lastUpdated: 'Last Updated', |
53 | | - nav: [ |
| 50 | + lastUpdatedText: 'Last Updated', |
| 51 | + navbar: [ |
54 | 52 | { text: 'Home', link: '/en/' }, |
55 | 53 | { text: 'Guide', link: '/en/guide/' }, |
56 | 54 | { text: 'Q&A', link: '/en/FAQ/' }, |
57 | 55 | { text: 'Feedback', link: '/en/feedback/' }, |
58 | 56 | { text: 'Contribute', link: '/en/dev/' }, |
59 | | - { text: 'Logs', link: '/en/logs/' } |
60 | | - ] |
61 | | - } |
62 | | - } |
63 | | - }, |
64 | | - plugins: ['@vuepress/back-to-top'] |
| 57 | + { text: 'Logs', link: '/en/logs/' }, |
| 58 | + ], |
| 59 | + }, |
| 60 | + }, |
| 61 | + }), |
65 | 62 | } |
0 commit comments