-
Notifications
You must be signed in to change notification settings - Fork 17
/
docusaurus.config.ts
287 lines (281 loc) · 8.58 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
284
285
286
287
import type * as Preset from "@docusaurus/preset-classic";
import type { Config } from "@docusaurus/types";
import { themes as prismThemes } from "prism-react-renderer";
const config: Config = {
title: "Apache Cloudberry (Incubating)",
tagline: "One advanced and mature open-source MPP (Massively Parallel Processing) database. Open source alternative to Greenplum Database.",
favicon: "/img/favicon.ico",
url: "https://cloudberry.apache.org",
baseUrl: "/",
organizationName: "apache", // Usually your GitHub org/user name.
projectName: "cloudberry-site", // Usually your repo name.
// onBrokenLinks: "throw",
onBrokenLinks: "ignore",
onBrokenMarkdownLinks: "warn",
plugins: [
"docusaurus-plugin-sass",
'docusaurus-plugin-matomo',
[
"@easyops-cn/docusaurus-search-local",
{ hashed: true, indexPages: true, language: ["en", "zh"] },
],
],
// 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", "zh"],
},
presets: [
[
"classic",
{
pages: {
admonitions: true,
},
docs: {
sidebarPath: "./sidebars.ts",
editUrl:
"https://github.com/apache/cloudberry-site/edit/main/",
editLocalizedFiles: true,
showLastUpdateAuthor: true,
showLastUpdateTime: true,
breadcrumbs: true,
},
blog: {
postsPerPage: "ALL",
path: "blog", // Path to the existing blog folder
routeBasePath: "blog", // Route for the existing blog
include: ["*.md", "*.mdx"], // File types to include for the existing blog
feedOptions: {
type: "all",
title:
"Apache Cloudberry (Incubating) is one advanced and mature open-source MPP (Massively Parallel Processing) databases available.",
},
},
theme: {
customCss: [
"./src/css/custom.scss",
"./src/css/design-style.scss",
"./src/css/design-class.scss",
],
},
} satisfies Preset.Options,
],
],
themeConfig: {
title: "Apache Cloudberry (Incubating)",
tagline: "one advanced and mature open-source MPP (Massively Parallel Processing) databases available.",
favicon: "/img/favicon.ico",
url: "https://cloudberry.apache.org",
baseUrl: "/",
organizationName: "apache", // Usually your GitHub org/user name.
projectName: "cloudberry-site", // Usually your repo name.
colorMode: {
defaultMode: "dark",
disableSwitch: false,
respectPrefersColorScheme: true,
},
navbar: {
logo: {
href: "/",
alt: "Apache Cloudberry (Incubating)",
src: "/img/apache_cloudberry_color_black.svg",
srcDark: "/img/apache_cloudberry_color_white.svg",
},
items: [
{
type: "docSidebar",
sidebarId: "docsbars",
position: "right",
label: "Docs",
},
{
label: "Community",
position: "right",
to: "/community",
},
{
label: "Contribute",
position: "right",
to: "/contribute",
},
{ to: "/blog", label: "Blog", position: "right" },
{
to: "/docs/releases",
label: "Download",
position: "right",
},
{
to: "/support",
label: "Support",
position: "right",
},
{
label: "Resources",
position: "right",
items: [
{
label: "Roadmap",
to: "https://github.com/apache/cloudberry/discussions/369",
},
{
label: "Forum",
to: "https://github.com/apache/cloudberry/discussions",
},
{
label: "Bootcamp",
to: "/bootcamp",
},
{
label: "Team",
to: "/team",
},
],
},
{
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.html'
},
{
label: 'Privacy',
to: 'https://privacy.apache.org/policies/privacy-policy-public.html'
},
{
label: 'Security',
to: 'https://www.apache.org/security/'
},
{
label: 'Sponsorship',
to: 'https://www.apache.org/foundation/sponsorship.html'
},
{
label: 'Thanks',
to: 'https://www.apache.org/foundation/thanks.html'
},
{
label: 'Code of Conduct',
to: 'https://www.apache.org/foundation/policies/conduct'
},
]
},
],
},
footer: {
logo: {
src: "/img/apache-incubator.svg",
srcDark: "/img/apache-incubator.svg",
href: "https://incubator.apache.org/",
alt: "Apache Incubator logo",
},
copyright: `
<p>
Apache Cloudberry 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>
<p>
Copyright © ${new Date().getFullYear()} The Apache Software Foundation, Licensed under the Apache License, Version 2.0.</p>
<p>
Apache®, the names of Apache projects, and the feather logo are either registered trademarks or trademarks of the Apache Software Foundation in the United States and/or other countries.
</p>
`,
links: [
{
title: "Support",
items: [
{
label: "GitHub Issues",
href: "https://github.com/apache/cloudberry/issues",
},
{
label: "GitHub Discussions",
href: "https://github.com/apache/cloudberry/discussions",
},
{
label: "Slack",
href: "https://inviter.co/apache-cloudberry",
},
{
label: "Twitter",
href: "https://x.com/ASFCloudberry",
},
{
label: "Youtube",
href: "https://youtube.com/@ApacheCloudberry",
},
{
label: "Security",
to: "/community/security",
},
],
},
{
title: "Resources",
items: [
{
label: "Download",
href: "https://github.com/apache/cloudberry/releases",
},
{
label: "Documentation",
to: "/docs/",
},
{
label: "Events",
to: "/community/events",
},
{
label: "Brand Guidelines",
href: "/community/brand",
},
],
},
{
title: "Contribution",
items: [
{
label: "Working with Git & GitHub",
to: "contribute/git",
},
{
label: "Contribution Overview",
to: "/contribute/how-to-contribute",
},
{
label: "Code Contribution",
to: "contribute/code",
},
{
label: "Doc Contribution",
to: "contribute/doc",
},
],
},
],
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
// Change website analytics from Google Analytics to Matomo
matomo: {
matomoUrl: 'https://analytics.apache.org/',
siteId: '66',
phpLoader: 'matomo.php',
jsLoader: 'matomo.js',
},
} satisfies Preset.ThemeConfig,
};
export default config;