-
Notifications
You must be signed in to change notification settings - Fork 1
/
docusaurus.config.js
125 lines (125 loc) · 3.14 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: 'Sleepy Discord',
tagline: 'C++ library for Discord',
url: 'https://yourwaifu.dev/',
baseUrl: '/sleepy-discord/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/title-icon.png',
trailingSlash: false,
organizationName: 'yourWaifu', // Usually your GitHub org/user name.
projectName: 'sleepy-discord', // Usually your repo name.
themeConfig: {
navbar: {
title: 'Sleepy Discord',
hideOnScroll: true,
items: [
{
to: 'docs/',
activeBasePath: 'docs',
label: 'Docs',
position: 'left',
},
{to: 'blog', label: 'Blog', position: 'left'},
{
href: 'https://github.com/yourWaifu/sleepy-discord',
label: 'GitHub',
position: 'right',
},
{
href: "https://discord.com/invite/5VDrVfK",
label: "Discord",
position: "right",
},
{
href: "https://github.com/sponsors/yourWaifu",
label: "Donate",
position: "right",
}
],
},
footer: {
style: 'dark',
links: [
{
title: "Docs",
items: [
{
label: "Topics",
to: "docs/events",
},
{
label: "Reference",
to: "docs/reference/index_classes"
}
]
},
{
title: "More",
items: [
{
label: "GitHub",
to: "https://github.com/yourWaifu/sleepy-discord"
},
{
label: "Discord Server",
to: "https://discord.com/invite/5VDrVfK",
},
{
label: "Sponsor or Donate",
to: "https://github.com/sponsors/yourWaifu"
}
]
},
{
title: "Credits",
items: [
{
label: `Built in ${new Date().getFullYear()} with Docusaurus and Doxybook2`,
to: "https://docusaurus.io/"
},
{
label: "Maintained By yourWaifu",
to: "https://yourwaifu.dev",
},
{
label: "Docs Git Repo",
to: "https://github.com/yourWaifu/sleepy-discord-docs",
}
]
},
]
},
colorMode: {
defaultMode: 'dark',
disableSwitch: false,
respectPrefersColorScheme: false,
},
hideableSidebar: true,
algolia: {
apiKey: 'aa64c0f51f119280e7f07594c58fb334',
indexName: 'sleepy-discord-docs',
}
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
//to do add edit button when update comes
showLastUpdateTime: true
},
blog: {
showReadingTime: true,
// Please change this to your repo.
editUrl:
'https://github.com/yourWaifu/sleepy-discord-docs/edit/master/blog/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
};