-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocusaurus.config.ts
131 lines (124 loc) · 4.93 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
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
import { themes as prismThemes } from 'prism-react-renderer';
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Apache Curator',
tagline: 'A Java/JVM client library for Apache ZooKeeper',
url: 'https://curator.apache.org',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'throw',
favicon: 'img/favicon.ico',
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
path: 'docs',
routeBasePath: "/docs",
showLastUpdateAuthor: true,
showLastUpdateTime: true,
sidebarPath: './sidebars.js',
editUrl: 'https://github.com/apache/curator-site/tree/main/',
},
// FIXME - uncomment once we write the first blog
// blog: {
// showReadingTime: true,
// editUrl: 'https://github.com/apache/curator-site/tree/main/',
// },
theme: {
customCss: './src/css/custom.css',
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
image: 'img/curator-highres.png',
colorMode: {
defaultMode: 'light',
disableSwitch: true
},
navbar: {
logo: {
alt: 'Apache Curator',
src: 'img/curator-logo.svg',
},
items: [
{ type: 'doc', docId: 'about', position: 'right', label: 'Documentation' },
{ type: 'doc', docId: 'community', position: 'right', label: 'Community', docsPluginId: 'community' },
{ to: '/download', label: 'Download', position: 'right' },
// FIXME - uncomment once we write the first blog
// {to: '/blog', label: 'Blog', position: 'right'},
{
href: 'https://github.com/apache/curator',
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.html' },
{ 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',
logo: {
height: '128px',
alt: 'Apache logo',
src: 'img/asf-logo.svg',
href: 'https://www.apache.org/'
},
copyright: 'Apache Curator, the Apache feather logo, and the Apache Curator project logos are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.',
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
additionalLanguages: [
'groovy',
'java',
'properties',
],
},
}),
plugins: [
[
'@docusaurus/plugin-content-docs',
{
id: 'community',
path: 'community',
routeBasePath: 'community',
sidebarPath: './sidebarsCommunity.js',
editUrl: 'https://github.com/apache/curator-site/tree/main/',
},
],
[require.resolve("docusaurus-plugin-image-zoom"), {}],
],
themes: [
[
require.resolve("@easyops-cn/docusaurus-search-local"),
{
hashed: true,
indexDocs: true,
indexPages: true,
language: ["en"],
}
],
]
};
export default config;