This repository has been archived by the owner on Jun 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
docusaurus.config.js
212 lines (209 loc) · 6.18 KB
/
docusaurus.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
const math = require('remark-math');
const katex = require('rehype-katex');
/** @type {import('@docusaurus/types').Config} */
const config = {
themes: [
// ... Your other themes.
[
require.resolve("@easyops-cn/docusaurus-search-local"),
{
hashed: true,
language: ["en", "zh"],
translations:
{
"search_placeholder": "搜索",
"see_all_results": "所有结果",
"no_results": "无结果",
"search_results_for": "按 \"{{ keyword }}\" 搜索结果",
"search_the_documentation": "搜索文档",
"count_documents_found": "找到 {{ count }} 篇文档",
"count_documents_found_plural": "找到 {{ count }} 篇文档",
"no_documents_were_found": "无结果"
}
},
],
],
title: 'Synthesizer V Studio 用户手册',
tagline: '脚本 API 文档已完工',
url: 'https://synthesizer-v-r2-docs.vercel.app/',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
organizationName: 'linyuansup',
projectName: 'synthesizer-v-r2-Docs',
presets: [
[
'@docusaurus/preset-classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/linyuansup/synthesizer-v-r2-docs',
remarkPlugins: [math],
rehypePlugins: [katex],
},
blog: {
showReadingTime: true,
editUrl:
'https://github.com/linyuansup/synthesizer-v-r2-docs',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
stylesheets: [
{
href: 'https://cdn.jsdelivr.net/npm/katex@0.13.11/dist/katex.min.css',
integrity:
'sha384-Um5gpz1odJg5Z4HAmzPtgZKdTBHZdw8S29IecapCSB31ligYPhHQZMIlWLYQGVoc',
crossorigin: 'anonymous',
},
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
title: 'Synthesizer V Studio Docs',
logo: {
alt: 'Logo',
src: 'img/logo.svg',
},
items: [
// {
// label: "快速开始",
// position: 'left',
// items: [
// {
// label: "Synthesizer V Studio 简介",
// to: 'docs/speed_start/about'
// },
// {
// label: "安装编辑器与声库",
// to: 'docs/speed_start/install',
// },
// {
// label: "声库详细介绍",
// to: 'docs/speed_start/voice_data/chinese',
// },
// ],
// },
// {
// type: 'doc',
// docId: 'main_docs/menu/about',
// position: 'left',
// label: '详细文档',
// },
{
type: 'doc',
docId: 'api/about',
position: 'left',
label: '脚本 API 中文文档',
},
// {
// label: '资源下载',
// position: 'right',
// items: [
// {
// label: '编辑器',
// to: 'docs/download/editor',
// },
// {
// label: '声库',
// to: 'docs/download/voice',
// },
// {
// label: 'Pro 脚本',
// to: 'docs/download/script',
// },
// {
// label: '其他资源',
// to: 'docs/download/other',
// },
// ],
// },
// {
// label: '制作人员',
// position: 'right',
// to: 'docs/other/author',
// },
// {
// href: 'https://message.bilibili.com/#/whisper/mid273891297',
// label: '意见 / 建议',
// position: 'right',
// },
],
},
footer: {
style: 'dark',
links: [
{
title: '友情链接',
items: [
{
label: '不羁阁',
href: 'https://bujigegroup.site/',
},
{
label: 'CVSE+ 制作组',
href: 'https://cvse.cc/',
},
{
label: 'Dreamtonics - Synthesizer V Studio',
href: 'https://dreamtonics.com/synthesizerv/',
},
],
},
{
title: '实用工具',
items: [
{
label: 'vsqx 分享平台',
href: 'https://www.vsqx.top/',
},
{
label: 'bpm 测速工具',
href: 'https://www.freejishu.com/tools/bpm.html'
},
{
label: '汉拼转换',
href: 'https://www.qqxiuzi.cn/zh/pinyin/',
},
{
label: 'Utaformatix - 工程格式转换',
href: 'https://sdercolin.github.io/utaformatix3/',
},
],
},
{
title: '关于我 - 磷元素P',
items: [
{
label: '哔哩哔哩',
href: 'https://space.bilibili.com/273891297',
},
{
label: '知乎',
href: 'https://www.zhihu.com/people/li-tian-yang-7-66',
},
{
label: 'GitHub(可提交 Pull Requests)',
href: 'https://github.com/linyuansup/',
},
],
},
],
copyright: `磷元素P & 不羁阁 - Synthesizer V Studio Docs 更新于 2022 / 07 / 06 适配到 Synthesizer V Studio 1.6.1`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
additionalLanguages: ['lua'],
},
}),
};
module.exports = config;