Repository navigation
Expand file tree
/
Copy pathdocusaurus.config.ts
More file actions
201 lines (192 loc) · 5.62 KB
/
Copy pathdocusaurus.config.ts
File metadata and controls
201 lines (192 loc) · 5.62 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
200
201
import {themes as prismThemes} from 'prism-react-renderer';
import type {Config} from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
const config: Config = {
title: 'Styrmin',
tagline: 'Lifecycle management for your infrastructure automation stack',
favicon: 'img/favicon.ico',
future: {
v4: true,
},
url: 'https://docs.styrmin.app',
baseUrl: '/',
onBrokenLinks: 'throw',
presets: [
[
'classic',
{
docs: {
sidebarPath: './sidebars.ts',
editUrl: 'https://github.com/opsmill/styrmin/tree/develop/docs/',
},
blog: false,
theme: {
customCss: './src/css/custom.css',
},
} satisfies Preset.Options,
],
],
plugins: [
[
'@docusaurus/plugin-client-redirects',
{
// Old `/docs/how-it-works/*` URLs now live under
// `/docs/concepts-and-architecture/*`. Generated as client-side
// redirects so deep links from blog posts, slack, etc. keep working.
redirects: [
// The alpha status page was replaced by the beta status page.
{from: '/docs/alpha-status', to: '/docs/beta-status'},
{from: '/docs/how-it-works', to: '/docs/concepts-and-architecture'},
// `/docs/getting-started/*` was dissolved per audit: Why Styrmin?
// and Platform Overview moved under Introduction, Quickstart moved
// under Installation.
{
from: '/docs/getting-started/why-styrmin',
to: '/docs/introduction/why-styrmin',
},
{
from: '/docs/getting-started/overview',
to: '/docs/introduction/platform-overview',
},
{
from: '/docs/getting-started/quickstart',
to: '/docs/installation/quickstart',
},
// What is an Application Driver? moved from Drivers to
// Concepts and Architecture — it's a conceptual page that was
// mixed in with task-oriented driver guides.
{
from: '/docs/drivers/what-is-a-driver',
to: '/docs/concepts-and-architecture/what-is-a-driver',
},
{
from: '/docs/how-it-works/architecture',
to: '/docs/concepts-and-architecture/architecture',
},
{
from: '/docs/how-it-works/reconciliation',
to: '/docs/concepts-and-architecture/reconciliation',
},
{
from: '/docs/how-it-works/operator-and-crds',
to: '/docs/concepts-and-architecture/operator-and-crds',
},
{
from: '/docs/how-it-works/ingress-and-networking',
to: '/docs/concepts-and-architecture/ingress-and-networking',
},
{
from: '/docs/how-it-works/backups-and-restores',
to: '/docs/concepts-and-architecture/backups-and-restores',
},
{
from: '/docs/how-it-works/hooks-and-actions',
to: '/docs/concepts-and-architecture/hooks-and-actions',
},
{
from: '/docs/how-it-works/status-reporting',
to: '/docs/concepts-and-architecture/status-reporting',
},
],
},
],
],
themes: [
[
'@easyops-cn/docusaurus-search-local',
{
hashed: true,
indexBlog: false,
docsRouteBasePath: '/docs',
highlightSearchTermsOnTargetPage: true,
},
],
],
themeConfig: {
image: 'img/styrmin-social-card.png',
colorMode: {
respectPrefersColorScheme: true,
},
announcementBar: {
id: 'beta-status-v1',
content:
'Styrmin is in <strong>beta</strong>. Read what changed since the alpha and ' +
'what to do before you upgrade: <a href="/docs/beta-status">Beta status</a>',
backgroundColor: '#fef3c7',
textColor: '#78350f',
isCloseable: true,
},
navbar: {
title: 'Styrmin',
logo: {
alt: 'Styrmin Logo',
src: 'img/logo.svg',
},
items: [
{
type: 'docSidebar',
sidebarId: 'docs',
position: 'left',
label: 'Introduction',
},
{
to: '/docs/installation',
label: 'Installation',
position: 'left',
},
{
to: '/docs/drivers/loading-drivers',
label: 'Drivers',
position: 'left',
},
{
href: 'https://github.com/opsmill/styrmin',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Documentation',
items: [
{
label: 'Introduction',
to: '/docs/introduction/why-styrmin',
},
{
label: 'Installation',
to: '/docs/installation',
},
{
label: 'Application drivers',
to: '/docs/drivers/loading-drivers',
},
],
},
{
title: 'Community',
items: [
{
label: 'GitHub',
href: 'https://github.com/opsmill/styrmin',
},
{
label: 'OpsMill',
href: 'https://www.opsmill.com',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} OpsMill. Built with Docusaurus.`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
additionalLanguages: ['bash', 'yaml', 'python', 'json'],
},
} satisfies Preset.ThemeConfig,
};
export default config;