forked from stryker-mutator/stryker-mutator.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.ts
218 lines (215 loc) · 6.32 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
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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
import type * as Preset from '@docusaurus/preset-classic';
import type { Config } from '@docusaurus/types';
import { themes } from 'prism-react-renderer';
import redirects from './legacy-redirects';
const config: Config = {
webpack: {
jsLoader: (isServer) => ({
loader: 'swc-loader',
options: {
jsc: {
parser: {
syntax: 'typescript',
tsx: true,
},
target: 'es2020',
},
module: {
type: isServer ? 'commonjs' : 'es6',
},
},
}),
},
title: 'Stryker Mutator',
tagline: 'Test your tests with mutation testing.',
url: 'https://stryker-mutator.io',
baseUrl: '/',
onBrokenLinks: 'throw',
favicon: '/images/stryker.svg',
organizationName: 'stryker-mutator',
projectName: 'stryker-mutator.github.io',
trailingSlash: true,
themeConfig: {
image: 'images/strykerman.png',
colorMode: {
respectPrefersColorScheme: true,
},
announcementBar: {
id: 'talk', // Any value that will identify this message.
content:
'📢 try out the new <a target="_blank" href="https://stryker-mutator.io/stryker-playground/">Stryker Playground right here in your browser!</a>',
backgroundColor: 'var(--ifm-navbar-background-color, #fff)',
textColor: 'var(--ifm-navbar-link-color, #000)',
isCloseable: true,
},
navbar: {
title: 'Stryker Mutator',
logo: {
alt: 'Stryker Mutator Logo',
src: 'images/stryker.svg',
height: 32,
width: 32,
},
items: [
{ to: 'blog', label: 'Blog', position: 'left' },
{
to: 'docs/stryker-js/introduction',
activeBasePath: 'docs/stryker-js/',
label: 'For JavaScript',
position: 'left',
},
{
to: 'docs/stryker-net/introduction',
activeBasePath: 'docs/stryker-net',
label: 'For C#',
position: 'left',
},
{
to: 'docs/stryker4s/getting-started',
activeBasePath: 'docs/stryker4s',
label: 'For Scala',
position: 'left',
},
{
to: 'docs/General/example',
activeBasePath: 'docs/General/example',
label: 'An example',
position: 'left',
},
{
href: 'https://stryker-mutator.io/stryker-playground/',
label: 'Playground',
position: 'left',
},
{
href: 'https://dashboard.stryker-mutator.io',
label: 'Dashboard',
position: 'right',
},
{
href: '#',
target: '_self',
position: 'right',
className: 'header-github-link',
'aria-label': 'GitHub repository dropdown',
items: [
{
label: 'StrykerJS (JS & TS)',
href: 'https://github.com/stryker-mutator/stryker-js',
},
{
label: 'Stryker.NET (C#)',
href: 'https://github.com/stryker-mutator/stryker-net',
},
{
label: 'Stryker4s (Scala)',
href: 'https://github.com/stryker-mutator/stryker4s',
},
{
label: 'Mutation Testing Elements',
href: 'https://github.com/stryker-mutator/mutation-testing-elements',
},
{
label: 'This website',
href: 'https://github.com/stryker-mutator/stryker-mutator.github.io',
},
],
},
],
},
footer: {
links: [
{
title: 'Docs',
items: [
{
label: 'FAQ',
to: 'docs/General/faq',
},
],
},
{
title: 'Community',
items: [
{
label: 'Slack',
href: 'https://join.slack.com/t/stryker-mutator/shared_invite/enQtOTUyMTYyNTg1NDQ0LTU4ODNmZDlmN2I3MmEyMTVhYjZlYmJkOThlNTY3NTM1M2QxYmM5YTM3ODQxYmJjY2YyYzllM2RkMmM1NjNjZjM',
},
{
label: 'Twitter',
href: 'https://twitter.com/stryker_mutator',
},
],
},
{
title: 'More',
items: [
{
label: 'Blog',
to: 'blog',
},
{
label: 'GitHub',
href: 'https://github.com/stryker-mutator/',
},
],
},
],
copyright: `Powered by <a target="_blank" rel="noopener noreferrer" href="https://www.infosupport.com/open-source/">Info Support</a>.<br/>Stryker is released under the Apache 2.0 license. Site by the <a target="_blank" rel="noopener noreferrer" href="https://github.com/orgs/stryker-mutator/people">Stryker team</a>. Logo by Selina van den Top.`,
logo: {
alt: 'Info Support Logo',
src: 'images/info-support.svg',
href: 'https://infosupport.com',
width: 117,
height: 33,
},
},
prism: {
additionalLanguages: ['java', 'scala', 'csharp', 'diff', 'json'],
theme: themes.github,
darkTheme: themes.dracula,
},
algolia: {
appId: 'QF3A1J09N2',
apiKey: 'b0ec9342a88037eafe5fa4fd412b8b35',
indexName: 'stryker-mutator',
contextualSearch: false,
},
metadata: [
{
name: 'keywords',
content: 'mutation testing, JavaScript, TypeScript, C#, .NET, Scala, testing, testing tools, software',
},
{ name: 'theme-color', content: '#e74c3c' },
],
} satisfies Preset.ThemeConfig,
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: './sidebars.ts',
editUrl: 'https://github.com/stryker-mutator/stryker-mutator.github.io/edit/develop/',
},
blog: {
showReadingTime: true,
editUrl: 'https://github.com/stryker-mutator/stryker-mutator.github.io/edit/develop/',
},
theme: {
customCss: './src/css/custom.css',
},
gtag: {
trackingID: 'G-JN49KF9BV1',
// Optional fields.
anonymizeIP: true, // Should IPs be anonymized?
},
} satisfies Preset.Options,
],
],
plugins: [['@docusaurus/plugin-client-redirects', { redirects }]],
markdown: {
mermaid: true,
},
themes: ['@docusaurus/theme-mermaid'],
};
export default config;