This repository has been archived by the owner on May 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
/
docusaurus.config.js
125 lines (120 loc) · 3 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
const config = {
title: 'PocketMine School',
tagline: 'A Website To Teach Everything About PocketMine-MP',
url: 'https://pocketmineschool.netlify.app',
baseUrl: '/',
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
trailingSlash: false,
organizationName: 'PocketMine School',
projectName: 'Pocketmine-School',
presets: [
[
'@docusaurus/preset-classic',
({
docs: {
routeBasePath: 'tutorials',
sidebarPath: 'sidebars.js',
editUrl: 'https://github.com/PocketMine-School/Pocketmine-School/tree/master',
breadcrumbs: false,
},
googleAnalytics: {
trackingID: 'UA-179045405-3',
anonymizeIP: true,
},
blog: false,
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
plugins: [
[
'@docusaurus/plugin-ideal-image',
{
disableInDev: false,
},
],
],
themeConfig: {
image: 'img/pocketmineschool.png',
colorMode: {
defaultMode: 'dark',
disableSwitch: false,
respectPrefersColorScheme: true,
},
docs: {
sidebar: {
hideable: true,
},
},
tableOfContents: {
minHeadingLevel: 2,
maxHeadingLevel: 5,
},
prism: {
additionalLanguages: ['php', 'yaml'],
theme: require('prism-react-renderer/themes/github'),
darkTheme: require('prism-react-renderer/themes/vsDark'),
},
navbar: {
title: '',
logo: {
alt: 'Pocketmine School',
src: 'img/pocketmineschool.png',
srcDark: 'img/pocketmineschool-wbg.png',
},
items: [
{
to: 'tutorials',
position: 'right',
label: 'Tutorial',
},
{
href: 'https://github.com/PocketMine-School/Pocketmine-School',
position: 'right',
className: 'github-icon pseudo-icon',
},
{
href: 'https://discord.gg/EpC2KFvxAd',
position: 'right',
className: 'discord-icon pseudo-icon',
},
],
},
footer: {
links: [
{
title: 'Community',
items: [
{
label: 'PocketMine School Discord',
href: 'https://discord.gg/5e7PFEXgF3',
},
{
label: 'UltraSoft Discord',
href: 'https://discord.gg/EvUyyS7',
},
{
label: 'KygekTeam Discord',
href: 'https://discord.gg/CXtqUZv',
},
],
},
{
title: 'Other Links',
items: [
{
label: 'Github',
href: 'https://github.com/PocketMine-School/Pocketmine-School',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} <strong><a href="https://github.com/PocketMine-School">PocketMine School</a></strong>.`,
},
},
};
module.exports = config;