-
Notifications
You must be signed in to change notification settings - Fork 13
/
docusaurus.config.js
88 lines (88 loc) · 2.36 KB
/
docusaurus.config.js
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
/**
* @type {import('@docusaurus/types').DocusaurusConfig}
*
* @see https://docusaurus.io/docs/api/docusaurus-config
*/
module.exports = {
title: "Godwoken Docs",
tagline: "It's built with various articles about Godwoken, from simple concept explanations and step-by-step tutorials, to deep dives into how Godwoken actually works, all waiting for you to explore.",
url: "https://docs.godwoken.io",
baseUrl: "/",
trailingSlash: false,
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "img/favicon.ico",
organizationName: "godwokenrises", // Usually your GitHub org/user name.
projectName: "godwoken-doc", // Usually your repo name.
themes: [
[
require.resolve("@easyops-cn/docusaurus-search-local"),
/** @type {import("@easyops-cn/docusaurus-search-local").PluginOptions} */
({
// options: https://github.com/easyops-cn/docusaurus-search-local#theme-options
indexBlog: false,
docsRouteBasePath: '/',
// `hashed` is recommended as long-term-cache of index file is possible.
hashed: true,
}),
],
],
themeConfig: {
colorMode: {
defaultMode: "dark",
disableSwitch: false,
respectPrefersColorScheme: false,
},
navbar: {
hideOnScroll: true,
title: "Godwoken Docs",
style: "dark",
logo: {
alt: "Godwoken",
src: "img/favicon.ico"
},
items: [
{
type: "docsVersionDropdown",
position: "right",
},
{
href: "https://github.com/godwokenrises/godwoken-doc",
label: "GitHub",
position: "right",
},
{
label: "Discord",
href: "https://discord.gg/TfC9rExfHh",
position: "right",
},
],
},
footer: {
style: "dark",
copyright: `Copyright © ${new Date().getFullYear()} Godwoken. All Rights Reserved.`,
},
},
plugins: [
[
'@docusaurus/plugin-content-docs',
{
path: "docs",
lastVersion: 'current',
versions: {
current: {
label: 'Latest',
path: '/'
}
},
sidebarPath: require.resolve("./sidebars.js"),
routeBasePath: "/",
}
], [
'@docusaurus/theme-classic',
{
customCss: require.resolve("./src/css/custom.css"),
},
],
]
};