-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocusaurus.config.ts
203 lines (195 loc) · 5.85 KB
/
docusaurus.config.ts
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
import {themes as prismThemes} from 'prism-react-renderer';
import {PrismTheme} from 'prism-react-renderer';
import type {Config} from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
// This works in Node.js - don't use client-side code (browser API, JSX, etc.) here.
const config: Config = {
title: 'Lunova Docs',
tagline: 'Lunova Studio 官方文档站!🥳🥳🥳',
favicon: 'https://lunova.studio/wp-content/uploads/2025/03/[email protected]',
// Set up your website's production URL here
url: 'https://lunova-studio.github.io',
// Set <baseUrl>the // pathname of the providing site
// For GitHub page deployments, it's usually '/<projectName>/'
baseUrl: '/',
// GitHub 页面部署配置。
// 如果您不使用 GitHub 页面,则不需要这些。
organizationName: 'lunova-studio', // This is usually your GitHub organization/username.
projectName: 'lunova-studio.github.io', // It is usually the name of the warehouse.
deploymentBranch: 'docusaurus',
trailingSlash: false,
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
// You can use this field setting even if you don't use internationalization
// Useful metadata, such as HTML lang. For example, if your website is a Chinese website, you
// You may want to replace "en" with "zh-hans".
i18n: {
defaultLocale: 'zh-Hans',
locales: ['zh-Hans'],
},
presets: [
[
'classic',
{
docs: {
sidebarPath: './sidebars.ts',
// 请将其更改为您的存储库。
// Delete this link (删除此链接) 以删除 Edit this page (编辑此页面) 链接。
editUrl:
'https://github.com/lunova-studio/lunova-studio.github.io/tree/docusaurus/',
},
blog: {
showReadingTime: true,
feedOptions: {
type: ['rss', 'atom'],
xslt: true,
},
// 请将其更改为您的存储库。
// Delete this link (删除此链接) 以删除 Edit this page (编辑此页面) 链接。
editUrl:
'https://github.com/lunova-studio/lunova-studio.github.io/tree/docusaurus/',
// 实施博客最佳实践的有用选项
onInlineTags: 'warn',
onInlineAuthors: 'warn',
onUntruncatedBlogPosts: 'warn',
},
theme: {
customCss: './src/css/custom.css',
},
} satisfies Preset.Options,
],
],
themeConfig: {
htmlTags: {
headTags: [
{
tagName: 'script',
attributes: {
defer: true,
src: 'https://umami.lunova.studio/script.js',
'data-website-id': '60822bf6-7e18-4326-933f-ad367754f54b'
}
}
]
},
announcementBar: {
id: 'new-studio',
content:
'Blessing Studio 已经更名为 Lunova Studio,感谢各位一直以来的支持,请访问新站点 lunova.studio',
backgroundColor: '#D80000',
textColor: '#ffffff',
isCloseable: true,
},
// 替换为项目的社交卡片
image: 'img/docusaurus-social-card.jpg',
navbar: {
title: 'Lunova Docs',
logo: {
alt: 'Lunova Docs Logo',
src: 'https://lunova.studio/wp-content/uploads/2025/03/[email protected]',
},
items: [
{
type: 'docSidebar',
sidebarId: 'minecraftLaunchSidebar',
position: 'left',
label: 'MinecraftLaunch',
},
{
type: 'docSidebar',
sidebarId: 'monetSidebar',
position: 'left',
label: 'Monet',
},
{
type: 'docSidebar',
sidebarId: 'wonderLabSidebar',
position: 'left',
label: 'WonderLab',
},
{
type: 'docSidebar',
sidebarId: 'designSidebar',
position: 'left',
label: '设计规范',
},
{to: '/blog', label: '博客日志', position: 'right'},
{
type: 'docSidebar',
sidebarId: 'aboutSidebar',
position: 'right',
label: '关于',
},
{
type: 'dropdown',
label: '快速链接',
position: 'right',
items: [
{
label: '文档 GitHub 仓库',
href: 'https://github.com/lunova-studio/lunova-studio.github.io',
},
{
label: 'Lunova Studio 官网',
href: 'https://lunova.studio',
},
],
},
{
type: 'localeDropdown',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: '文档',
items: [
{
label: 'MinecraftLaunch',
to: '/docs/MinecraftLaunch',
},
{
label: 'WonderLab',
to: '/docs/WonderLab',
},
{
label: 'Monet',
to: '/docs/Monet',
},
{
label: '设计规范',
to: '/docs/design',
},
],
},
{
title: '社交链接',
items: [
{
label: 'GitHub',
href: 'https://github.com/lunova-studio',
},
{
label: 'Lunova Studio 官网',
href: 'https://lunova.studio',
},
],
},
],
logo: {
alt: 'Meta Open Source Logo',
src: '/img/BWP.png',
href: 'https://lunova.studio',
},
copyright: `Copyright © ${new Date().getFullYear()} Lunova Studio. Built with Docusaurus.`,
},
prism: {
theme: prismThemes.github,
additionalLanguages: ['csharp', 'powershell', 'typescript'],
},
} satisfies Preset.ThemeConfig,
};
export default config;