-
Notifications
You must be signed in to change notification settings - Fork 142
/
docusaurus.config.js
359 lines (357 loc) · 11.2 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
const path = require('path');
module.exports = {
clientModules: ['./redirect.js'],
title: 'The Home of Redis Developers',
tagline:
'Learn all the best practices to get up and running with Redis in no time. Get started and discover the power of Redis, whether on your local machines or in the cloud.',
url: 'https://developer.redis.com',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
organizationName: 'redis-developer', // Usually your GitHub org/user name.
projectName: 'redis-developer', // Usually your repo name.
// Even if you don't use internalization, 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: {
authors: {
simon: {
name: 'Simon Prickett',
link: 'https://simonprickett.dev',
title: 'Principal Developer Advocate at Redis',
image: 'profile_pic_simon_prickett.jpg',
},
suze: {
name: 'Suze Shardlow',
link: 'https://suze.dev',
title: 'Developer Community Manager at Redis',
image: 'profile_pic_suze_shardlow.jpg',
},
ajeet: {
name: 'Ajeet Raina',
link: 'https://twitter.com/ajeetsraina',
title: 'Former Developer Growth Manager at Redis',
image: 'profile_pic_ajeet_raina.jpg',
},
talon: {
name: 'Talon Miller',
link: 'https://www.linkedin.com/in/talon-miller-005054109/',
title: 'Technical Product Marketing Manager at Redis',
image: 'profile_pic_talon_miller.jpg',
},
alex: {
name: 'Alex Mikhalev',
link: 'https://www.linkedin.com/in/alexmikhalev',
title: 'AI/ML Architect at Nationwide Building Society',
image: 'profile_pic_alex_mikhalev.jpg',
},
will: {
name: 'Will Johnston',
link: 'https://twitter.com/wjohnsto',
title: 'Developer Growth Manager at Redis',
image: 'profile_pic_will_johnston.jpg',
},
prasan: {
name: 'Prasan Kumar',
link: 'https://www.linkedin.com/in/prasankumar93/',
title: 'Technical Solutions Developer at Redis',
image: 'profile_pic_prasan_kumar.jpg',
},
ryan: {
name: 'Ryan Gray',
link: 'https://www.linkedin.com/in/ryan-t-gray/',
title: 'Technical Consultant at Portainer.io',
image: 'profile_pic_ryan_gray.jpg',
},
rahul: {
name: 'Rahul Chauhan',
link: 'https://www.linkedin.com/in/rchauhan2/',
title: 'Corporate Solution Architect at Redis',
image: 'profile_pic_rahul_chauhan.jpg',
},
julian: {
name: 'Julian Mateu',
link: 'https://www.linkedin.com/in/julian-mateu',
title: 'Sr. Backend Software Engineer at Globality, Inc.',
image: 'profile_pic_julian_mateu.jpg',
},
andrew: {
name: 'Andrew Brookins',
link: 'https://andrewbrookins.com/',
title: 'Former Curriculum Software Engineer at Redis',
image: 'profile_pic_andrew_brookins.jpg',
},
manuel: {
name: 'Manuel Aguirre',
link: 'https://github.com/manuelaguirre',
title: 'Backend Engineer at Baseline Spain',
image: 'profile_pic_manuel_aguirre.jpg',
},
guyroyse: {
name: 'Guy Royse',
link: 'http://guy.dev',
title: 'Senior Developer Advocate at Redis',
image: 'profile_pic_guy_royse.jpg',
},
christian: {
name: 'Christian Mague',
link: 'https://www.linkedin.com/in/chris-mague-35b1624/',
title: 'Former Principal Field Engineer at Redis',
image: 'profile_pic_christian_mague.jpg',
},
karan: {
name: 'Karan Singh',
link: 'https://www.linkedin.com/in/karansingh7',
title: 'Senior Principal Architect & Developer Evangelist at Red Hat',
image: 'profile_pic_karan_singh.png',
},
sumit: {
name: 'Sumit Shatwara',
link: 'https://www.linkedin.com/in/sumitshatwara',
title: 'Solution Architect at Redis',
image: 'profile_pic_sumit_shatwara.jpeg',
},
matthew: {
name: 'Matthew Royal',
link: 'https://www.linkedin.com/in/royalmatthew/',
title: 'Consulting Engineer at Redis',
image: 'profile_pic_matthew_royal.jpg',
},
steve: {
name: 'Steve Lorello',
link: 'https://twitter.com/slorello',
title: 'Senior Field Engineer at Redis',
image: 'profile_pic_steve_lorello.jpg',
},
bsb: {
name: 'Brian Sam-Bodden',
link: 'https://twitter.com/bsbodden',
title: 'Developer Advocate at Redis',
image: 'profile_pic_brian_sam-bodden.jpeg',
},
justin: {
name: 'Justin Castilla',
link: 'http://www.justincastilla.com',
title: 'Senior Developer Advocate at Redis',
image: 'profile_pic_justin_castilla.jpg',
},
kurt: {
name: 'Kurt Moeller',
title: 'Technical Enablement Manager, US at Redis',
image: 'profile_pic_kurt_moeller.png',
},
elena: {
name: 'Elena Kolevska',
link: 'https://twitter.com/elena_kolevska',
title: 'Technical Enablement Manager, EMEA at Redis',
image: 'profile_pic_elena_kolevska.jpg',
},
jyotsna: {
name: 'Jyotsna Gupta',
title: 'Redis Insider',
image: 'profile_pic_jyotsna_gupta.jpeg',
},
moiz: {
name: 'Moiz Kapasi',
title: 'Redis Insider',
image: 'profile_pic_moiz_kapasi.jpeg',
},
michael: {
name: 'Michael Owolabi',
link: 'https://www.linkedin.com/in/imichaelowolabi/',
title: 'Redis Insider',
image: 'profile_pic_michael_owolabi.jpeg',
},
stevan: {
name: 'Stevan Thomas',
title: 'Redis Insider',
image: 'profile_pic_stevan_thomas.png',
},
sachin: {
name: 'Sachin Kottarathodi',
title: 'Staff Software Engineer at Walmart Global Tech India',
image: 'profile_pic_sachin_kottarathodi.jpg',
},
tug: {
name: 'Tugdual Grall',
title: 'Former Technical Marketing Manager at Redis',
image: 'profile_pic_tugdual_grall.png',
},
},
},
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
image: '/img/redis-hero-image.jpg',
// ...
googleTagManager: {
trackingID: 'GTM-W8Z6BLQ',
},
prism: {
additionalLanguages: [
'csharp',
'php',
'ruby',
'java',
'rust',
'elixir',
'groovy',
'sql',
'typescript',
],
},
navbar: {
style: 'dark',
title: null,
logo: {
alt: 'Redis Developer Hub logo',
src: 'img/logo-1.png',
},
hideOnScroll: true,
items: [
{
type: 'search',
position: 'right',
},
{
to: '/howtos/quick-start',
activeBasePath: 'docs',
label: 'Get started',
position: 'right',
},
{
href: 'https://launchpad.redis.com',
label: 'Redis Launchpad',
position: 'right',
},
{
href: 'https://redis.com/try-free/',
label: 'Try Free',
position: 'right',
},
],
},
footer: {
style: 'dark',
logo: {
alt: 'Redis logo',
src: 'img/redis_logo_red_white_rgb.svg',
href: 'https://redis.com/',
},
links: [
{
title: 'Get Started',
items: [
{
label: 'Develop',
to: '/develop/',
},
{
label: 'Best Practices',
href: 'https://redis.com/redis-best-practices/introduction/',
},
// {
// label: 'Tutorials',
// to: '#',
// },
// {
// label: 'Samples & Demos',
// to: '#',
// },
],
},
{
title: 'Resources',
items: [
{
label: 'Community',
href: 'https://redis.com/community/',
},
{
label: 'Redis University',
href: 'https://university.redis.com',
},
{
label: 'Redis Commands',
href: 'https://redis.io/commands',
},
{
label: 'Stack Overflow',
href: 'https://stackoverflow.com/search?q=redis',
},
// label: 'Use Cases',
// href: 'https://redis.com/solutions',
// },
],
},
],
copyright: `Copyright: © ${new Date().getFullYear()} Redis. All rights reserved. Redis and the cube logo are registered trademarks of Redis Ltd.`,
},
colorMode: {
// Hides the switch in the navbar
// Useful if you want to support a single color mode
disableSwitch: false,
},
announcementBar: {
id: 'redis-7-2-release', // Any value that will identify this message.
content:
'<div class="announcement-bar"><a href="https://redis.com/blog/introducing-redis-7-2/" target="_blank" rel="noopener"><span>Announcing Redis 7.2 and Enhanced Vector DB</span> <span style="margin-left:1rem">Learn more</span> <span style="margin-left:0.25rem">→</span></a></div>',
backgroundColor: 'rgb(210, 215, 254)', // Defaults to `#fff`.
textColor: 'rgb(22 31 49)', // Defaults to `#000`.
isCloseable: true, // Defaults to `true`.
},
}),
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
{
docs: {
routeBasePath: '/',
path: 'docs',
sidebarPath: require.resolve('./sidebars.js'),
showLastUpdateTime: true,
editUrl:
'https://github.com/redis-developer/redis-developer/edit/master/',
},
blog: {
showReadingTime: true,
},
theme: {
customCss: require.resolve('./src/css/custom.scss'),
},
pages: {
path: 'src/pages',
routeBasePath: '/',
include: ['**/*.{js,jsx,ts,tsx,md,mdx}'],
exclude: [
'**/_*.{js,jsx,ts,tsx,md,mdx}',
'**/_*/**',
'**/*.test.{js,jsx,ts,tsx}',
'**/__tests__/**',
],
mdxPageComponent: '@theme/MDXPage',
remarkPlugins: [],
rehypePlugins: [],
beforeDefaultRemarkPlugins: [],
beforeDefaultRehypePlugins: [],
},
sitemap: {
changefreq: 'weekly',
priority: 0.5,
ignorePatterns: ['/lp/**'],
filename: 'sitemap.xml',
},
},
],
],
plugins: [
'docusaurus-plugin-sass',
path.resolve(__dirname, 'plugins', 'gtm'),
],
};