-
Notifications
You must be signed in to change notification settings - Fork 26
/
docusaurus.config.js
125 lines (124 loc) · 3.26 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
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
module.exports = {
title: "swizzin community edition",
tagline: "An all-in-one modular seedbox solution",
url: "https://swizzin.ltd",
baseUrl: "/",
onBrokenLinks: "throw",
favicon: "img/favicon.ico",
organizationName: "swizzin", // Usually your GitHub org/user name.
projectName: "docs.swizzin.ltd", // Usually your repo name.
trailingSlash: false,
themeConfig: {
colorMode: {
defaultMode: "dark",
disableSwitch: false,
respectPrefersColorScheme: true,
},
prism: {
theme: require("prism-react-renderer/themes/nightOwl"),
darkTheme: require("prism-react-renderer/themes/nightOwlLight"),
},
image: "img/logo.png",
navbar: {
hideOnScroll: false,
title: "swizzin",
logo: {
alt: "swizzin Logo",
src: "img/logo.png",
},
items: [
{
to: "getting-started",
label: "Docs",
position: "left",
},
{
to: "applications",
label: "Applications",
position: "left",
},
{
to: "dev/intro",
label: "Development",
position: "left",
},
{
to: "getting-started/faqs",
label: "FAQs",
position: "left",
},
{
href: "https://github.com/swizzin/swizzin",
position: "right",
className: "header-github-link",
"aria-label": "GitHub Repository",
},
{
href: "https://swizzin.net",
position: "left",
// className: "header-github-link",
label: "Swizzin Hosted",
alt: "Managed seedboxes hosted by the swizzin developers"
// "aria-label": "GitHub Repository",
},
],
},
footer: {
logo: {
alt: 'swizzin Logo',
src: 'img/logo-sm.png',
href: 'https://swizzin.ltd',
},
links: [
{
title: "swizzin",
items: [
{
label: "Getting Started",
to: "getting-started",
},
{
label: "Box Basics",
to: "getting-started/box-basics",
},
],
},
{
title: "Social",
items: [
{
label: "GitHub",
href: "https://github.com/swizzin/swizzin",
},
{
label: "Discord",
href: "https://discord.gg/sKjs9UM",
}
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} swizzin. All rights reserved.`,
},
},
plugins: ["docusaurus-plugin-sass", "@docusaurus/plugin-ideal-image"],
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
// It is recommended to set document id as docs home page (`docs/` path).
sidebarPath: require.resolve("./sidebars.js"),
editUrl: "https://github.com/swizzin/docs.swizzin.ltd/edit/master/",
routeBasePath: "/",
},
blog: {
showReadingTime: true,
editUrl: "https://github.com/swizzin/docs.swizzin.ltd/edit/master/",
},
theme: {
customCss: require.resolve("./src/css/custom.scss"),
},
},
],
],
};