-
Notifications
You must be signed in to change notification settings - Fork 5
/
docusaurus.config.js
186 lines (176 loc) · 4.79 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
// @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: 'Datree docs',
tagline: 'Prevent Kubernetes misconfigurations',
url: 'https://hub.datree.io',
baseUrl: '/',
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.png',
organizationName: 'Datreeio', // Usually your GitHub org/user name.
projectName: 'Datree docs', // Usually your repo name.
plugins: [
[
'docusaurus-plugin-sass', {
},
],
[
require.resolve('docusaurus-gtm-plugin'),
{
id: 'GTM-K7BG7K2',
}
],
[
require.resolve("docusaurus-plugin-image-zoom"),{}
],
"./src/plugins/intercom.js",
],
presets: [
[
'@docusaurus/preset-classic',
{
sitemap: {
changefreq: 'weekly',
priority: 0.5,
},
docs: {
sidebarPath: require.resolve('./sidebars.js'),
breadcrumbs: true,
routeBasePath: '/',
editUrl:
'https://github.com/datreeio/docs/tree/main/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
logo: {
alt: 'Datree Logo',
src: 'img/datree-logo.png',
srcDark: 'img/logo-dark.png',
},
items: [
{
type: 'search',
position: 'right',
},
{
href: 'https://github.com/datreeio/datree',
position: 'right',
className: 'navbar-menu',
},
{
href: 'https://app.datree.io',
position: 'right',
label: 'Sign up | Login',
},
],
},
// footer
footer: {
logo: {
alt: 'Datree Logo',
src: 'img/logo-dark.png',
},
style: 'dark',
links: [
{
title: 'Community',
items: [
{
label: 'GitHub',
href: 'https://github.com/datreeio/datree',
},
{
label: 'Youtube',
href: 'https://www.youtube.com/results?search_query=datree+kubernetes',
},
{
label: 'Dev.to',
href: 'https://dev.to/search?q=datree',
},
{
label: 'Twitter',
href: 'https://twitter.com/datreeio',
},
{
label: 'Slack',
href: 'https://datreecommunity.slack.com/?redir=%2Fssb%2Fredirect',
},
],
},
{
title: 'Sitemap',
items: [
{
label: 'Getting started',
href: '/',
},
{
label: 'Built in rules',
href: '/built-in-rules',
},
{
label: 'Custom rules',
href: '/custom-rules',
},
{
label: 'Integrations',
href: '/integrations',
},
{
label: 'CI/CD examples',
href: '/cicd-examples',
},
{
label: "Data Privacy",
href: '/data-privacy',
},
{
label: 'Troubleshooting',
href: '/troubleshooting',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Datree.io`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
algolia: {
appId: 'VBCXPB7UFQ',
// Public API key: it is safe to commit it
apiKey: '6a129ce5a599323761caf4ac37846eac',
indexName: 'datree',
// Optional: see doc section below
contextualSearch: true,
// Optional: path for search page that enabled by default (`false` to disable it)
searchPagePath: 'search',
container: 'div',
},
zoom: {
// To disable zoom for a specific image, add the className "not-zoomable" to it
selector: '.markdown :not(em) > img:not(.not-zoomable)',
config: {
// options you can specify via https://github.com/francoischalifour/medium-zoom#usage
background: {
light: 'rgb(255, 255, 255)',
dark: 'rgb(50, 50, 50)'
}
}
},
}),
};
module.exports = config;