-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
203 lines (196 loc) · 6.39 KB
/
Copy pathdocusaurus.config.js
File metadata and controls
203 lines (196 loc) · 6.39 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
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const {themes} = require('prism-react-renderer');
const lightTheme = themes.github;
const darkTheme = themes.dracula;
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'HoloJaneway',
tagline: 'Dinosaurs are cool',
url: 'https://your-docusaurus-test-site.com',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/logo.ico',
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: '', // Usually your GitHub org/user name.
projectName: '', // Usually your repo name.
// Even if you don't use internalization, you can use this field to set useful
// metadata like html lang. For example, if your site is Chinese, you may want
// to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'zh-Hans',
locales: ['zh-Hans','en'],
localeConfigs: {
en: {
htmlLang: 'en-US',
},
},
},
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
routeBasePath: '/',
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
/*editUrl:
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',*/
},
blog: false,/*{
showReadingTime: true,
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
},*/
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
title: 'HoloJaneway',
logo: {
alt: 'My Site Logo',
src: 'img/logo.png',
},
items: [
{
type: 'doc',
docId: 'holojaneway/0',
position: 'left',
label: 'Mod开发教程',
},
{
type: 'doc',
docId: 'madparticle/home',
position: 'left',
label: 'Mod使用指南',
},
/*{
type: 'doc',
docId: 'portfolio',
position: 'left',
label: 'Portfolio',
},*/
/*{
type: 'doc',
docId: 'r6ms/home',
position: 'left',
label: 'R6MS指南',
},*/
//{to: '/blog', label: 'Blog', position: 'left'},
{
href: 'https://github.com/USS-Shenzhou/HoloJaneway',
label: '点个Star吧!',
position: 'right',
},
{
type: 'localeDropdown',
position: 'right',
},
],
},
docs: {
sidebar: {
autoCollapseCategories: true,
},
},
footer: {
style: 'dark',
links: [
{
label: 'CurseForge',
href: 'https://legacy.curseforge.com/members/uss_shenzhou/projects'
},
{
label: 'Modrinth',
href: 'https://modrinth.com/user/USS-Shenzhou'
},
{
label: 'Discord',
href:'https://discord.gg/kNbGdDXpSA'
},
{
label: 'Bilibili',
href:'https://space.bilibili.com/266675750'
},
{
label: 'GitHub',
href:'https://github.com/USS-Shenzhou'
}
/*{
title: 'Docs',
items: [
{
label: 'Tutorial',
to: '/docs/intro',
},
],
},
{
title: 'Community',
items: [
{
label: 'Stack Overflow',
href: 'https://stackoverflow.com/questions/tagged/docusaurus',
},
{
label: 'Discord',
href: 'https://discordapp.com/invite/docusaurus',
},
{
label: 'Twitter',
href: 'https://twitter.com/docusaurus',
},
],
},
{
title: 'More',
items: [
{
label: 'Blog',
to: '/blog',
},
{
label: 'GitHub',
href: 'https://github.com/facebook/docusaurus',
},
],
},*/
],
// REMEMBER TO UPDATE I18N FOOTER.JSON
copyright: `<font size="2">
Copyleft ${new Date().getFullYear()} HoloJaneway, USS_Shenzhou. Built with <a href="https://docusaurus.io/" target="_blank">Docusaurus</a>.
</br><img src="https://beian.mps.gov.cn/web/assets/logo01.6189a29f.png" class="w-full" style="width: 0.8rem;"><a href="https://beian.mps.gov.cn/#/query/webSearch" target="_blank">川公网安备51112302000191号</a>
| <a href="https://beian.miit.gov.cn" target="_blank">蜀ICP备2023001090号-1</a>
</br>HoloJaneway网站使用<a href="https://github.com/USS-Shenzhou/HoloJaneway/blob/main/LICENSE" target="_blank">MIT</a>许可证。
| The HoloJaneway website is licensed under <a href="https://github.com/USS-Shenzhou/HoloJaneway/blob/main/LICENSE" target="_blank">MIT License</a>.
</br>《HoloJaneway Mod开发教程》使用<a href="https://holojaneway.uss-shenzhou.cn/holojaneway/0.1" target="_self">CC BY-NC 4.0,BSD-3-Clause和GPLv3</a>许可证。
| The HoloJaneway Mod Developing Tutorial is licensed under <a href="https://holojaneway.uss-shenzhou.cn/holojaneway/0.1" target="_self">CC BY-NC 4.0,BSD-3-Clause and GPLv3 License</a>.
</br>USS_Shenzhou 对《Mod使用指南》中的所有内容保留所有权利。
| All rights reserved for the Mod Usage Guidelines.
</font>
`,
},
prism: {
theme: lightTheme,
darkTheme: darkTheme,
additionalLanguages: ['java','toml','gradle','json','cmake','powershell'],
},
}),
markdown:{
mermaid:true,
},
themes:['@docusaurus/theme-mermaid'],
};
module.exports = config;