-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
165 lines (155 loc) · 5.87 KB
/
Copy pathdocusaurus.config.js
File metadata and controls
165 lines (155 loc) · 5.87 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
// @ts-check
// `@type` JSDoc 注解允许编辑器自动完成和类型检查
// (当与 `@ts-check` 搭配使用时)。
// 有多种等效的方式来声明你的 Docusaurus 配置。
// 参见: https://docusaurus.io/docs/api/docusaurus-config
import {themes as prismThemes} from 'prism-react-renderer';
// 此代码运行在 Node.js 环境 - 不要在这里使用客户端代码(浏览器API,JSX...)
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Fold Craft Launcher', // 网站标题
tagline: '在安卓设备上轻松运行minecraft JAVA版。', // 网站标语
favicon: 'img/favicon.ico', // 网站图标
// 在这里设置你网站的生产环境URL
url: 'https://fcl.ningmo.fun',
// 设置你的站点服务的基本路径/<baseUrl>/
// 对于GitHub Pages部署,通常是 '/<projectName>/'
baseUrl: '/',
onBrokenLinks: 'warn', // 当检测到损坏链接时抛出错误
onBrokenMarkdownLinks: 'warn', // 当检测到损坏的Markdown链接时发出警告
// 即使你不使用国际化,你也可以使用此字段来设置
// 有用的元数据如 html 语言。例如,如果你的站点是中文的,你
// 可能希望将 "en" 替换为 "zh-Hans"。
i18n: {
defaultLocale: 'zh-CN', // 默认区域设置
locales: ['en', 'zh-CN'], // 支持的区域设置列表
path: 'i18n', // 区域设置文件的路径
localeConfigs: {
en: {
label: 'English', // 英文标签
direction: 'ltr', // 文本方向:从左到右
htmlLang: 'en-US', // HTML 语言属性
calendar: 'gregory', // 使用的历法
path: 'en', // 英文内容路径
},
'zh-CN': {
label: '简体中文', // 简体中文标签
direction: 'ltr', // 文本方向:从左到右
htmlLang: 'zh-CN', // HTML 语言属性
calendar: 'gregory', // 使用的历法
path: '/', // 简体中文内容路径
},
},
},
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: './sidebars.js', // 侧边栏配置文件路径
// 请将此更改为你的仓库地址。
// 删除此项以移除"编辑此页"链接。
editUrl:
'https://github.com/fcl-docs/docusaurus-fcl/tree/main/packages/create-docusaurus/templates/shared/',
},
blog: {
showReadingTime: true, // 显示阅读时间
feedOptions: {
type: ['rss', 'atom'], // 提供RSS和Atom订阅源
xslt: true, // 启用XSLT转换
},
// 请将此更改为你的仓库地址。
// 删除此项以移除"编辑此页"链接。
editUrl:
'https://github.com/fcl-docs/docusaurus-web/tree/main/packages/create-docusaurus/templates/shared/',
// 用于强制执行博客最佳实践的有用选项
onInlineTags: 'warn', // 内联标签警告
onInlineAuthors: 'warn', // 内联作者警告
onUntruncatedBlogPosts: 'warn', // 未截断博客文章警告
},
theme: {
customCss: './src/css/custom.css', // 自定义CSS文件路径
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
// 替换为你项目的社交卡片图片
image: 'img/logo.png',
navbar: {
title: 'Fold Craft Launcher', // 导航栏标题
logo: {
alt: 'Logo', // Logo替代文本
src: 'img/logo.png', // Logo图片源
},
items: [
{
type: 'localeDropdown', // 区域下拉菜单
position: 'left', // 左侧位置
},
{
type: 'docSidebar', // 文档侧边栏
sidebarId: 'tutorialSidebar', // 侧边栏ID
position: 'left', // 左侧位置
label: '文档', // 标签
},
{to: '/blog', label: '动态', position: 'left'}, // 博客链接
{to:'/download',label:'下载'},
{
href: 'https://github.com/fcl-team/foldcraftlauncher',
label: 'GitHub', // GitHub链接标签
position: 'right', // 右侧位置
},
],
},
footer: {
style: 'dark', // 页脚样式:深色
links: [
{
title: '文档', // 分类标题
items: [
{
label: '入门-了解启动器', // 链接标签
to: '/docs/intro', // 链接地址
},
],
},
{
title: '社区', // 分类标题
items: [
{
label: '爱发电(QQ群)', // Stack Overflow链接标签
href: 'https://afdian.com/a/tungs', // 链接地址
},
{
label: 'Discord', // Discord链接标签
href: 'https://discord.gg/ffhvuXTwyV', // 链接地址
},
],
},
{
title: '相关链接', // 分类标题
items: [
{
label: 'MobileGlues渲染器', // 链接标签
href: 'https://github.com/Swung0x48/MobileGlues-release',
},
{
label: 'GitHub', // GitHub链接标签
href: 'https://github.com/fcl-team/foldcraftlauncher'
},
],
},
],
copyright: `网站版权所有 © ${new Date().getFullYear()} 柠枺. 使用Docusaurus构建。<br/><a href="https://beian.miit.gov.cn/" target="_blank" rel="noopener noreferrer">新ICP备2024015133号-2</a>`, // 版权信息带备案号
},
prism: {
theme: prismThemes.github, // Prism主题:GitHub风格
darkTheme: prismThemes.dracula, // Prism暗色主题:Dracula风格
},
}),
};
export default config;