-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocusaurus.config.js
180 lines (173 loc) · 5.26 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
// @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: 'Keptn Docs',
tagline: 'Keptn | Cloud-native application life-cycle orchestration',
url: 'https://keptn.sh/docs',
baseUrl: '/',
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.png',
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'keptn-sandbox', // Usually your GitHub org/user name.
projectName: 'new-keptn-docs-engine', // Usually your repo name.
// Even if you don't use internalization, 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: '/',
sidebarPath: require.resolve('./sidebars.js'),
editUrl:
'https://github.com/keptn-sandbox/new-keptn-docs-engine/edit/main/',
},
blog: false,
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
announcementBar: {
id: 'keptn_0.17.0',
content:
'Keptn 0.17.0 is available! Find all <a target="_blank" rel="noopener noreferrer" href="https://keptn.sh/docsnews/release_announcements/keptn-0170/">details on this release here.</a>',
backgroundColor: '#006bba',
textColor: '#ffffff',
isCloseable: true,
},
navbar: {
logo: {
alt: 'Kepnt Docs Logo',
src: 'img/keptn-logo.svg',
},
items: [
{
type: 'docsVersionDropdown',
position: 'left',
},
{
to: '/docs-go-utils/introduction',
label: 'Keptn go-utils',
position: 'left',
activeBaseRegex: `/docs-go-utils/`,
},
{
to: '/docs-gh-automation/introduction',
label: 'Keptn GH Actions DevOps Collection',
position: 'left',
activeBaseRegex: `/docs-gh-automation/`,
},
{
href: 'https://github.com/keptn',
label: 'GitHub',
position: 'right',
},
{
href: 'https://slack.keptn.sh/',
label: 'Slack',
position: 'right',
},
],
},
footer: {
logo: {
alt: 'Kepnt Docs Logo',
src: 'img/keptn-logo.svg',
href: 'https://keptn.sh/',
},
style: 'light',
links: [
{
title: 'Sitemap',
items: [
{
label: 'Why Keptn?',
to: 'https://keptn.sh/why-keptn/',
},
{
label: 'Docs',
to: 'https://keptn.sh/docs',
},
],
},
{
title: 'Resources',
items: [
{
label: 'Releases',
to: 'https://github.com/keptn/keptn/releases/',
},
{
label: 'Issues',
to: 'https://github.com/keptn/keptn/issues',
},
],
},
],
copyright: `
© 2022 The Keptn Authors | Documentation Distributed under CC-BY-4.0© 2022 The Linux Foundation. All rights reserved. The Linux Foundation has registered trademarks and uses trademarks. For a list of trademarks of The Linux Foundation, please see our <a href="https://keptn.sh/docs">Trademark Usage</a>`,
},
image:
'https://raw.githubusercontent.com/keptn/community/main/branding/logos/keptn-transparent.png',
metadata: [
{ name: 'twitter:card', content: 'summary_large_image' },
{
name: 'twitter:image',
content:
'https://raw.githubusercontent.com/keptn/community/main/branding/logos/keptn-transparent.png',
},
{ name: 'twitter:title', content: 'Keptn Docs' },
{
name: 'twitter:description',
content: 'Welcome to Keptn Docs',
},
],
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
plugins: [
[
'@docusaurus/plugin-content-docs',
{
id: 'docs-go-utils',
path: 'docs-go-utils',
routeBasePath: 'docs-go-utils',
sidebarPath: require.resolve('./sidebars.js'),
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'docs-gh-automation',
path: 'docs-gh-automation',
routeBasePath: 'docs-gh-automation',
sidebarPath: require.resolve('./sidebars.js'),
},
],
[
require.resolve('docusaurus-lunr-search'),
{
excludeRoutes: ['0.15.x/**/*', '0.16.x/**/*', 'next/**/*'],
},
],
],
};
module.exports = config;