-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
108 lines (98 loc) · 2.93 KB
/
docusaurus.config.js
File metadata and controls
108 lines (98 loc) · 2.93 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
// docusaurus.config.js
/** @type {import('@docusaurus/types').Config} */
const config = {
title: '命令面板文档',
tagline: '命令面板文档',
favicon: 'favicon.png',
future: {
v4: true,
},
url: 'https://commandpanels-v4.halogly.com',
baseUrl: '/',
organizationName: 'halogly',
projectName: 'docs-commandpanels-v4-zh',
onBrokenLinks: 'warn',
i18n: {
defaultLocale: 'zh-Hans',
locales: ['zh-Hans'],
},
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: './sidebars.js',
routeBasePath: '/',
showLastUpdateTime: true,
// showLastUpdateAuthor: true,
},
blog: false,
pages: false,
theme: {
customCss: './src/css/custom.css',
},
}),
],
],
scripts: [
{
src: "/force-dark.js",
async: false,
},
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
metadata: [
{name: 'keywords', content: '命令面板,CommandPanels,我的世界,Minecraft,插件,文档,教程,配置指南'},
{name: 'description', content: 'CommandPanels 命令面板文档 - 完整的配置指南和使用教程,学习如何创建自定义菜单界面和交互命令'},
{property: 'og:type', content: 'website'},
{property: 'og:title', content: 'CommandPanels 命令面板文档'},
{property: 'og:description', content: 'CommandPanels 命令面板官方文档 - 完整的配置指南和使用教程'},
{property: 'og:image', content: 'https://commandpanels-v4.halogly.com/logo.png'},
],
navbar: {
logo: {
alt: 'CommandPanels Logo',
src: 'logo.png',
},
items: [
{
type: 'html',
position: 'right',
value: `<a href="https://commandpanels.net" target="_blank" class="navbar__item" style="font-weight: bold;">返回首页</a>`,
}
],
},
colorMode: {
defaultMode: 'dark',
disableSwitch: false,
respectPrefersColorScheme: false,
},
docs: {
sidebar: {
autoCollapseCategories: false,
},
},
scripts: [
{
src: '/force-dark.js',
async: false,
},
],
footer: {
copyright: `
Copyright © 2019-${new Date().getFullYear()} CommandPanels - Halogly
<div>
如有疑问及建议,可前往<a href="https://github.com/Halogly/docs-commandpanels-v4-zh/issues" target="_blank"
style="text-decoration: none;
border-bottom: solid #53A9DC;
font-weight: bold;">Github</a>反馈
<p style="font-size: 0.9em; opacity: 0.8; margin: 10px 0;">本文档为社区翻译版,非官方文档</p>
</div>
`,
},
}),
};
export default config;