This repository was archived by the owner on Apr 26, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
215 lines (203 loc) · 5.61 KB
/
docusaurus.config.js
File metadata and controls
215 lines (203 loc) · 5.61 KB
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
213
214
215
// @ts-check
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Serein',
tagline: '新时代极简服务器面板',
favicon: 'img/Serein.ico',
url: 'https://serein.cc',
baseUrl: '/',
organizationName: 'SereinDev',
projectName: 'Serein',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'throw',
markdown: {
mermaid: true,
},
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/SereinDev/old-docs/edit/main/',
showLastUpdateAuthor: true,
showLastUpdateTime: true
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
announcementBar: {
content: 'Serein v2.0已发布!<a href="https://sereindev.github.io/" style="color: var(--ifm-link-color); text-decoration: var(--ifm-link-decoration);">点我查看</a>',
textColor: 'var(--ifm-color-primary-contrast-foreground)',
backgroundColor: 'var(--ifm-background-surface-color)',
isCloseable: false
},
image: 'img/Serein.jpg',
navbar: {
hideOnScroll: true,
title: 'Serein',
logo: {
alt: 'Logo',
src: 'img/Serein.png',
},
items: [
{
type: 'dropdown',
label: '📔目录',
items: [
{
type: 'docSidebar',
sidebarId: 'docs',
label: '介绍',
},
{
type: 'docSidebar',
sidebarId: 'tutorialSidebar',
label: '教程',
},
{
type: 'docSidebar',
sidebarId: 'developmentSidebar',
label: '插件开发',
},
{
type: 'docSidebar',
sidebarId: 'versionSidebar',
label: '版本记录',
},
{
label: '在线统计',
href: '/onlineCount'
},
{
type: 'docSidebar',
sidebarId: 'moreSidebar',
label: '更多',
}
],
},
{
label: '📝留言板',
to: 'messageBoard'
},
{
label: '💖捐赠',
to: '/docs/more/donate'
},
{
label: '🏬扩展市场',
to: 'https://market.serein.cc/'
},
{
label: '🗃版本',
position: 'right',
items: [
{
label: '正式版(发布版)',
href: 'https://serein.cc/'
},
{
label: '上古文档(v1.3.3之前)',
href: 'https://legacy.serein.cc/'
},
{
label: '船新文档(预览版)',
href: 'https://preview.serein.cc/'
}
]
}
],
},
footer: {
style: 'light',
links: [
{
title: 'Serein',
items: [
{
label: '扩展市场',
to: 'https://market.serein.cc/'
},
{
label: '在线统计',
to: 'https://online-count.serein.cc/'
},
{
label: '问卷调查',
to: 'https://wj.qq.com/s2/11559426/5a2e/'
}
],
},
{
title: '更多',
items: [
{
label: '仓库(软件)',
to: 'https://github.com/Zaitonn/Serein',
},
{
label: '仓库(文档)',
to: 'https://github.com/Zaitonn/Serein-Docs',
},
{
href: 'https://jq.qq.com/?_wv=1027&k=XNZqPSPv',
label: '交流群',
}
],
},
{
title: '发布',
items: [
{
label: 'GitHub',
to: 'https://github.com/Zaitonn/Serein/releases/latest',
},
{
label: 'MineBBS',
href: 'https://www.minebbs.com/resources/serein.4169/',
},
{
label: 'MCBBS',
href: 'https://www.mcbbs.net/thread-1424853-1-1.html',
},
],
},
],
copyright: 'Copyright © 2022 Zaitonn. All Rights Reserved.',
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
additionalLanguages: ['csharp', 'batch', 'powershell', 'typescript', 'regex', 'batch']
},
metadata: [
{
name: 'keywords',
content: '面板, 服务器, 我的世界, Minecraft, BDS, Java, 基岩版, 开服, 机器人, 简单, 易用'
}],
}),
i18n: {
defaultLocale: 'zh-Hans',
locales: ['zh-Hans'],
},
themes: [
'@docusaurus/theme-mermaid',
[
require.resolve("@easyops-cn/docusaurus-search-local"),
({
hashed: true,
language: ["en", "zh"],
}),
],
]
};
module.exports = config;