forked from rabbitmq/rabbitmq-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
431 lines (410 loc) · 15.1 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
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
// @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';
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'RabbitMQ',
tagline: 'One broker to queue them all',
favicon: 'img/rabbitmq-logo.svg',
// We need to force the trailing slash behavior to make it work with
// CloudFlare pages.
trailingSlash: false,
// Set the production url of your site here
url: 'https://www.rabbitmq.com',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'rabbitmq', // Usually your GitHub org/user name.
projectName: 'rabbitmq-website', // Usually your repo name.
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'throw',
// Even if you don't use internationalization, you can use this field to set
// useful metadata like html lang. For example, if your site is Chinese, you
// may want to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
customFields: {
releaseBranches: {
rabbitmq: {
// RabbitMQ releases per version declared in Docusaurus ('current' for
// the future docs).
'current': {
releases: [
],
},
'3.13': {
releases: [
{version: '3.13.3', release_date: "2024-05-31", },
{version: '3.13.2', release_date: "2024-04-30", },
{version: '3.13.1', release_date: "2024-03-29", },
{
version: '3.13.0',
release_date: "2024-02-22",
links: [
{
type: "announcement",
url: "/blog/2024/03/11/rabbitmq-3.13.0-announcement"
},
],
},
],
end_of_support: "2025-12-31",
},
'3.12': {
releases: [
{version: '3.12.14', release_date: "2024-05-06", },
{version: '3.12.13', release_date: "2024-02-16", },
{version: '3.12.12', release_date: "2024-01-09", },
{version: '3.12.11', release_date: "2023-12-22", },
{version: '3.12.10', release_date: "2023-11-21", },
{version: '3.12.9', release_date: "2023-11-17", },
{version: '3.12.8', release_date: "2023-11-01", },
{version: '3.12.7', release_date: "2023-10-18", },
{version: '3.12.6', release_date: "2023-09-22", },
{version: '3.12.5', release_date: "2023-09-20", },
{version: '3.12.4', release_date: "2023-08-24", },
{version: '3.12.3', release_date: "2023-08-18", },
{version: '3.12.2', release_date: "2023-07-18", },
{version: '3.12.1', release_date: "2023-06-26", },
{version: '3.12.0', release_date: "2023-06-02", },
],
end_of_support: "2024-12-31",
},
'3.11': {
releases: [
{version: '3.11.28', release_date: "2023-12-22", },
{version: '3.11.27', release_date: "2023-12-15", },
{version: '3.11.26', release_date: "2023-11-20", },
{version: '3.11.25', release_date: "2023-11-01", },
{version: '3.11.24', release_date: "2023-10-18", },
{version: '3.11.23', release_date: "2023-09-12", },
{version: '3.11.22', release_date: "2023-08-24", },
{version: '3.11.21', release_date: "2023-08-18", },
{version: '3.11.20', release_date: "2023-07-18", },
{version: '3.11.19', release_date: "2023-06-26", },
{version: '3.11.18', release_date: "2023-06-07", },
{version: '3.11.17', release_date: "2023-05-29", },
{version: '3.11.16', release_date: "2023-05-13", },
{version: '3.11.15', release_date: "2023-04-30", },
{version: '3.11.14', release_date: "2023-04-29", },
{version: '3.11.13', release_date: "2023-03-31", },
{version: '3.11.12', release_date: "2023-03-30", },
{version: '3.11.11', release_date: "2023-03-20", },
{version: '3.11.10', release_date: "2023-03-02", },
{version: '3.11.9', release_date: "2023-02-13", },
{version: '3.11.8', release_date: "2023-01-30", },
{version: '3.11.7', release_date: "2023-01-17", },
{version: '3.11.6', release_date: "2023-01-05", },
{version: '3.11.5', release_date: "2022-12-14", },
{version: '3.11.4', release_date: "2022-11-29", },
{version: '3.11.3', release_date: "2022-11-10", },
{version: '3.11.2', release_date: "2022-10-19", },
{version: '3.11.1', release_date: "2022-10-13", },
{version: '3.11.0', release_date: "2022-09-28", },
],
end_of_support: "2024-07-31",
},
'3.10': {
releases: [
{version: '3.10.25', release_date: "2023-07-18", },
{version: '3.10.24', release_date: "2023-06-07", },
{version: '3.10.23', release_date: "2023-05-25", },
{version: '3.10.22', release_date: "2023-04-30", },
{version: '3.10.21', release_date: "2023-04-29", },
{version: '3.10.20', release_date: "2023-03-22", },
{version: '3.10.19', release_date: "2023-03-02", },
{version: '3.10.18', release_date: "2023-02-13", },
{version: '3.10.17', release_date: "2023-01-31", },
{version: '3.10.16', release_date: "2023-01-30", },
{version: '3.10.15', release_date: "2023-01-30", },
{version: '3.10.14', release_date: "2023-01-17", },
{version: '3.10.13', release_date: "2022-12-14", },
{version: '3.10.12', release_date: "2022-11-29", },
{version: '3.10.11', release_date: "2022-11-10", },
{version: '3.10.10', release_date: "2022-10-19", },
{version: '3.10.9', release_date: "2022-10-13", },
{version: '3.10.8', release_date: "2022-09-25", },
{version: '3.10.7', release_date: "2022-08-02", },
{version: '3.10.6', release_date: "2022-07-11", },
{version: '3.10.5', release_date: "2022-06-06", },
{version: '3.10.4', release_date: "2022-06-01", },
{version: '3.10.2', release_date: "2022-05-20", },
{version: '3.10.1', release_date: "2022-05-11", },
{version: '3.10.0', release_date: "2022-05-03", },
],
end_of_support: "2023-12-31",
},
},
// Client releases.
java: '5.21.0',
dotnet: '6.6.0',
},
},
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: './sidebarsDocs.js',
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/rabbitmq/rabbitmq-website/tree/main/',
},
blog: {
blogSidebarCount: 0,
showReadingTime: true,
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/rabbitmq/rabbitmq-website/tree/main/',
},
theme: {
customCss: './src/css/custom.css',
}
}),
],
],
plugins: [
[
'@docusaurus/plugin-content-docs',
{
id: 'tutorials',
path: 'tutorials',
routeBasePath: 'tutorials',
sidebarPath: './sidebarsTutorials.js',
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'release-information',
path: 'release-information',
routeBasePath: 'release-information',
sidebarPath: './sidebarsReleaseInfo.js',
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'kubernetes',
path: 'kubernetes',
routeBasePath: 'kubernetes',
sidebarPath: './sidebarsKubernetes.js',
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'client-libraries',
path: 'client-libraries',
routeBasePath: 'client-libraries',
sidebarPath: './sidebarsClientLibs.js',
},
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
colorMode: {
respectPrefersColorScheme: true
},
// Replace with your project's social card
image: 'img/rabbitmq-social-media-card.svg',
navbar: {
// We do not define a title here because we only want the logo to
// appear in the top-level area.
// title: 'RabbitMQ',
logo: {
alt: 'RabbitMQ',
src: 'img/rabbitmq-logo-with-name.svg',
},
items: [
{to: '/tutorials', label: 'Getting Started', position: 'left'},
{
type: 'docSidebar',
label: 'Docs',
sidebarId: 'docsSidebar',
position: 'left',
},
{to: '/blog', label: 'Blog', position: 'left'},
{
type: 'docsVersionDropdown',
position: 'right',
dropdownItemsBefore: [
{type: 'html', value: '<strong>Supported</strong>'},
],
dropdownItemsAfter: [
{href: 'https://v3-12.rabbitmq.com/documentation.html', label: '3.12'},
{to: '/release-information', label: 'Release Information'},
//{type: 'html', value: '<strong>Unsupported</strong>'},
],
},
{
label: 'Support',
to: '/contact',
},
{
label: 'GitHub',
href: 'https://github.com/rabbitmq/rabbitmq-website',
position: 'right',
},
],
},
announcementBar: {
id: 'new-release',
content: '<strong style="font-size: var(--ifm-h4-font-size);"><a href="https://github.com/rabbitmq/rabbitmq-server/releases/tag/v3.13.3">RabbitMQ 3.13.3 is released!</a></strong>',
backgroundColor: 'var(--ifm-color-primary-contrast-background)',
textColor: 'var(--ifm-font-color-base)',
isCloseable: true,
},
footer: {
style: 'dark',
links: [
{
title: 'Learn about RabbitMQ',
items: [
{
label: 'Getting Started',
to: '/tutorials',
},
{
label: 'Documentation',
to: '/docs',
},
{
label: 'Blog',
to: '/blog',
},
],
},
{
title: 'Reach out to the RabbitMQ team',
items: [
{
label: 'GitHub',
href: 'https://github.com/rabbitmq',
},
{
label: 'Mailing list',
href: 'https://groups.google.com/forum/#!forum/rabbitmq-users',
},
{
label: 'Discord',
href: 'https://www.rabbitmq.com/discord/',
},
{
label: 'Slack',
href: 'https://www.rabbitmq.com/slack/',
},
{
label: 'Contact us',
to: '/contact',
},
],
},
{
title: 'Broadcom',
items: [
{
label: 'VMware Tanzu',
href: 'https://tanzu.vmware.com/',
},
{
label: 'Terms of Use',
href: 'https://www.vmware.com/help/legal.html',
},
{
label: 'Privacy',
href: 'https://www.vmware.com/help/privacy.html',
},
{
label: 'Trademark Guidelines',
to: '/trademark-guidelines',
},
{
label: 'Your California Privacy Rights',
href: 'https://www.vmware.com/help/privacy/california-privacy-rights.html',
},
{
html: '<a class="footer__link-item ot-sdk-show-settings">Cookie Settings</a>',
},
],
},
],
copyright: `Copyright © 2005-${new Date().getFullYear()} Broadcom. All Rights Reserved. The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
additionalLanguages: [
'bash',
'batch',
'csharp',
'elixir',
'erlang',
'go',
'java',
'json',
'php',
'PowerShell',
'python',
'shell-session',
'yaml',
],
},
algolia: {
// The application ID provided by Algolia
appId: 'H10VQIW16Y',
// Public API key: it is safe to commit it
apiKey: 'f23e8af89d899070974a643428531141',
indexName: 'rabbitmq.com',
// Optional: see doc section below
contextualSearch: true,
// Optional: Algolia search parameters
searchParameters: {},
// Optional: path for search page that enabled by default (`false` to
// disable it)
searchPagePath: 'search',
},
}),
headTags: [
{
tagName: 'link',
attributes: {
rel: 'stylesheet',
href: 'https://fonts.googleapis.com/css?family=Raleway:400,700',
},
},
{
tagName: 'script',
attributes: {
src: 'https://cdn.cookielaw.org/scripttemplates/otSDKStub.js',
'data-domain-script': "018ee308-473e-754f-b0c2-cbe82d25512f",
},
},
{
tagName: 'script',
attributes: {},
innerHTML: "function OptanonWrapper() {}",
},
{
tagName: 'script',
attributes: {},
innerHTML: "function setGTM(w, d, s, l, i) { w[l] = w[l] || []; w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' }); var f = d.getElementsByTagName(s)[0], j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f); } if (document.cookie.indexOf('OptanonConsent') > -1 && document.cookie.indexOf('groups=') > -1) { setGTM(window, document, 'script', 'dataLayer', 'GTM-TT84L8K'); } else { waitForOnetrustActiveGroups(); } var timer; function waitForOnetrustActiveGroups() { if (document.cookie.indexOf('OptanonConsent') > -1 && document.cookie.indexOf('groups=') > -1) { clearTimeout(timer); setGTM(window, document, 'script', 'dataLayer', 'GTM-TT84L8K'); } else { timer = setTimeout(waitForOnetrustActiveGroups, 250); } }",
},
],
markdown: {
mermaid: true,
},
themes: ['@docusaurus/theme-mermaid'],
};
export default config;