-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathdocusaurus.config.js
225 lines (220 loc) · 6.07 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
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
// @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: 'Civo Documentation',
tagline: 'The Cloud Native Service Provider',
url: 'https://www.civo.com',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'throw',
favicon: 'docusaurus/img/favicon.ico',
trailingSlash: false,
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
path: 'content',
routeBasePath: '/',
sidebarPath: require.resolve('./sidebars.js'),
editUrl:
'https://github.com/civo/docs/tree/main/',
showLastUpdateTime: true,
},
blog: false,
googleTagManager: {
containerId: process.env.GTAG_MANAGER_ID || "undefined",
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
logo: {
alt: 'Civo Logo',
src: 'docusaurus/img/logo.svg',
href: 'https://www.civo.com/'
},
items: [
{
to: 'https://github.com/civo/docs',
position: 'right',
className: 'navbar-github-link',
},
],
},
footer: {
links: [
{
title: 'Company',
items: [
{
label: 'About',
to: 'https://www.civo.com/about',
},
{
label: 'Case studies',
to: 'https://www.civo.com/case-studies',
},
{
label: 'White papers',
to: 'https://www.civo.com/white-papers',
},
{
label: 'Legal',
to: 'https://www.civo.com/legal',
},
{
label: 'Newsroom',
to: 'https://www.civo.com/newsroom',
},
{
label: 'Brand assets',
to: 'https://www.civo.com/brand-assets',
},
{
label: 'Careers',
to: 'https://careers.civo.com/',
},
],
},
{
title: 'Products',
items: [
{
label: 'Kubernetes',
to: 'https://www.civo.com/kubernetes',
},
{
label: 'Compute',
to: 'https://www.civo.com/compute',
},
{
label: 'Pricing',
to: 'https://www.civo.com/pricing',
},
{
label: 'Load balancers',
to: 'https://www.civo.com/load-balancers',
},
],
},
{
title: 'Solutions',
items: [
{
label: 'Startup solutions',
to: 'https://www.civo.com/startups',
},
{
label: 'Small and mid-market',
to: 'https://www.civo.com/small-mid-market',
},
{
label: 'SaaS companies',
to: 'https://www.civo.com/saas',
},
{
label: 'CI/CD and testing',
to: 'https://www.civo.com/ci-testing',
},
{
label: 'Move to Kubernetes',
to: 'https://www.civo.com/move-to-kubernetes',
},
{
label: 'Consultancy',
to: 'https://www.civo.com/kubernetes-consultancy',
},
],
},
{
title: 'Community',
items: [
{
label: 'Docs',
to: 'https://www.civo.com/docs',
},
{
label: 'Tutorials',
to: 'https://www.civo.com/learn',
},
{
label: 'API',
to: 'https://www.civo.com/api',
},
{
label: 'Academy',
to: 'https://www.civo.com/academy',
},
{
label: 'Developers',
to: 'https://www.civo.com/developers',
},
{
label: 'Meetups',
to: 'https://www.civo.com/meetups',
},
{
label: 'Blog',
to: 'https://www.civo.com/blog',
},
{
label: 'Ambassadors',
to: 'https://www.civo.com/ambassadors',
},
{
label: 'KubeQuest',
to: 'https://www.civo.com/kubequest',
},
{
label: 'Write for us',
to: 'https://www.civo.com/write-for-us',
},
{
label: 'Developer demo program',
to: 'https://www.civo.com/demo-program',
},
],
},
{
title: 'Contact',
items: [
{
label: 'Support',
to: 'https://www.civo.com/contact',
},
{
label: 'Sales',
to: 'https://www.civo.com/sales',
},
{
label: 'Status',
to: 'https://status.civo.com',
},
],
},
],
copyright: `© Civo ${new Date().getFullYear()}. All rights reserved.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
docs: {
sidebar: {
hideable: true,
},
},
}),
};
module.exports = config;