Repository navigation
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
199 lines (195 loc) · 5.5 KB
/
Copy pathdocusaurus.config.js
File metadata and controls
199 lines (195 loc) · 5.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
// @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: 'Podman',
tagline:
'Podman is a daemonless container engine for developing, managing, and running OCI Containers on your Linux System',
url: 'https://podman.io',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'favicon.ico',
trailingSlash: false,
deploymentBranch: 'gh-pages',
organizationName: 'containers',
projectName: 'containers.github.io',
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
plugins: [
'@docusaurus/theme-live-codeblock',
async function tailwindPlugin() {
return {
name: 'docusaurus-tailwindcss',
configurePostCss(postcssOptions) {
postcssOptions.plugins.push(require('tailwindcss'));
postcssOptions.plugins.push(require('autoprefixer'));
return postcssOptions;
},
};
},
[
'@docusaurus/plugin-content-blog',
{
showReadingTime: true,
routeBasePath: 'release',
id: 'release-anouncements',
path: './release',
},
],
],
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
path: 'docs',
editUrl: 'https://github.com/containers/podman.io/tree/main',
},
blog: {
showReadingTime: true,
routeBasePath: 'blogs',
},
theme: {
customCss: require.resolve('./src/css/main.css'),
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
colorMode: {
respectPrefersColorScheme: true,
},
navbar: {
hideOnScroll: true,
title: 'podman',
logo: {
alt: 'Podman Logo',
src: 'logos/optimized/podman-3-logo-266w-253h.webp',
},
items: [
{
type: 'dropdown',
label: 'Get Started',
to: 'get-started',
position: 'right',
items: [
{
label: 'Features',
to: 'features',
},
{
type: 'doc',
docId: 'podman',
label: 'Documentation',
},
],
},
{
type: 'dropdown',
label: 'Community',
to: 'community',
position: 'right',
items: [
{
label: 'Meetings Archive',
to: 'community/meetings',
exact: true,
activeBaseRegex: '^/community/meetings/?$',
},
],
},
{
to: 'https://blog.podman.io',
target: '_self',
label: 'Development Blog',
position: 'right',
},
{
to: 'https://github.com/podman-container-tools/podman.io',
target: '_self',
label: 'GitHub',
position: 'right',
},
{ to: 'downloads', label: 'Downloads', position: 'right' },
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Installation Instructions',
to: 'docs/installation',
},
{
label: 'Documentation',
to: 'docs/',
},
],
},
{
title: 'Community',
items: [
{
label: 'Matrix',
href: 'https://matrix.to/#/#podman:fedoraproject.org',
},
{
label: 'Discord',
href: 'https://discord.com/invite/x5GzFF6QH4',
},
{
label: 'Blog',
href: 'https://blog.podman.io/',
},
{
label: 'Mailing List',
href: 'https://lists.podman.io',
},
],
},
{
title: 'Projects',
items: [
{
label: 'Podman GitHub',
href: 'https://github.com/podman-container-tools/podman',
},
{
label: 'Podman Desktop GitHub',
href: 'https://github.com/podman-desktop/podman-desktop',
},
{
label: 'Podman Container Tools GitHub',
href: 'https://github.com/podman-container-tools',
},
{
label: 'Podman Desktop Website',
href: 'https://podman-desktop.io/',
},
],
},
],
copyright: `<p>Copyright © ${new Date().getFullYear()} Podman Container Tools, a Series of LF Projects, LLC. Built with Docusaurus.</p><p>For website terms of use, trademark policy, and other project policies, please see the <a href="https://lfprojects.org/policies/">LF Projects policies page</a>.</p>`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
liveCodeBlock: {
playgroundPosition: 'bottom',
},
}),
};
module.exports = config;