-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
executable file
·303 lines (286 loc) · 11.5 KB
/
Copy pathdocusaurus.config.js
File metadata and controls
executable file
·303 lines (286 loc) · 11.5 KB
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
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
// @ts-check
// `@type` JSDoc annotations allow editor autocompletion and type checking
// (when paired with `@ts-check`).
// There are various equivalent ways to declare your Docusaurus config.
// See: https://docusaurus.io/docs/api/docusaurus-config
import {themes as prismThemes} from 'prism-react-renderer';
const redirectsConfig = require('./docusaurus-redirects.json');
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Devtron Docs',
tagline: 'Accelerate Kubernetes adoption and experience smooth deployment with Devtron',
favicon: 'https://devtron-public-asset.s3.us-east-2.amazonaws.com/cms-assets/img/devtron-favicon.png',
// Future flags, see https://docusaurus.io/docs/api/docusaurus-config#future
future: {
v4: true, // Improve compatibility with the upcoming Docusaurus v4
},
// Set the production url of your site here
url: 'https://docs.devtron.ai',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',
trailingSlash: false,
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'devtron-labs', // Usually your GitHub org/user name.
projectName: 'devtron-documentation', // Usually your repo name.
onBrokenLinks: 'throw',
// onBrokenMarkdownLinks: 'warn',
markdown: {
hooks: {
onBrokenMarkdownLinks: 'warn',
},
},
// 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'],
},
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
routeBasePath: 'docs',
sidebarPath: './sidebars.js',
includeCurrentVersion: true,
lastVersion: 'current',
versions: {
current: {
label: '2.0 🆕',
path: '',
},
'1.8': {
label: '1.8',
path: 'devtron/v1.8',
},
'1.7': {
label: '1.7',
path: 'devtron/v1.7',
},
},
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
// editUrl:
// 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
},
blog: {
showReadingTime: true,
feedOptions: {
type: ['rss', 'atom'],
xslt: true,
},
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
// Useful options to enforce blogging best practices
onInlineTags: 'warn',
onInlineAuthors: 'warn',
onUntruncatedBlogPosts: 'warn',
},
theme: {
customCss: './src/css/custom.css',
},
}),
],
],
plugins: [
// Analytics plugins are loaded only in production. In development the
// Google Analytics / Clarity scripts are typically blocked (ad-blockers,
// no network), which leaves window.gtag undefined and throws a runtime
// error ("window.gtag is not a function") on every page.
...(process.env.NODE_ENV === 'production'
? [
[
require.resolve('@docusaurus/plugin-google-gtag'),
{
trackingID: 'G-RJY45WF21G',
anonymizeIP: true,
},
],
[
require.resolve('@gracefullight/docusaurus-plugin-microsoft-clarity'),
{
projectId: 's4gie6k444',
},
],
]
: []),
[
require.resolve('@easyops-cn/docusaurus-search-local'),
{
indexDocs: true,
indexPages: true,
language: ['en'],
hashed: true,
docsRouteBasePath: '/docs', // or '/' if you're using docs-only mode
},
],
...redirectsConfig.plugins,
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
// Replace with your project's social card
image: 'https://devtron-public-asset.s3.us-east-2.amazonaws.com/cms-assets/img/devtron-social-card.jpg',
// announcementBar: {
// id: 'support_us',
// content:
// 'Try Devtron Enterprise! <a target="_blank" href="https://license.devtron.ai/dashboard">Start Free Trial</a>',
// backgroundColor: '#D2EEE5',
// textColor: '#091E42',
// isCloseable: false,
// },
navbar: {
title: '',
logo: {
alt: 'Devtron Logo',
src: 'https://devtron-public-asset.s3.us-east-2.amazonaws.com/cms-assets/img/hlogos/devtron-logo-horizontal-dual.svg',
srcDark: 'https://devtron-public-asset.s3.us-east-2.amazonaws.com/cms-assets/img/hlogos/devtron-logo-horizontal-white.svg',
},
items: [
{
type: 'docsVersionDropdown',
position: 'right',
// dropdownItemsBefore: [],
// dropdownItemsAfter: [{ to: '/versions', label: 'All versions' }],
},
{ label: 'Docs', className: 'navbar-docs-link', type: 'docSidebar', sidebarId: 'tutorialSidebar', position: 'left' },
// { label: 'GitHub Repo', href: 'https://github.com/devtron-labs/devtron', position: 'right' },
// { label: 'Join Discord', href: 'https://discord.gg/devtron', position: 'right' },
{ type: 'search', position: 'right' },
{ label: 'Website', href: 'https://devtron.ai', position: 'left' },
{ label: 'Sandbox', href: 'https://preview.devtron.ai/', position: 'left' },
{
href: 'https://license.devtron.ai/dashboard',
label: 'Get Devtron Freemium',
position: 'right',
className: 'shimmer-button-freemium',
},
{
href: 'https://devtron.ai/contact-sales',
label: 'Get Devtron Enterprise',
position: 'right',
className: 'shimmer-button-enterprise',
},
// {to: '/blog', label: 'Blog', position: 'left'},
// {
// href: 'https://github.com/facebook/docusaurus',
// label: 'GitHub',
// position: 'right',
// },
],
},
colorMode: {
defaultMode: 'light', // or 'dark'
disableSwitch: false, // set true to hide the toggle
// respectPrefersColorScheme: true, // use system preference
},
footer: {
style: 'light', // switch from 'dark' to 'light'
// logo: {
// alt: 'Devtron Logo',
// src: 'img/hlogos/devtron-logo-horizontal-black.svg',
// href: '/', // optional: go to homepage
// width: 160, // adjust as needed
// },
links: [
{
html: `
<div style="text-align: center;">
<div style="margin-bottom: 1rem;">
<a href="/" style="display: inline-block;">
<img src="https://devtron-public-asset.s3.us-east-2.amazonaws.com/cms-assets/img/hlogos/devtron-logo-horizontal-black.svg" alt="Devtron Logo" width="160" class="footer-logo light-mode-only" />
<img src="https://devtron-public-asset.s3.us-east-2.amazonaws.com/cms-assets/img/hlogos/devtron-logo-horizontal-white.svg" alt="Devtron Logo" width="160" class="footer-logo dark-mode-only" />
</a>
</div>
<p class="footer-desc" style="margin: 1rem 0; font-size: 0.95rem;">
Unlock the full value of K8s, and bridge the gap between development and operations team.
</p>
<div style="margin-bottom: 1rem;">
<a href="https://discord.gg/jsRG5qx2gp" target="_blank" style="margin: 0 8px;">
<img class="footer-icon" src="https://devtron-public-asset.s3.us-east-2.amazonaws.com/cms-assets/img/socials/discord.svg" alt="Join Discord" height="24"/>
</a>
<a href="https://github.com/devtron-labs/devtron" target="_blank" style="margin: 0 8px;">
<img class="footer-icon" src="https://devtron-public-asset.s3.us-east-2.amazonaws.com/cms-assets/img/socials/github.svg" alt="GitHub" height="24"/>
</a>
<a href="https://linkedin.com/company/devtron-labs" target="_blank" style="margin: 0 8px;">
<img class="footer-icon" src="https://devtron-public-asset.s3.us-east-2.amazonaws.com/cms-assets/img/socials/linkedin.svg" alt="LinkedIn" height="24"/>
</a>
<a href="https://x.com/DevtronL" target="_blank" style="margin: 0 8px;">
<img class="footer-icon" src="https://devtron-public-asset.s3.us-east-2.amazonaws.com/cms-assets/img/socials/x.svg" alt="X" height="24"/>
</a>
<a href="https://devtron.ai/blog/" target="_blank" style="margin: 0 8px;">
<img class="footer-icon" src="https://devtron-public-asset.s3.us-east-2.amazonaws.com/cms-assets/img/socials/blog.svg" alt="Devtron Blogs" height="24"/>
</a>
</div>
<div style="margin-bottom: 1rem;">
<a href="https://devtron.ai/privacy-policy" target="_blank" style="margin: 0 12px;">Privacy</a>
<a href="https://devtron.ai/terms-of-use" target="_blank" style="margin: 0 12px;">Terms</a>
<a href="https://devtron.ai/about" target="_blank" style="margin: 0 12px;">About Us</a>
</div>
<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=4c5f80c3-9137-4a53-8420-b2326c0b02aa" alt="" />
</div>
`,
},
],
copyright: `Copyright © ${new Date().getFullYear()} Devtron Inc.`,
},
// footer: {
// style: 'dark',
// links: [
// {
// title: 'Docs',
// items: [
// {
// label: 'Tutorial',
// to: '/docs/intro',
// },
// ],
// },
// {
// title: 'Community',
// items: [
// {
// label: 'Join Discord Channel',
// href: 'https://discord.gg/jsRG5qx2gp',
// },
// {
// label: 'X',
// href: 'https://x.com/DevtronL',
// },
// ],
// },
// {
// title: 'More',
// items: [
// {
// label: 'Blog',
// href: 'https://devtron.ai/blog/',
// },
// {
// label: 'GitHub',
// href: 'https://github.com/devtron-labs/devtron',
// },
// ],
// },
// ],
// copyright: `Copyright © ${new Date().getFullYear()} Devtron Inc.`,
// },
prism: {
theme: prismThemes.dracula, // prismThemes.github for light mode
darkTheme: prismThemes.dracula,
},
}),
scripts: [
{
src: '/js/reo.js',
},
],
};
export default config;