-
Notifications
You must be signed in to change notification settings - Fork 85
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
185 lines (179 loc) · 5.21 KB
/
docusaurus.config.js
File metadata and controls
185 lines (179 loc) · 5.21 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
// @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: [
{ to: 'features', label: 'Features', position: 'right' },
{ to: 'get-started', label: 'Get Started', position: 'right' },
{ to: 'community', label: 'Community', position: 'right' },
{
to: 'https://blog.podman.io',
target: '_self',
label: 'Development Blog',
position: 'right',
},
{
type: 'doc',
docId: 'podman',
label: 'Documentation',
position: 'right',
},
{
to: 'https://github.com/containers/',
target: '_self',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Installation Instructions',
to: 'docs/installation',
},
{
label: 'Documentation',
to: 'docs/',
},
{
label: 'Podman CLI Commands',
href: 'https://docs.podman.io/en/latest/Commands.html',
},
],
},
{
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',
},
{
label: 'RSS Feed',
href: 'https://blog.podman.io/feed/',
},
],
},
{
title: 'Projects',
items: [
{
label: 'Podman GitHub',
href: 'https://github.com/containers/podman',
},
{
label: 'Podman Desktop GitHub',
href: 'https://github.com/containers/podman-desktop',
},
{
label: 'Podman Website GitHub',
href: 'https://github.com/containers/podman.io',
},
{
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;