-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocusaurus.config.ts
More file actions
198 lines (178 loc) · 4.34 KB
/
docusaurus.config.ts
File metadata and controls
198 lines (178 loc) · 4.34 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
import type * as Preset from '@docusaurus/preset-classic';
import type { Options, ThemeConfig } from '@docusaurus/preset-classic';
import type { Config } from '@docusaurus/types';
import { themes as prismThemes } from 'prism-react-renderer';
const config: Config = {
title: 'Serein',
tagline:
'一款支持多服务器统一管理、群服互通、网页远程控制、插件扩展等功能,专为游戏服务器设计的自动化管理工具',
favicon: 'logo.png',
url: 'https://sereindev.github.io',
baseUrl: '/',
organizationName: 'SereinDev',
projectName: 'Serein',
onBrokenLinks: 'warn',
onBrokenAnchors: 'warn',
onBrokenMarkdownLinks: 'warn',
markdown: {
format: 'detect',
mermaid: true,
},
presets: [
[
'classic',
{
docs: {
sidebarPath: 'sidebars.ts',
editUrl:
'https://github.com/SereinDev/sereindev.github.io/edit/main/',
showLastUpdateAuthor: true,
showLastUpdateTime: true,
versions: {
current: {
label: '2.1.0',
},
},
lastVersion: 'current',
},
blog: false,
theme: {
customCss: './src/css/custom.css',
},
} satisfies Options,
],
],
themeConfig: {
docs: {
sidebar: {
autoCollapseCategories: true,
},
},
announcementBar: {
content:
'v2.1正式版已发布✨ <a href="https://github.com/SereinDev/Serein/releases/latest">点我下载</a>',
textColor: 'var(--ifm-color-primary-contrast-foreground)',
backgroundColor: 'var(--ifm-background-surface-color)',
id: '202507',
},
algolia: {
appId: 'VKICGVYQDT',
apiKey: '56c7260bfa6530fc4fcfffab941a8e18',
indexName: 'sereindocs',
contextualSearch: true,
},
image: 'logo.png',
navbar: {
hideOnScroll: true,
title: 'Serein',
logo: {
alt: 'Logo',
src: 'logo.png',
},
items: [
{
type: 'docSidebar',
sidebarId: 'guidance',
label: '指南',
},
{
type: 'docSidebar',
sidebarId: 'tutorial',
label: '教程',
},
{
type: 'docSidebar',
sidebarId: 'development',
label: '开发',
},
{
type: 'docSidebar',
sidebarId: 'more',
label: '更多',
},
{
label: '社区',
href: 'https://sereincommunity.github.io/',
},
{
type: 'docsVersionDropdown',
label: '版本',
position: 'right',
},
],
},
footer: {
style: 'light',
links: [
{
title: 'Serein',
items: [
{
label: '仓库',
href: 'https://github.com/SereinDev/Serein',
},
{
label: '讨论区',
href: 'https://github.com/orgs/SereinDev/discussions',
},
{
label: 'Codacy',
href: 'https://app.codacy.com/gh/SereinDev/Serein/dashboard',
},
],
},
{
title: '发布',
items: [
{
label: 'GitHub',
href: 'https://github.com/SereinDev/Serein/releases/latest',
},
{
label: 'MineBBS',
href: 'https://www.minebbs.com/resources/serein.4169/',
},
],
},
],
copyright: 'Copyright © 2022 Zaitonn. All Rights Reserved.',
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
additionalLanguages: [
'batch',
'csharp',
'log',
'http',
'json',
'regex',
'typescript',
'bash',
],
} satisfies Preset.ThemeConfig,
metadata: [
{
name: 'keywords',
content: [
'面板',
'服务器',
'我的世界',
'Minecraft',
'BDS',
'Java',
'基岩版',
'开服',
'简单',
'易用',
].join(', '),
},
],
} satisfies ThemeConfig,
i18n: {
defaultLocale: 'zh-Hans',
locales: ['zh-Hans'],
},
themes: ['@docusaurus/theme-mermaid'],
};
export default config;