forked from redis-developer/redis-developer.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocusaurus.config.js
155 lines (151 loc) · 4.22 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
const path = require('path')
module.exports = {
title: 'Redis Developer Hub',
tagline: 'The Home of Redis Developers',
url: 'https://developer.redislabs.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.
themeConfig: {
// ...
googleTagManager: {
trackingID: 'GTM-W8Z6BLQ',
},
navbar: {
style: 'dark',
title: null,
logo: {
alt: 'Redis Developer Hub logo',
src: 'img/logo-1.png',
},
hideOnScroll: false,
items: [
{
to: '/create/rediscloud',
activeBasePath: 'docs',
label: 'Get started',
position: 'right',
},
/*
{
href: '#',
label: 'Resources',
position: 'right',
},
*/
{
href: 'https://redislabs.com/try-free/',
label: 'Try Free',
position: 'right',
},
],
},
footer: {
style: 'dark',
logo: {
alt: 'Redis Labs logo',
src: 'img/redis-labs-logo-reversed.svg',
href: 'https://redislabs.com/',
},
links: [
{
title: 'Get Started',
items: [
{
label: 'Create Database',
to: '/create/rediscloud',
},
{
label: 'Develop',
to: '/develop/',
},
{
label: 'Explore your data',
to: '/explore/redisinsight/',
},
{
label: 'Best Practices',
href: 'https://redislabs.com/redis-best-practices/introduction/',
},
// {
// label: 'Tutorials',
// to: '#',
// },
// {
// label: 'Samples & Demos',
// to: '#',
// },
{
label: 'Build with Redis Modules',
href: '/howtos/redisearch/',
},
],
},
{
title: 'Resources',
items: [
{
label: 'Community',
href: 'https://redislabs.com/community/',
},
{
label: 'Redis University',
href: 'https://university.redislabs.com',
},
{
label: 'Command Reference',
href: 'https://redis.io/commands',
},
{
label: 'How-tos & tutorials',
to: '/howtos/moviesdatabase/getting-started',
},
// label: 'Use Cases',
// href: 'https://redislabs.com/solutions',
// },
],
},
],
copyright: `Copyright: © ${new Date().getFullYear()} Redis Labs. Redis and the cube logo are registered trademarks of Redis Labs Ltd.`,
},
colorMode: {
// Hides the switch in the navbar
// Useful if you want to support a single color mode
disableSwitch: false,
},
announcementBar: {
id: 'redisconf20201cfp', // Any value that will identify this message.
content: '<p class="text">Watch all RedisConf sessions on Demand </p> <a href="https://redislabs.com/redisconf/" target="_blank" rel="noopener" class="btn">Register now!</a>',
// content: '<p class="text"></p> <a href="https://redislabs.com/redisconf/" target="_blank" rel="noopener" class="btn"></a>',
backgroundColor: '#fff', // Defaults to `#fff`.
textColor: '#000', // Defaults to `#000`.
isCloseable: true, // Defaults to `true`.
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
routeBasePath: '/',
path: 'docs',
sidebarPath: require.resolve('./sidebars.js'),
editUrl:
'https://github.com/redis-developer/redis-developer/edit/master/',
},
blog: {
showReadingTime: true,
},
theme: {
customCss: require.resolve('./src/css/custom.scss'),
},
},
],
],
plugins: [
'docusaurus-plugin-sass', path.resolve(__dirname, 'plugins', 'gtm')
],
};