|
1 | 1 | import { defineConfig } from 'vitepress' |
2 | 2 |
|
3 | 3 | export default defineConfig({ |
4 | | - lang: 'zh-cn', |
5 | | - title: 'Phi Recorder', |
6 | | - description: '你的下一个渲染器', |
7 | | - lastUpdated: true, |
| 4 | + lang: 'zh-cn', |
| 5 | + title: 'Phi Recorder', |
| 6 | + description: '你的下一个渲染器', |
| 7 | + lastUpdated: true, |
8 | 8 |
|
9 | | - head: [ |
10 | | - ['link', { rel: 'apple-touch-icon', sizes: '180x180', href: '/apple-touch-icon.png' }], |
11 | | - ['link', { rel: 'manifest', href: '/site.webmanifest' }], |
12 | | - ['link', { rel: 'mask-icon', href: '/safari-pinned-tab.svg', color: '#5bbad5' }], |
13 | | - ['meta', { name: 'msapplication-TileColor', content: '#00aba9' }], |
14 | | - ['meta', { name: 'theme-color', content: '#ffffff' }], |
15 | | - ], |
| 9 | + head: [ |
| 10 | + ['link', { rel: 'apple-touch-icon', sizes: '180x180', href: '/apple-touch-icon.png' }], |
| 11 | + ['link', { rel: 'manifest', href: '/site.webmanifest' }], |
| 12 | + ['link', { rel: 'mask-icon', href: '/safari-pinned-tab.svg', color: '#5bbad5' }], |
| 13 | + ['meta', { name: 'msapplication-TileColor', content: '#00aba9' }], |
| 14 | + ['meta', { name: 'theme-color', content: '#ffffff' }], |
| 15 | + ], |
16 | 16 |
|
17 | | - markdown: { |
18 | | - lineNumbers: true, |
19 | | - theme: 'one-dark-pro' |
20 | | - }, |
| 17 | + markdown: { |
| 18 | + lineNumbers: true, |
| 19 | + theme: 'one-dark-pro' |
| 20 | + }, |
21 | 21 |
|
22 | | - cleanUrls: true, |
| 22 | + cleanUrls: true, |
23 | 23 |
|
24 | | - themeConfig: { |
25 | | - logo: '/logo.png', |
| 24 | + themeConfig: { |
| 25 | + logo: '/logo.png', |
26 | 26 |
|
27 | | - footer: { |
28 | | - message: "Documentation released under the MIT License, all rights reserved.", |
29 | | - copyright: "Copyright © 2025 - Phi Recorder", |
30 | | - }, |
| 27 | + footer: { |
| 28 | + message: [ |
| 29 | + 'Documentation released under the MIT License, all rights reserved.', |
| 30 | + `<br>`, |
| 31 | + `<a href="https://beian.miit.gov.cn/" target="_blank" rel="noopener noreferrer">赣ICP备2025074193号</a>`, |
| 32 | + `<span style="margin: 0 8px; color: #999">|</span>`, |
| 33 | + `<a href="https://beian.mps.gov.cn/#/query/webSearch?code=36012202000590" target="_blank" rel="noopener noreferrer">`, |
| 34 | + `<img src="https://www.beian.gov.cn/img/ghs.png" alt="公安备案图标" style="width:16px;height:16px;margin-right:4px;vertical-align:-3px;">`, |
| 35 | + `赣公网安备36012202000590号</a>` |
| 36 | + ].join(''), |
| 37 | + copyright: 'Copyright © 2025 - Phi Recorder' |
| 38 | + }, |
31 | 39 |
|
32 | | - sidebar: { |
33 | | - '/guide/': sidebarGuide(), |
34 | | - '/config/': sidebarGuide(), |
35 | | - '/writing/': sidebarGuide(), |
36 | | - }, |
| 40 | + sidebar: { |
| 41 | + '/guide/': sidebarGuide(), |
| 42 | + '/config/': sidebarGuide(), |
| 43 | + '/writing/': sidebarGuide(), |
| 44 | + }, |
37 | 45 |
|
38 | | - nav: [ |
39 | | - { text: '指南', link: '/guide/' }, |
40 | | - //{ text: 'Config', link: '/config/' }, |
41 | | - ], |
| 46 | + nav: [ |
| 47 | + { text: '指南', link: '/guide/' }, |
| 48 | + ], |
42 | 49 |
|
43 | | - socialLinks: [ |
44 | | - { icon: 'github', link: 'https://github.com/2278535805/Phi-Recorder' } |
45 | | - ], |
| 50 | + socialLinks: [ |
| 51 | + { icon: 'github', link: 'https://github.com/2278535805/Phi-Recorder' } |
| 52 | + ], |
46 | 53 |
|
47 | | - editLink: { |
48 | | - pattern: 'https://github.com/SeRazon/pr-docs/edit/master/docs/:path', |
49 | | - text: '在 GitHub 上编辑此页面' |
50 | | - }, |
| 54 | + editLink: { |
| 55 | + pattern: 'https://github.com/SeRazon/pr-docs/edit/master/docs/:path', |
| 56 | + text: '在 GitHub 上编辑此页面' |
| 57 | + }, |
51 | 58 |
|
52 | | - outline: [2, 3], |
| 59 | + outline: [2, 3], |
53 | 60 |
|
54 | | - algolia: { |
55 | | - appId: '6OC1XCG4R5', |
56 | | - apiKey: '7779946cc768ec3699123e60a91d0ddc', |
57 | | - indexName: 'stack-jimmycai', |
58 | | - } |
59 | | - }, |
| 61 | + algolia: { |
| 62 | + appId: '6OC1XCG4R5', |
| 63 | + apiKey: '7779946cc768ec3699123e60a91d0ddc', |
| 64 | + indexName: 'stack-jimmycai', |
| 65 | + } |
| 66 | + }, |
60 | 67 | }); |
61 | 68 |
|
62 | 69 | function sidebarGuide() { |
63 | | - return [ |
64 | | - { |
65 | | - text: '介绍', |
66 | | - collapsible: true, |
67 | | - items: [ |
68 | | - { text: '关于 Phi Recorder', link: '/guide/' }, |
69 | | - { text: '快速开始', link: '/guide/getting-started' }, |
70 | | - // { text: 'Modify Theme', link: '/guide/modify-theme' } |
71 | | - ] |
72 | | - }, |
73 | | - { |
74 | | - text: '基础', |
75 | | - collapsible: true, |
76 | | - items: [ |
77 | | - { text: '谱面信息', link: '/guide/base/chart-info' }, |
78 | | - { text: '渲染设置', link: '/guide/base/render-config' }, |
79 | | - { text: 'RPE 绑定', link: '/guide/base/rpe-bind' }, |
80 | | - ] |
81 | | - }, |
82 | | - { |
83 | | - text: '接口', |
84 | | - collapsible: true, |
85 | | - items: [ |
86 | | - { text: '参数', link: '/guide/connect/args' }, |
87 | | - { text: '资源包', link: '/guide/connect/res-pack' }, |
88 | | - ] |
89 | | - }, |
90 | | - /*{ |
91 | | - text: 'Config', |
92 | | - collapsible: true, |
93 | | - items: [ |
94 | | - { |
95 | | - text: 'Introduction', |
96 | | - link: '/config/' |
97 | | - }, |
98 | | - { |
99 | | - text: 'Site Configs', |
100 | | - link: '/config/site' |
101 | | - }, |
102 | | - { |
103 | | - text: 'i18n Configs', |
104 | | - link: '/config/i18n' |
105 | | - }, |
106 | | - { |
107 | | - text: 'Custom Menu', |
108 | | - link: '/config/menu' |
109 | | - }, |
110 | | - { |
111 | | - text: 'Custom Header / Footer', |
112 | | - link: '/config/header-footer' |
113 | | - }, |
114 | | - { |
115 | | - text: 'Date Format', |
116 | | - link: '/config/date-format' |
117 | | - }, |
118 | | - { |
119 | | - text: 'Sidebar', |
120 | | - link: '/config/sidebar' |
121 | | - }, |
122 | | - { |
123 | | - text: 'Footer', |
124 | | - link: '/config/footer' |
125 | | - }, |
126 | | - { |
127 | | - text: 'Article', |
128 | | - link: '/config/article' |
129 | | - }, |
130 | | - { |
131 | | - text: 'Comments', |
132 | | - link: '/config/comments' |
133 | | - }, |
134 | | - { |
135 | | - text: 'Widgets', |
136 | | - link: '/config/widgets' |
137 | | - }, |
138 | | - { |
139 | | - text: 'Open Graph', |
140 | | - link: '/config/open-graph' |
141 | | - }, |
142 | | - { |
143 | | - text: 'Default Image', |
144 | | - link: '/config/default-image' |
145 | | - }, |
146 | | - { |
147 | | - text: 'Color Scheme', |
148 | | - link: '/config/color-scheme' |
149 | | - }, |
150 | | - { |
151 | | - text: 'Image Processing', |
152 | | - link: '/config/image-processing' |
153 | | - } |
154 | | - ] |
155 | | - },*/ |
156 | | - ] |
| 70 | + return [ |
| 71 | + { |
| 72 | + text: '介绍', |
| 73 | + collapsible: true, |
| 74 | + items: [ |
| 75 | + { text: '关于 Phi Recorder', link: '/guide/' }, |
| 76 | + { text: '快速开始', link: '/guide/getting-started' }, |
| 77 | + ] |
| 78 | + }, |
| 79 | + { |
| 80 | + text: '基础', |
| 81 | + collapsible: true, |
| 82 | + items: [ |
| 83 | + { text: '谱面信息', link: '/guide/base/chart-info' }, |
| 84 | + { text: '渲染设置', link: '/guide/base/render-config' }, |
| 85 | + { text: 'RPE 绑定', link: '/guide/base/rpe-bind' }, |
| 86 | + ] |
| 87 | + }, |
| 88 | + { |
| 89 | + text: '接口', |
| 90 | + collapsible: true, |
| 91 | + items: [ |
| 92 | + { text: '参数', link: '/guide/connect/args' }, |
| 93 | + { text: '资源包', link: '/guide/connect/res-pack' }, |
| 94 | + ] |
| 95 | + }, |
| 96 | + ] |
157 | 97 | } |
0 commit comments