-
-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
164 lines (163 loc) · 4.2 KB
/
docusaurus.config.js
File metadata and controls
164 lines (163 loc) · 4.2 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
const {themes} = require('prism-react-renderer');
const lightTheme = themes.github;
const darkTheme = themes.dracula;
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: "CtrlPanel.gg",
tagline:
"CtrlPanel's Dashboard is a free and open-source management panel for Pterodactyl with credit based billing and customization to fit your needs.",
url: "https://ctrlpanel.gg",
baseUrl: "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "img/controlpanel.ico",
organizationName: "CtrlPanel-gg", // Usually your GitHub org/user name.
projectName: "docs", // Usually your repo name.
trailingSlash: false,
themeConfig: {
navbar: {
title: "CtrlPanel",
logo: {
alt: "CtrlPanel logo",
src: "img/controlpanel.png",
},
items: [
{
type: "doc",
docId: "intro",
position: "left",
label: "Documentation",
},
{
href: "https://market.ctrlpanel.gg",
label: "Theme / Extension Hub",
position: "left",
},
{
type: "docsVersionDropdown",
position: "right",
dropdownActiveClassDisabled: true,
},
{
href: "https://documenter.getpostman.com/view/9044962/TzY69ub2#02b8da43-ab01-487d-b2f5-5f8699b509cd",
label: "API",
position: "left",
},
{
href: "https://demo.ctrlpanel.gg",
label: "Demo",
position: "right",
},
{
href: "https://discord.gg/ctrlpanel-gg-787829714483019826",
label: "Discord",
position: "right",
},
{
href: "https://github.com/Ctrlpanel-gg/panel",
label: "GitHub",
position: "right",
},
],
},
footer: {
style: "dark",
links: [
{
title: "Docs",
items: [
{
label: "Documentation",
to: "/docs",
},
],
},
{
title: "Community",
items: [
{
label: "Discord",
href: "https://discord.gg/ctrlpanel-gg-787829714483019826",
},
],
},
{
title: "More",
items: [
{
label: "GitHub",
href: "https://github.com/Ctrlpanel-gg/panel",
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Ctrlpanel.gg. Built with Docusaurus. Ctrlpanel.gg is not affiliated with Discord.`,
},
prism: {
theme: lightTheme,
darkTheme: darkTheme,
additionalLanguages: ['bash', 'nginx', 'sql'],
},
},
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
includeCurrentVersion: false,
lastVersion: "1.1.x",
versions: {
'beta': {
label: '1.2.x (Public Beta)',
path: 'beta',
banner: 'none',
},
// '1.2.x': {
// label: '1.2.x (Upcoming release)',
// },
'1.1.x': {
label: '1.1.x (Latest)',
},
'archive': {
label: 'Archive',
},
},
// Please change this to your repo.
editUrl: "https://github.com/Ctrlpanel-gg/docs/tree/main",
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
},
],
],
plugins: [
[
'@docusaurus/plugin-client-redirects',
{
redirects: [
{
from: '/docs/intro',
to: '/docs',
},
{
from: '/docs/Installation/updating',
to: '/docs/category/updating',
},
{
from: '/docs/Contributing/donating',
to: '/docs/contributing/donating',
},
{
from: '/docs/Installation/getting-started',
to: '/docs/getting-started/install',
},
// {
// to: '/docs/newDoc2',
// from: ['/docs/oldDocFrom2019', '/docs/legacyDocFrom2016'],
// },
],
},
],
],
};