forked from OpenLineage/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
152 lines (142 loc) · 4.35 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
// @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');
const links = [
{ to: '/getting-started', label: 'Getting Started', position: 'left' },
{ to: '/resources', label: 'Resources', position: 'left' },
{ to: '/ecosystem', label: 'Ecosystem', position: 'left' },
{ to: '/community', label: 'Community', position: 'left' },
{ to: '/blog', label: 'Blog', position: 'left' },
{ to: '/docs', label: 'Docs', position: 'left' },
{ to: '/survey', label: 'Ecosystem Survey 2023', position: 'left' },
]
const linksSocial = [
{ href: 'https://fosstodon.org/@openlineage', label: 'Mastodon', rel: 'me' },
{ href: 'https://twitter.com/OpenLineage', label: 'Twitter' },
{ href: 'https://www.linkedin.com/groups/13927795/', label: 'LinkedIn'},
{ href: 'http://bit.ly/OpenLineageSlack', label: 'Slack' },
{ href: 'https://github.com/OpenLineage/OpenLineage', label: 'GitHub' }
]
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'OpenLineage',
tagline: 'OpenLineage',
url: 'https://openlineage.io',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'throw',
favicon: 'img/favicon.ico',
customFields: {
links: links,
linksSocial: linksSocial
},
organizationName: 'openlineage',
projectName: 'docs',
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
exclude: ['**/partials/**'],
editUrl:
'https://github.com/OpenLineage/docs/tree/main/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
blog: {
blogTitle: 'Blog',
blogDescription: 'Data lineage is the foundation for a new generation of powerful, context-aware data tools and best practices. OpenLineage enables consistent collection of lineage metadata, creating a deeper understanding of how data is produced and used.',
showReadingTime: true,
blogSidebarCount: 5,
blogSidebarTitle: 'Recent posts',
feedOptions: {
type: ['json'],
copyright: `Copyright © ${new Date().getFullYear()} The Linux Foundation®. All rights reserved.`,
},
},
pages: {
path: 'src/pages',
include: ['**/*.{js,jsx,ts,tsx,md,mdx}'],
exclude: [
'home.tsx', // this page served from plugin
'**/_*.{js,jsx,ts,tsx,md,mdx}',
'**/_*.{js,jsx,ts,tsx,md,mdx}',
'**/_*/**',
'**/*.test.{js,jsx,ts,tsx}',
'**/__tests__/**',
],
mdxPageComponent: '@theme/MDXPage',
},
gtag: {
trackingID: 'G-QMTWMLMX4M',
anonymizeIP: true,
},
}),
],
],
plugins: [
function tailwindcssPlugin(ctx, options) {
return {
name: "docusaurus-tailwindcss",
configurePostCss(postcssOptions) {
// Appends TailwindCSS and AutoPrefixer.
postcssOptions.plugins.push(require("tailwindcss"));
postcssOptions.plugins.push(require("autoprefixer"));
return postcssOptions;
},
};
},
[
"./plugins/home-blog-plugin",
{
id: "blogs",
routeBasePath: "/",
path: "./blogs"
},
],
require.resolve('docusaurus-lunr-search')
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
logo: {
alt: 'OpenLineage',
src: 'img/ol-logo.svg',
},
items: [
...links,
{
href: 'https://github.com/OpenLineage/openlineage',
label: 'GitHub',
position: 'right',
}
],
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
colorMode: {
defaultMode: 'light',
disableSwitch: true,
respectPrefersColorScheme: false,
},
}),
scripts: [
{
src: 'https://plausible.io/js/script.js',
defer: true,
'data-domain': 'openlineage.io',
},
],
};
module.exports = config;