-
Notifications
You must be signed in to change notification settings - Fork 14
/
docusaurus.config.ts
283 lines (279 loc) · 8.06 KB
/
docusaurus.config.ts
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
import {themes as prismThemes} from 'prism-react-renderer';
import type {Config} from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
import remarkMath from 'remark-math';
import rehypeKatex from 'rehype-katex';
const currentMonth = new Date().getMonth();
const isJune = currentMonth === 5;
const config: Config = {
title: 'Aiven docs',
tagline: 'Your trusted data & AI platform',
favicon: 'images/favicon.ico',
url: 'https://aiven.io/',
baseUrl: process.env.BASEURL || '/docs/',
organizationName: 'Aiven',
projectName: 'docs',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'throw',
onBrokenAnchors: 'warn',
trailingSlash: false,
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
markdown: {
mermaid: true,
},
headTags: [
{
tagName: 'meta',
attributes: {
name: 'zd-site-verification',
content: '1tsz6w2s2we597lbplg9ou',
},
},
],
themes: ['@docusaurus/theme-mermaid'],
presets: [
[
'classic',
{
docs: {
routeBasePath: process.env.ROUTEBASEPATH || '/',
sidebarPath: './sidebars.ts',
editUrl: 'https://github.com/aiven/aiven-docs/blob/main',
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex],
},
gtag: {
trackingID: 'G-M6D699CJR0',
anonymizeIP: true,
},
theme: {
customCss: [
'./src/css/fonts.css',
'./src/css/colors.css',
'./src/css/navbar.css',
'./src/css/admonitions.css',
'./src/css/custom.css',
],
},
} satisfies Preset.Options,
],
],
stylesheets: [
{
href: 'https://cdn.jsdelivr.net/npm/katex@0.13.24/dist/katex.min.css',
type: 'text/css',
integrity:
'sha384-odtC+0UGzzFL/6PNoE8rX/SPcQDXBJ+uRepguP4QkPCm2LBxH3FA3y+fKSiJ+AmM',
crossorigin: 'anonymous',
},
],
scripts: [
{src: '/docs/page_scripts/snowplow.js', async: true},
{
src: 'https://cdn.cookielaw.org/scripttemplates/otSDKStub.js',
'data-document-language': 'true',
type: 'text/javascript',
charset: 'UTF-8',
'data-domain-script': '0623fbc6-a463-4822-a7a4-fdb5afcc3afb',
},
{src: '/docs/page_scripts/onetrust.js', async: true},
],
plugins: ['./src/plugins/svg-fix/index.ts', 'docusaurus-plugin-image-zoom'],
themeConfig: {
image: 'images/site-preview.png',
navbar: {
title: 'aiven',
logo: {
alt: 'Aiven docs',
src: isJune ? 'images/logo-pride.svg' : 'images/logo.svg',
srcDark: isJune ? 'images/logoDark-pride.svg' : 'images/logoDark.svg',
},
items: [
{
type: 'docSidebar',
sidebarId: 'main',
position: 'left',
label: 'Docs',
},
{
label: 'API reference',
position: 'left',
href: 'https://api.aiven.io/doc/',
},
{
type: 'doc',
position: 'left',
docId: 'platform/howto/support',
label: 'Support',
},
{
label: 'Changelog',
href: 'https://aiven.io/changelog',
position: 'right',
},
{
href: 'https://github.com/aiven/aiven-docs',
label: 'GitHub',
position: 'right',
},
{
href: 'https://console.aiven.io/login',
label: 'Log in',
position: 'right',
className: 'navbar-button navbar-button-secondary',
},
{
href: 'https://console.aiven.io/signup',
label: 'Start for free',
position: 'right',
className: 'navbar-button navbar-button-primary',
},
],
},
docs: {
sidebar: {
autoCollapseCategories: true,
},
},
algolia: {
appId: 'TVLG5RQH07',
apiKey: '1beac99b8c1f460aca8bfa515a6dda6f',
indexName: 'aiven',
contextualSearch: true,
searchPagePath: 'search',
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Services',
href: '/docs/products/services',
},
{
label: 'Dev tools',
href: '/docs/tools',
},
{
label: 'Docs repository',
href: 'https://github.com/aiven/aiven-docs',
},
{
label: 'Changelog',
href: 'https://aiven.io/changelog',
},
],
},
{
title: 'Resources',
items: [
{
label: 'Support',
href: '/docs/platform/howto/support',
},
{
label: 'Community forum',
href: 'https://aiven.io/community/forum/',
},
{
label: 'Company website',
href: 'https://aiven.io/',
},
{
label: 'Blog',
href: 'https://aiven.io/blog',
},
{
label: 'Developer center',
href: 'https://aiven.io/developer',
},
{
label: 'Email the docs team',
href: 'mailto:docs@aiven.io',
},
],
},
{
title: 'Terms & Policies',
items: [
{
label: 'Terms of Service',
href: 'https://aiven.io/terms',
},
{
label: 'SLA',
href: 'https://aiven.io/sla',
},
{
label: 'Privacy Policy',
href: 'https://aiven.io/privacy',
},
],
},
{
title: "Let's connect",
items: [
{
label: 'Book a demo',
href: 'https://aiven.io/book-demo',
},
{
label: 'Contact us',
href: 'https://aiven.io/contact',
},
{
label: 'Careers',
href: 'https://aiven.io/careers',
},
{
label: 'Subscribe to newsletter',
href: 'https://aiven.io/newsletter',
},
{
label: 'Events calendar',
href: 'https://aiven.io/events',
},
],
},
],
copyright: `Apache, Apache Kafka, Kafka, Apache Flink, Flink, Apache Cassandra, and Cassandra are either registered trademarks or trademarks of the Apache Software Foundation in the United States and/or other countries. ClickHouse is a registered trademark of ClickHouse, Inc. https://clickhouse.com. M3, M3 Aggregator, OpenSearch, AlloyDB Omni, PostgreSQL, MySQL, InfluxDB, Grafana, Dragonfly, Valkey, Thanos, Terraform, and Kubernetes are trademarks and property of their respective owners. *Redis is a registered trademark of Redis Ltd. and the Redis box logo is a mark of Redis Ltd. Any rights therein are reserved to Redis Ltd. Any use by Aiven is for referential purposes only and does not indicate any sponsorship, endorsement or affiliation between Redis and Aiven. All product and service names used in this website are for identification purposes only and do not imply endorsement.`,
},
prism: {
theme: prismThemes.nightOwl,
darkTheme: prismThemes.dracula,
defaultLanguage: 'bash',
additionalLanguages: ['bash', 'json', 'php', 'hcl'],
},
mermaid: {
options: {
maxTextSize: 1000,
},
},
markdown: {
format: 'mdx',
mermaid: true,
mdx1Compat: {
comments: false,
admonitions: false,
headingIds: false,
},
},
zoom: {
selector: '.markdown > img',
background: {
light: 'rgb(255, 255, 255)',
dark: 'rgb(50, 50, 50)',
},
config: {
// options you can specify via https://github.com/francoischalifour/medium-zoom#usage
},
},
} satisfies Preset.ThemeConfig,
clientModules: [require.resolve('./static/page_scripts/tracking.ts')],
};
export default config;