forked from Ctrlpanel-gg/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
117 lines (115 loc) · 3.03 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
const lightCodeTheme = require("prism-react-renderer/themes/github");
const darkCodeTheme = require("prism-react-renderer/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/intro",
},
],
},
{
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: lightCodeTheme,
darkTheme: darkCodeTheme,
},
},
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
lastVersion: "1.0",
// Please change this to your repo.
editUrl: "https://github.com/Ctrlpanel-gg/docs/tree/main",
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
},
],
],
};