forked from apache/kvrocks-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
191 lines (184 loc) · 6.69 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
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Apache Kvrocks',
tagline: 'A distributed key value NoSQL database that uses RocksDB as storage engine and is compatible with Redis protocol',
url: 'https://kvrocks.apache.org',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'throw',
favicon: 'img/favicon.ico',
plugins: [
[
'@docusaurus/plugin-content-docs',
{
id: 'community',
path: 'community',
routeBasePath: 'community',
sidebarPath: require.resolve('./sidebarsCommunity.js'),
editUrl: 'https://github.com/apache/incubator-kvrocks-website/tree/main/',
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'download',
path: 'download',
routeBasePath: 'download',
editUrl: 'https://github.com/apache/incubator-kvrocks-website/tree/main/',
},
],
[require.resolve("docusaurus-plugin-image-zoom"), {}],
],
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
path: 'docs',
routeBasePath: "/docs",
showLastUpdateAuthor: true,
showLastUpdateTime: true,
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/apache/incubator-kvrocks-website/tree/main/',
},
blog: {
showReadingTime: true,
editUrl: 'https://github.com/apache/incubator-kvrocks-website/tree/main/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
colorMode: {
defaultMode: 'light',
disableSwitch: true,
},
navbar: {
title: 'Apache Kvrocks',
logo: {
alt: 'apache-kvrocks',
src: 'img/logo.svg',
},
items: [
{type: 'doc', docId: 'getting-started', position: 'right', label: 'Docs'},
{to: '/download', label: 'Download', position: 'right'},
{type: 'doc', docId: 'community', position: 'right', label: 'Community', docsPluginId: 'community'},
{to: '/blog', label: 'Blog', position: 'right'},
{to: '/users', label: 'Users', position: 'right'},
{
href: 'https://github.com/apache/incubator-kvrocks',
position: 'right',
className: 'header-github-link',
'aria-label': 'GitHub repository',
},
{type: 'search', position: 'right'},
{
type: 'dropdown',
label: 'ASF',
position: 'right',
items: [
{label: 'Foundation', to: 'https://www.apache.org/'},
{label: 'License', to: 'https://www.apache.org/licenses/'},
{label: 'Events', to: 'https://www.apache.org/events/current-event'},
{label: 'Security', to: 'https://www.apache.org/security/'},
{label: 'Sponsorship', to: 'https://www.apache.org/foundation/sponsorship.html'},
{label: 'Privacy', to: 'https://privacy.apache.org/policies/privacy-policy-public.html'},
{label: 'Thanks', to: 'https://www.apache.org/foundation/thanks.html'}
],
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Getting started',
to: '/docs/getting-started',
},
{
label: 'Supported commands',
to: '/docs/supported-commands',
},
],
},
{
title: 'Community',
items: [
{
label: 'Slack',
href: 'https://join.slack.com/t/kvrockscommunity/shared_invite/zt-p5928e3r-OUAK8SUgC8GOceGM6dAz6w',
},
{
label: 'Issue Tracker',
href: 'https://github.com/apache/incubator-kvrocks/issues',
},
],
},
{
title: 'More',
items: [
{
label: 'Source Repo',
href: 'https://github.com/apache/incubator-kvrocks',
},
{
label: 'Website Source Repo',
href: 'https://github.com/apache/incubator-kvrocks-website',
},
],
},
],
logo: {
alt: 'Apache Incubator logo',
src: 'img/apache-incubator.svg',
href: 'https://incubator.apache.org/'
},
copyright: `<div style="text-align: left;">
<div>
<p style="font-family: Avenir-Medium,serif;font-size: 14px;color: #999;line-height: 20px;"> Apache Kvrocks is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF. </p>
</div>
<div style="border-top: 1px solid #ccc;min-height: 60px;line-height: 20px;text-align: center;font-family: Avenir-Medium,serif;font-size: 14px;color: #999;display: flex;align-items: center;"><span>Copyright © ${new Date().getFullYear()} The Apache Software Foundation. Apache Kvrocks, Kvrocks, and its feather logo are trademarks of The Apache Software Foundation.</span></div>
</div>`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
additionalLanguages: ['properties'],
},
zoom: {
selector: '.markdown :not(em) > img',
config: {
// options you can specify via https://github.com/francoischalifour/medium-zoom#usage
background: {
light: 'rgb(255, 255, 255)',
dark: 'rgb(50, 50, 50)'
}
}
},
}),
themes: [
[
require.resolve("@easyops-cn/docusaurus-search-local"),
{
hashed: true,
indexDocs: true,
indexPages: true,
language: ["en"],
}
],
]
};
module.exports = config;