|
1 | | -import {defineConfig} from 'vitepress'; |
| 1 | +import { defineConfig } from 'vitepress' |
2 | 2 |
|
| 3 | +const version = `v3.2` |
3 | 4 |
|
4 | | -const version = `v3.1` |
5 | | - |
6 | | -// https://vitepress.dev/reference/site-config |
7 | | -// @ts-ignore |
8 | 5 | export default defineConfig({ |
9 | | - title: "AutoBangumi", |
10 | | - description: "从 Mikan Project 全自动追番下载整理", |
| 6 | + title: 'AutoBangumi', |
| 7 | + description: 'Automatic anime downloading and organization from RSS feeds', |
11 | 8 |
|
12 | | - head: [ |
13 | | - ['link', {rel: 'icon', type: 'image/svg+xml', href: '/light-logo.svg'}], |
14 | | - ['meta', {property: 'og:image', content: '/social.png'}], |
15 | | - ['meta', {property: 'og:site_name', content: 'AutoBangumi'}], |
16 | | - ['meta', {property: 'og:url', content: 'https://www.autobangumi.org'}], |
17 | | - ], |
| 9 | + head: [ |
| 10 | + ['link', { rel: 'icon', type: 'image/svg+xml', href: '/light-logo.svg' }], |
| 11 | + ['meta', { property: 'og:image', content: '/social.png' }], |
| 12 | + ['meta', { property: 'og:site_name', content: 'AutoBangumi' }], |
| 13 | + ['meta', { property: 'og:url', content: 'https://www.autobangumi.org' }], |
| 14 | + ['script', { async: '', src: 'https://www.googletagmanager.com/gtag/js?id=G-3Z8W6WMN7J' }], |
| 15 | + ['script', {}, `window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);}gtag('js',new Date());gtag('config','G-3Z8W6WMN7J');`], |
| 16 | + ], |
18 | 17 |
|
19 | | - themeConfig: { |
20 | | - // https://vitepress.dev/reference/default-theme-config |
21 | | - logo: { |
22 | | - dark: '/dark-logo.svg', |
23 | | - light: '/light-logo.svg', |
24 | | - }, |
| 18 | + themeConfig: { |
| 19 | + logo: { |
| 20 | + dark: '/dark-logo.svg', |
| 21 | + light: '/light-logo.svg', |
| 22 | + }, |
25 | 23 |
|
26 | | - editLink: { |
27 | | - pattern: 'https://github.com/EstrellaXD/Auto_Bangumi/edit/main/docs/:path', |
28 | | - text: 'Edit this page', |
29 | | - }, |
| 24 | + editLink: { |
| 25 | + pattern: 'https://github.com/EstrellaXD/Auto_Bangumi/edit/main/docs/:path', |
| 26 | + text: 'Edit this page on GitHub', |
| 27 | + }, |
30 | 28 |
|
31 | | - search: { |
32 | | - provider: 'local' |
| 29 | + search: { |
| 30 | + provider: 'local', |
| 31 | + }, |
| 32 | + |
| 33 | + socialLinks: [ |
| 34 | + { icon: 'github', link: 'https://github.com/EstrellaXD/Auto_Bangumi' }, |
| 35 | + { |
| 36 | + icon: { |
| 37 | + svg: '<svg xmlns="http://www.w3.org/2000/svg" role="img" viewBox="0 0 24 24"><title>Telegram</title><path d="M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"/></svg>', |
33 | 38 | }, |
| 39 | + link: 'https://t.me/autobangumi', |
| 40 | + }, |
| 41 | + ], |
34 | 42 |
|
35 | | - socialLinks: [ |
36 | | - {icon: "github", link: "https://github.com/EstrellaXD/Auto_Bangumi"}, |
37 | | - { |
38 | | - icon: { |
39 | | - svg: '<svg xmlns="http://www.w3.org/2000/svg" role="img" viewBox="0 0 24 24"><title>Telegram</title><path d="M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"/></svg>' |
40 | | - }, |
41 | | - link: "https://t.me/autobangumi" |
42 | | - }, |
43 | | - ], |
| 43 | + nav: [ |
| 44 | + { text: 'About', link: '/home/' }, |
| 45 | + { text: 'Quick Start', link: '/deploy/quick-start' }, |
| 46 | + { text: 'FAQ', link: '/faq/' }, |
| 47 | + { text: 'API', link: '/api/' }, |
| 48 | + ], |
44 | 49 |
|
45 | | - nav: [ |
46 | | - {text: "项目说明", link: "/home/"}, |
47 | | - {text: "快速开始", link: "/deploy/quick-start"}, |
48 | | - {text: "常见问题", link: "/faq/"}, |
49 | | - ], |
50 | | - footer: { |
51 | | - message: `AutoBangumi Released under the MIT License. (latest: ${version})`, |
52 | | - copyright: 'Copyright © 2021-present @EstrellaXD & AutoBangumi Contributors', |
53 | | - }, |
| 50 | + footer: { |
| 51 | + message: `AutoBangumi is released under the MIT License. (latest: ${version})`, |
| 52 | + copyright: 'Copyright © 2021-present @EstrellaXD & AutoBangumi Contributors', |
| 53 | + }, |
54 | 54 |
|
55 | | - sidebar: [ |
56 | | - { |
57 | | - items: [ |
58 | | - { |
59 | | - text: "项目说明", |
60 | | - link: "/home/", |
61 | | - }, |
62 | | - { |
63 | | - text: "快速开始", |
64 | | - link: "/deploy/quick-start", |
65 | | - }, |
66 | | - { |
67 | | - text: "运行原理", |
68 | | - link: "/home/pipline", |
69 | | - } |
70 | | - ], |
71 | | - }, |
72 | | - { |
73 | | - text: "部署", |
74 | | - items: [ |
75 | | - { |
76 | | - text: "Docker-cli 部署", |
77 | | - link: "/deploy/docker-cli", |
78 | | - }, |
79 | | - { |
80 | | - text: "Docker-Compose 部署", |
81 | | - link: "/deploy/docker-compose", |
82 | | - }, |
83 | | - { |
84 | | - text: "群晖NAS", |
85 | | - link: "/deploy/dsm", |
86 | | - }, |
87 | | - { |
88 | | - text: "本地部署", |
89 | | - link: "/deploy/local", |
90 | | - }, |
91 | | - ], |
92 | | - }, |
93 | | - { |
94 | | - text: "配置说明", |
95 | | - items: [ |
96 | | - { |
97 | | - text: "获取 RSS 订阅链接", |
98 | | - link: "/config/rss", |
99 | | - }, |
100 | | - { |
101 | | - text: "主程序配置", |
102 | | - link: "/config/program", |
103 | | - }, |
104 | | - { |
105 | | - text: "下载器配置", |
106 | | - link: "/config/downloader", |
107 | | - }, |
108 | | - { |
109 | | - text: "解析器配置", |
110 | | - link: "/config/parser", |
111 | | - }, |
112 | | - { |
113 | | - text: "推送器配置", |
114 | | - link: "/config/notifier", |
115 | | - }, |
116 | | - { |
117 | | - text: "番剧管理配置", |
118 | | - link: "/config/manager", |
119 | | - }, |
120 | | - { |
121 | | - text: "代理配置", |
122 | | - link: "/config/proxy", |
123 | | - }, |
124 | | - { |
125 | | - text: "实验功能配置", |
126 | | - link: "/config/experimental", |
127 | | - }, |
128 | | - ] |
129 | | - }, |
130 | | - { |
131 | | - text: "功能说明", |
132 | | - items: [ |
133 | | - { |
134 | | - text: "RSS 管理", |
135 | | - link: "/feature/rss", |
136 | | - }, |
137 | | - { |
138 | | - text: "番剧管理", |
139 | | - link: "/feature/bangumi", |
140 | | - }, |
141 | | - { |
142 | | - text: "重命名", |
143 | | - link: "/feature/rename", |
144 | | - }, |
145 | | - { |
146 | | - text: "搜索番组", |
147 | | - link: "/feature/search", |
148 | | - } |
149 | | - ] |
150 | | - }, |
151 | | - { |
152 | | - text: "FAQ", |
153 | | - items: [ |
154 | | - { |
155 | | - text: "常见问题", |
156 | | - link: "/faq/", |
157 | | - }, |
158 | | - { |
159 | | - text: "排错流程", |
160 | | - link: "/faq/troubleshooting", |
161 | | - }, |
162 | | - { |
163 | | - text: "网络问题", |
164 | | - link: "/faq/network", |
165 | | - } |
166 | | - ], |
167 | | - }, |
168 | | - { |
169 | | - text: "更新日志", |
170 | | - items: [ |
171 | | - { |
172 | | - text: "3.1 更新说明", |
173 | | - link: "/changelog/3.1", |
174 | | - }, |
175 | | - { |
176 | | - text: "3.0 更新说明", |
177 | | - link: "/changelog/3.0", |
178 | | - }, |
179 | | - { |
180 | | - text: "2.6 更新说明", |
181 | | - link: "/changelog/2.6", |
182 | | - }, |
183 | | - ], |
184 | | - }, |
185 | | - { |
186 | | - text: "开发者文档", |
187 | | - items: [ |
188 | | - { |
189 | | - text: "贡献指南", |
190 | | - link: "/dev/", |
191 | | - }, |
192 | | - ] |
193 | | - } |
| 55 | + sidebar: [ |
| 56 | + { |
| 57 | + items: [ |
| 58 | + { text: 'About', link: '/home/' }, |
| 59 | + { text: 'Quick Start', link: '/deploy/quick-start' }, |
| 60 | + { text: 'How It Works', link: '/home/pipline' }, |
194 | 61 | ], |
195 | | - }, |
196 | | -}); |
| 62 | + }, |
| 63 | + { |
| 64 | + text: 'Deployment', |
| 65 | + items: [ |
| 66 | + { text: 'Docker CLI', link: '/deploy/docker-cli' }, |
| 67 | + { text: 'Docker Compose', link: '/deploy/docker-compose' }, |
| 68 | + { text: 'Synology NAS (DSM)', link: '/deploy/dsm' }, |
| 69 | + { text: 'Local Deployment', link: '/deploy/local' }, |
| 70 | + ], |
| 71 | + }, |
| 72 | + { |
| 73 | + text: 'Configuration', |
| 74 | + items: [ |
| 75 | + { text: 'RSS Feed Setup', link: '/config/rss' }, |
| 76 | + { text: 'Program Settings', link: '/config/program' }, |
| 77 | + { text: 'Downloader Settings', link: '/config/downloader' }, |
| 78 | + { text: 'Parser Settings', link: '/config/parser' }, |
| 79 | + { text: 'Notification Settings', link: '/config/notifier' }, |
| 80 | + { text: 'Bangumi Manager', link: '/config/manager' }, |
| 81 | + { text: 'Proxy Settings', link: '/config/proxy' }, |
| 82 | + { text: 'Experimental Features', link: '/config/experimental' }, |
| 83 | + ], |
| 84 | + }, |
| 85 | + { |
| 86 | + text: 'Features', |
| 87 | + items: [ |
| 88 | + { text: 'RSS Management', link: '/feature/rss' }, |
| 89 | + { text: 'Bangumi Management', link: '/feature/bangumi' }, |
| 90 | + { text: 'File Renaming', link: '/feature/rename' }, |
| 91 | + { text: 'Torrent Search', link: '/feature/search' }, |
| 92 | + ], |
| 93 | + }, |
| 94 | + { |
| 95 | + text: 'FAQ', |
| 96 | + items: [ |
| 97 | + { text: 'Common Questions', link: '/faq/' }, |
| 98 | + { text: 'Troubleshooting', link: '/faq/troubleshooting' }, |
| 99 | + { text: 'Network Issues', link: '/faq/network' }, |
| 100 | + ], |
| 101 | + }, |
| 102 | + { |
| 103 | + text: 'API Reference', |
| 104 | + items: [ |
| 105 | + { text: 'REST API', link: '/api/' }, |
| 106 | + ], |
| 107 | + }, |
| 108 | + { |
| 109 | + text: 'Changelog', |
| 110 | + items: [ |
| 111 | + { text: '3.2 Release Notes', link: '/changelog/3.2' }, |
| 112 | + { text: '3.1 Release Notes', link: '/changelog/3.1' }, |
| 113 | + { text: '3.0 Release Notes', link: '/changelog/3.0' }, |
| 114 | + { text: '2.6 Release Notes', link: '/changelog/2.6' }, |
| 115 | + ], |
| 116 | + }, |
| 117 | + { |
| 118 | + text: 'Developer Guide', |
| 119 | + items: [ |
| 120 | + { text: 'Contributing', link: '/dev/' }, |
| 121 | + ], |
| 122 | + }, |
| 123 | + ], |
| 124 | + }, |
| 125 | +}) |
0 commit comments