forked from yeecord/website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
166 lines (162 loc) · 3.71 KB
/
docusaurus.config.js
File metadata and controls
166 lines (162 loc) · 3.71 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
const darkCodeTheme = require('prism-react-renderer/themes/dracula')
// With JSDoc @type annotations, IDEs can provide config autocompletion
/** @type {import('@docusaurus/types').DocusaurusConfig} */
;(module.exports = {
title: 'YEE式機器龍',
tagline: '沒有了Rythm,你還是可以快速的建立優質的中文Discord伺服器,我們是能夠超越Rythm更好的Discord音樂機器人,使用我讓Discord不再只是聊天平台!',
url: 'https://yeecord.com',
baseUrl: '/',
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'warn',
favicon: 'https://yeecord.com/img/logo_128x128.png',
organizationName: 'Yeecord',
projectName: 'YEE式機器龍',
trailingSlash: true,
i18n: {
defaultLocale: 'zh-Hant',
locales: ['zh-Hant']
},
presets: [
[
'@docusaurus/preset-classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
sitemap: {
changefreq: 'hourly',
priority: 0.7,
ignorePatterns: ["**/tags/**"]
},
googleAnalytics: {
trackingID: 'UA-118349579-3',
anonymizeIP: false
},
docs: {
sidebarPath: require.resolve('./sidebars.js'),
sidebarCollapsed: false,
sidebarCollapsible: true,
editUrl: 'https://github.com/yeecord/docs#readme'
},
blog: {
blogTitle: "部落格",
blogDescription: "YEE式機器龍各種用肝和 ❤️ 製作的部落格",
blogSidebarTitle: "推薦文章",
postsPerPage: 5,
showReadingTime: true,
feedOptions: {
type: "all",
copyright: `YEE式機器龍 © 2019 ~ ${new Date().getFullYear()}`
}
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
themeConfig: ({
image: "https://yeecord.com/img/branding.png",
metadata: [
{ name: "twitter:card", content: "summary_large_image"}
],
colorMode: {
defaultMode: "dark",
disableSwitch: true
},
navbar: {
title: 'YEE式機器龍',
logo: {
alt: 'YEE式機器龍 Logo',
src: 'https://yeecord.com/img/logo_128x128.png',
},
items: [
{
type: 'doc',
docId: 'index',
position: 'left',
label: '使用教學',
},
{to: '/docs/faq/', label: '常見問題', position: 'left'},
{to: '/blog/', label: '部落格', position: 'left'},
{
href: "https://yeecord.com/link",
label: "邀請機器人",
position: "right",
},
{
href: "https://discord.gg/yeecord",
label: "Discord",
position: "right"
},
{
href: 'https://github.com/yeecord',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: '連結',
items: [
{
label: '入門',
to: '/docs/',
},
{
label: '部落格',
to: '/blog/',
},
{
label: '隱私權聲明',
to: '/privacy/'
},
{
label: '使用條款',
to: '/terms/'
},
],
},
{
title: '社群',
items: [
{
label: 'Discord',
href: 'https://discord.gg/yeecord',
},
],
},
{
title: '更多',
items: [
{
label: '邀請機器人',
href: 'https://yeecord.com/link'
},
{
label: 'GitHub',
href: 'https://github.com/yeecord',
},
{
label: "Patreon",
href: "https://www.patreon.com/yeecord"
},
{
label: "top.gg",
href: "https://yeecord.com/topgg/"
}
],
},
],
copyright: `YEE式機器龍 © 2019 ~ ${new Date().getFullYear()}`,
},
prism: {
additionalLanguages: ["csharp"],
defaultLanguage: "zh-tw",
theme: darkCodeTheme,
darkTheme: darkCodeTheme,
},
}),
});