forked from rwalshe/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
324 lines (322 loc) · 8.61 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
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
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
/** @type {import('@docusaurus/types').DocusaurusConfig} */
const versions = require('./software_versions.json')
module.exports = {
title: 'Astronomer Documentation',
tagline: 'Learn how to use Astro, the next-generation data orchestration platform.',
url: 'https://docs.astronomer.io',
baseUrl: '/',
trailingSlash: false,
noIndex: false,
onBrokenLinks: 'throw', // 'warn' for drafts, 'throw' for prod
onBrokenMarkdownLinks: 'throw',
markdown: {
mermaid: true,
},
themes: ['@docusaurus/theme-mermaid'],
favicon: 'img/favicon.svg',
organizationName: 'astronomer', // Usually your GitHub org/user name.
projectName: 'docs', // Usually your repo name.
themeConfig: {
image: 'img/meta.png',
docs: {
sidebar: {
autoCollapseCategories: true,
},
},
algolia: {
apiKey: '99354995bfad26ed950bdb701bc56b6b',
indexName: 'published-docs',
// Optional: see doc section below
contextualSearch: true,
// Optional: see doc section below
appId: 'TTRQ0VJY4D',
inputSelector: '.DocSearch', // Optional: Algolia search parameters
searchParameters: {
},
//... other Algolia params
},
prism: {
additionalLanguages: ['docker'],
},
colorMode: {
disableSwitch: false,
},
mermaid: {
theme: { dark: 'neutral' },
},
navbar: {
title: 'Docs',
logo: {
alt: 'Astronomer',
src: 'img/AstroMonogram.svg',
href: 'https://docs.astronomer.io',
target: '_self',
},
items: [
{
to: '/',
label: 'Home',
position: 'left',
activeClassName: 'navbar__link--active',
activeBaseRegex: '^[\/]+$',
},
{
to: '/astro/',
label: 'Astro',
position: 'left',
activeClassName: 'navbar__link--active',
activeBaseRegex: '^(\/astro)(?!(\/cli))',
},
{
to: '/astro/cli/overview',
label: 'Astro CLI',
position: 'left',
activeClassName: 'navbar__link--active',
activeBaseRegex: 'astro/cli+',
},
{
label: 'Software',
to: 'software/',
activeBaseRegex: 'software',
position: 'left',
activeClassName: 'navbar__link--active',
},
{
to: '/learn/',
label: 'Learn',
position: 'left',
activeClassName: 'navbar__link--active',
},
],
},
astroCard: {
title: "What is Astro?",
description: "Astro is a cloud solution that helps you focus on your data pipelines and spend less time managing Apache Airflow, with capabilities enabling you to build, run, and observe data all in one place.",
buttons: {
primary: {
label: "Try Astro",
href: "https://www.astronomer.io/try-astro/?referral=docs-what-astro-banner"
},
secondary: {
label: "Learn about Astronomer",
href: "https://www.astronomer.io/?referral=docs-what-astro-banner"
}
}
},
newsletterForm: {
title: "Sign up for Developer Updates",
buttonText: "Submit",
successMessage: "Success! ✓",
errorMessage: "Sorry, there was issue sending your email. Please try again.",
},
promoBanner: {
text: "Don't miss the biggest Airflow event of the year: Airflow Summit 2023, Sept 19-21",
buttonText: "Join Us →",
url: "https://www.astronomer.io/events/airflow-summit-2023/"
},
feedbackWidget: {
question: "Was this page helpful?",
thanksText: "Thank you for your feedback!",
},
softwareNav: {
items: [
{
label: '0.33 (Latest)',
to: '/software/',
activeBaseRegex: `software(?!(\/${versions.join('|\\/')}))`,
},
{
label: '0.32',
to: '/software/0.32/',
activeBaseRegex: `(software\/0.32)+`,
},
{
label: '0.30',
to: '/software/0.30/',
activeBaseRegex: '(software\/0.30)+',
},
{
label: 'Archive',
to: '/software/documentation-archive',
activeBaseRegex: `software(?!(\/${versions.join('|\\/')}))`,
},
],
},
sidebarNav: {
bottomNav: {
items: [
{
label: 'Book Office Hours',
href: 'https://calendly.com/d/yy2-tvp-xtv/astro-data-engineering-office-hours-ade',
},
{
label: 'Watch a webinar',
href: 'https://www.astronomer.io/events/webinars/?referral=docs-sidebar',
},
{
label: 'Astro status',
href: 'https://status.astronomer.io/?referral=docs-sidebar',
}
]
}
},
footer: {
logo: {
alt: "Astronomer logo",
src: "img/monogram-light.png",
href: "https://www.astronomer.io/",
width: 48,
},
links: [
{
label: 'Legal',
href: 'https://www.astronomer.io/legal/',
},
{
label: 'Privacy',
href: 'https://www.astronomer.io/privacy/',
},
{
label: 'Security',
href: 'https://www.astronomer.io/security/',
},
{
label: 'Cookie Preferences',
to: '#',
id: 'cookiePref',
},
],
copyright: '© Astronomer 2023. Various trademarks held by their respective owners.',
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebarsAstro.js'),
editUrl: ({ docPath }) =>
`https://github.com/astronomer/docs/blob/main/astro/${docPath}`,
editLocalizedFiles: true,
routeBasePath: 'astro',
path: 'astro',
admonitions: {
tag: ':::',
keywords: [
'caution',
'warning',
'info',
'tip',
'cli',
'highlight'
],
},
},
sitemap: {
id: 'default',
changefreq: 'daily',
filename: 'sitemap.xml',
ignorePatterns: ['/astro/kubernetes-executor', '/astro/cli/sql-cli', '/astro/cross-account-role-setup']
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
[
'redocusaurus',
{
// Plugin Options for loading OpenAPI files
specs: [
{
id: 'platform',
spec: 'https://api.astronomer.io/spec/platform/v1beta1',
},
{
id: 'iam',
spec: 'https://api.astronomer.io/spec/iam/v1beta1',
},
],
// Theme Options for modifying how redoc renders them
theme: {
// Change with your site colors
primaryColor: '#7352ba',
},
},
],
],
plugins: [
[
'@docusaurus/plugin-content-docs',
{
id: 'software',
routeBasePath: 'software',
editUrl: ({ docPath }) =>
`https://github.com/astronomer/docs/blob/main/software/${docPath}`,
editCurrentVersion: true,
sidebarPath: require.resolve('./sidebarsSoftware.js'),
path: 'software',
lastVersion: 'current',
versions: {
current: {
label: '0.33',
path: '',
banner: 'none',
},
},
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'learn',
routeBasePath: 'learn',
editUrl: ({ docPath }) =>
`https://github.com/astronomer/docs/blob/main/learn/${docPath}`,
editCurrentVersion: true,
sidebarPath: require.resolve('./sidebarsLearn.js'),
path: 'learn',
},
],
[
'@docusaurus/plugin-sitemap',
{
id: 'learn',
changefreq: 'daily',
filename: 'sitemap.xml',
ignorePatterns: ['/astro/kubernetes-executor', '/astro/cli/sql-cli', '/astro/cross-account-role-setup']
},
],
],
scripts: [
{
src: './scripts/segment.js',
defer: true,
},
{
src: './scripts/consent-manager.js',
defer: true,
},
{
src: './scripts/consent-manager-config.js',
},
{
src: "/scripts/set-tab.js",
async: true,
defer: true,
},
{
src: 'https://docs.astronomer.io/js/script.outbound-links.js',
"data-domain": 'docs.astronomer.io',
defer: true,
},
{
src: './scripts/remix-redocly.js',
async: true,
defer: true,
},
],
clientModules: [
require.resolve('./segment-page.mjs'),
],
};