forked from aquarist-labs/s3gw-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocusaurus.config.ts
155 lines (146 loc) · 4.84 KB
/
docusaurus.config.ts
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
import type { Config } from '@docusaurus/types'
import type * as Preset from '@docusaurus/preset-classic'
import type * as PagesPlugin from '@docusaurus/plugin-content-pages'
import type * as ThemePlugin from '@docusaurus/theme-classic'
const config: Config = {
title: 'S3GW Project',
tagline: 'Lightweght S3-Compatible Object Store',
url: 'https://s3gw.tech',
baseUrl: '/',
favicon: 'img/favicon.ico',
organizationName: 's3gw.tech', // Usually your GitHub org/user name.
projectName: 's3gw website', // Usually your repo name.
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
// Even if you don't use internationalization, you can use this field to set
// useful metadata like html lang. For example, if your site is Chinese, you
// may want to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
trailingSlash: false,
themeConfig: {
image: 'img/s3gw-tech-social-card.png',
colorMode: {
// "light" | "dark"
defaultMode: 'light',
// Hides the switch in the navbar
// Useful if you want to support a single color mode
disableSwitch: false,
},
navbar: {
title: 'S3GW',
logo: {
alt: 's3gw.tech logo',
src: 'img/s3gw-tech-logo-round-solo.png',
srcDark: 'img/s3gw-tech-logo-round-dark-solo.png',
},
items: [
{
label: 'Why',
to: '/#why-s3gw',
position: 'left',
},
{
label: 'How',
to: '/#how-it-works',
position: 'left',
},
{
label: 'Get Started',
to: '/#get-started',
position: 'left',
},
{
href: 'https://docs.s3gw.tech',
position: 'right',
label: 'Documentation',
},
{
href: 'https://github.com/s3gw-tech/s3gw',
label: 'GitHub',
position: 'right',
},
{
label: 'Discussions',
href: 'https://github.com/orgs/s3gw-tech/discussions',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Quick Links',
items: [
{
label: 'Why',
to: '/#why-s3gw',
},
{
label: 'How',
to: '/#how-it-works',
},
{
label: 'Get Started',
to: '/#get-started',
},
],
},
{
title: 'S3GW Project',
items: [
{
label: 'Documentation',
href: 'https://docs.s3gw.tech',
},
{
label: 'GitHub',
href: 'https://github.com/s3gw-tech/s3gw',
},
{
label: 'Discussions',
href: 'https://github.com/orgs/s3gw-tech/discussions',
},
],
},
{
title: 'More',
items: [
{
label: 'ArtifactHub',
href: 'https://artifacthub.io/packages/helm/s3gw/s3gw',
},
{
label: 'Quay',
href: 'https://quay.io/organization/s3gw',
},
],
},
],
//copyright: `Copyright © ${new Date().getFullYear()} s3gw contributors`,
copyright: `
<p xmlns:cc="http://creativecommons.org/ns#" xmlns:dct="http://purl.org/dc/terms/">
Copyright © ${new Date().getFullYear()} s3gw contributors<br/>
<a property="dct:title" rel="cc:attributionURL" href="https://s3gw.tech">s3gw.tech</a> by <span property="cc:attributionName">s3gw.tech Contributors</span> is licensed under <a href="http://creativecommons.org/licenses/by-nc-sa/4.0/?ref=chooser-v1" target="_blank" rel="license noopener noreferrer" style="display:inline-block;">CC BY-NC-SA 4.0<img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/cc.svg?ref=chooser-v1"><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/by.svg?ref=chooser-v1"><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/nc.svg?ref=chooser-v1"><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/sa.svg?ref=chooser-v1"></a></p>`,
},
} satisfies Preset.ThemeConfig,
plugins: [
[
'@docusaurus/plugin-content-pages',
{
path: 'src/pages',
routeBasePath: '',
} satisfies PagesPlugin.Options,
],
[
'@docusaurus/theme-classic',
{
customCss: ['./src/css/custom.css'],
} satisfies ThemePlugin.PluginOptions,
],
],
}
export default config