-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocusaurus.config.js
346 lines (335 loc) · 10.9 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
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
// @ts-check
// `@type` JSDoc annotations allow editor autocompletion and type checking
// (when paired with `@ts-check`).
// There are various equivalent ways to declare your Docusaurus config.
// See: https://docusaurus.io/docs/api/docusaurus-config
import { themes as prismThemes } from "prism-react-renderer";
const description =
"Magmastream is an easy-to-use and useful music module for your discord app.";
const baseUrl = "https://magmastream.com";
const title = "Magmastream - Ignite the Symphony of Sonic Harmony!";
const discordSupportLink = "https://discord.gg/Nq5gTGUfwa";
/** @type {import('@docusaurus/types').Config} */
const config = {
title: "Magmastream",
tagline: description,
favicon: "img/logo.ico",
customFields: {
usedBy: [
{
name: "Lava Jukebox",
icon: "/usedbyicons/lava-jukebox.png",
link: "https://discord.com/api/oauth2/authorize?client_id=887651843742793779&permissions=-1&redirect_uri=https%3A%2F%2Fdiscord.gg%2F4ZaXbbYSTZ&response_type=code&scope=guilds.join%20bot%20applications.commands",
creator: "Abel Purnwasy",
},
{
name: "Stal",
icon: "/usedbyicons/stal.png",
link: "https://discord.com/oauth2/authorize?client_id=923938180263182356&scope=bot%20applications.commands&permissions=27648861246",
creator: "memte",
},
{
name: "Lunio",
icon: "/usedbyicons/lunio.png",
link: "https://discord.com/oauth2/authorize?client_id=945030475779551415&permissions=61991952&scope=bot+applications.commands",
creator: "vexi",
},
{
name: "JukeDisc",
icon: "/usedbyicons/jukedisc.png",
link: "https://discord.com/oauth2/authorize?client_id=1109751797549105176&permissions=968552214080&scope=bot+applications.commands",
creator: "Theo",
},
{
name: "Cool Music",
icon: "/usedbyicons/cool-music.png",
link: "https://discord.com/oauth2/authorize?client_id=923529398425096193&permissions=12888394808&redirect_uri=https%3A%2F%2Fdiscord.gg%2Fcool-music-support-925619107460698202&response_type=code&scope=bot%20identify%20applications.commands",
creator: "Itz Random",
},
{
name: "Soundy",
icon: "/usedbyicons/soundy.png",
link: "https://discord.com/oauth2/authorize?client_id=1168385371294420992&scope=bot&permissions=298818334009",
creator: "iaMJ",
},
{
name: "Bot muzyczny",
icon: "/usedbyicons/bot-muzyczny.png",
link: "https://discord.com/oauth2/authorize?client_id=840892428613320726&permissions=8&scope=bot%20applications.commands",
creator: "kwelo",
},
{
name: "HamBot",
icon: "/usedbyicons/hambot.png",
link: "https://discord.com/oauth2/authorize?client_id=1049314312776335390",
creator: "yanishamburger",
},
],
},
stylesheets: [
"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css",
],
url: baseUrl,
baseUrl: "/",
onBrokenLinks: "ignore",
onBrokenAnchors: "ignore",
onBrokenMarkdownLinks: "ignore",
onDuplicateRoutes: "throw",
organizationName: "Magmastream-NPM",
projectName: "magmastream",
presets: [
[
"classic",
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
lastVersion: "current",
versions: {
current: {
label: "v2.8.2 (current)",
},
"2.8.1": {
label: "v2.8.1",
path: "2.8.1",
banner: "none",
noIndex: false,
},
"2.8.0": {
label: "v2.8.0",
path: "2.8.0",
banner: "none",
noIndex: false,
},
"2.7.5": {
label: "v2.7.5",
path: "2.7.5",
banner: "none",
noIndex: false,
},
"2.6.1": {
label: "v2.6.1",
path: "2.6.1",
banner: "unmaintained",
noIndex: true,
},
},
sidebarPath: "./sidebars.js",
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
showLastUpdateAuthor: true,
showLastUpdateTime: true,
editUrl:
"https://github.com/magmastream-npm/magmastream_documentation/tree/main/",
},
sitemap: {
lastmod: 'date',
priority: null,
changefreq: null,
},
blog: false,
// blog: {
// showReadingTime: true,
// feedOptions: {
// type: ['rss', 'atom'],
// xslt: true,
// },
// // Please change this to your repo.
// // Remove this to remove the "edit this page" links.
// editUrl:
// 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
// // Useful options to enforce blogging best practices
// onInlineTags: 'warn',
// onInlineAuthors: 'warn',
// onUntruncatedBlogPosts: 'warn',
// },
theme: {
customCss: "./src/css/custom.css",
},
}),
],
],
themeConfig: {
image: "https://i.imgur.com/TCdtEF3.png",
colorMode: {
defaultMode: "dark",
respectPrefersColorScheme: true,
},
metadata: [
{ name: "apple-mobile-web-app-title", content: title },
{ name: "application-name", content: title },
{ name: "theme-color", content: "#ff8c00" },
{ name: "algolia-site-verification", content: "C79C7151130DE594"},
{ name: "apple-mobile-web-app-capable", content: "yes" },
{ name: "mobile-web-app-capable", content: "yes" },
{ name: "apple-mobile-web-app-status-bar-style", content: "black" },
{ name: "audience", content: "all" },
{ name: "author", content: `Magmastream` },
{ name: "coverage", content: "Worldwide" },
{ name: "description", content: description },
{ name: "designer", content: `realdarek` },
{ name: "distribution", content: "Global" },
{ name: "googlebot", content: "index,follow" },
{ name: "HandheldFriendly", content: "True" },
{ name: "identifier-URL", content: baseUrl },
{
name: "keywords",
content:
"discord, bot, discord music bot, documentation, guide, lavalink, magmastream, music, music bot, music module, music system, musicbot, musicmodule, musicstream, musicstreaming, musicstreamingbot",
},
{ name: "owner", content: `sxm_abel` },
{ name: "rating", content: "safe for kids" },
{ name: "revisit-after", content: "7 days" },
{
name: "robots",
content: "archive,follow,imageindex,index,odp,snippet,translate",
},
{ name: "shortlink", content: baseUrl },
{
name: "subject",
content: "Documentation website for discord-api-types",
},
{ name: "summary", content: description },
{ name: "target", content: "all" },
{ name: "twitter:card", content: "summary_large_image" },
{ name: "twitter:creator", content: "sxm_abel" },
{ name: "twitter:site", content: "realdarek" },
{
name: "twitter:title",
content: "Magmastream - Ignite the Symphony of Sonic Harmony!",
},
{ name: "twitter:description", content: description },
{ name: "url", content: baseUrl },
{ name: "viewport", content: "width=device-width, initial-scale=1" },
{ property: "og:description", content: description },
{ property: "og:image", content: "https://i.imgur.com/TCdtEF3.png" },
{ property: "og:locale", content: "en_US" },
{ property: "og:site_name", content: title },
{
property: "og:title",
content: "Magmastream - Ignite the Symphony of Sonic Harmony!",
},
{ property: "og:type", content: "article" },
{ property: "og:url", content: baseUrl },
],
navbar: {
hideOnScroll: true,
title: "Magmastream",
logo: {
src: "img/logo.svg",
},
items: [
{
to: "/",
label: "Homepage",
position: "left",
activeBaseRegex: "^/$",
},
{
to: "/docs/intro",
label: "Documentation",
position: "left",
activeBaseRegex: "^/docs",
},
{
to: "/statistics",
label: "Statistics",
position: "left",
activeBaseRegex: "^/statistics",
},
{
to: "/usedby",
label: "Used by",
position: "left",
activeBaseRegex: "^/usedby",
},
{
type: "docsVersionDropdown",
position: "right",
dropdownItemsAfter: [
{
to: "/versions",
label: "All versions",
},
],
dropdownActiveClassDisabled: true,
},
{
href: discordSupportLink,
position: "right",
className: "fa-brands fa-discord fa-lg",
"aria-label": "Discord support server",
target: "_blank",
},
{
href: "https://github.com/magmastream-npm",
position: "right",
className: "fa-brands fa-github fa-lg",
"aria-label": "GitHub company",
target: "_blank",
},
{
type: "search",
position: "right",
},
],
},
footer: {
logo: {
alt: "Powered By Docusaurus",
src: "/img/docusaurus.png",
target: "_blank",
href: "https://docusaurus.io/",
width: 180,
height: 90,
},
links: [
{
title: "Documentations",
items: [
{
label: "Introduction",
to: "/docs/intro",
},
{
label: "Installation",
to: "/docs/getting-started/installation",
},
{
label: "Migrations (nothing there for now)",
to: "/docs/intro",
},
],
},
{
title: "Community",
items: [
{
label: "Discord",
href: discordSupportLink,
},
{
label: "Github",
href: "https://github.com/magmastream-npm",
},
{
label: "Credits",
href: "https://github.com/MenuDocs/erela.js",
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} <b>Magmastream</b>, Inc. Built with Docusaurus.`,
},
prism: {
theme: prismThemes.oneLight,
darkTheme: prismThemes.oneDark,
},
algolia: {
appId: "0DINHQMAE4",
apiKey: "1fc388650de4bef4176d19c8ee8a654c",
indexName: "magmastream",
contextualSearch: true,
},
},
};
export default config;