-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
executable file
·178 lines (169 loc) · 4.76 KB
/
docusaurus.config.js
File metadata and controls
executable file
·178 lines (169 loc) · 4.76 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
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: 'ETF2L Rules',
tagline: 'Ruleset for tournaments organised by ETF2L',
url: 'https://rules.etf2l.org',
baseUrl: '/',
onBrokenLinks: 'throw',
markdown: {
hooks: {
onBrokenMarkdownLinks: 'warn',
}
},
favicon: 'img/favicon.ico',
organizationName: 'etf2l',
projectName: 'rules',
themeConfig: {
algolia: {
// The application ID provided by Algolia
appId: 'HAKQVX9YDE',
// Public API key: it is safe to commit it
apiKey: '6e68bfe2cdf8438a8e2cfc7a7f62691c',
indexName: 'rules-etf2l',
// Optional: see doc section below
contextualSearch: true,
// Optional: Specify domains where the navigation should occur through window.location instead on history.push. Useful when our Algolia config crawls multiple documentation sites and we want to navigate with window.location.href to them.
externalUrlRegex: 'external\\.com|domain\\.com',
// Optional: Replace parts of the item URLs from Algolia. Useful when using the same search index for multiple deployments using a different baseUrl. You can use regexp or string in the `from` param. For example: localhost:3000 vs myCompany.com/docs
// replaceSearchResultPathname: {
// from: '/docs/', // or as RegExp: /\/docs\//
// to: '/',
// },
// Optional: Algolia search parameters
searchParameters: {},
// Optional: path for search page that enabled by default (`false` to disable it)
searchPagePath: 'search',
// Optional: whether the insights feature is enabled or not on Docsearch (`false` by default)
insights: false,
//... other Algolia params
},
navbar: {
title: 'ETF2L Rules',
logo: {
alt: 'ETF2L Site Logo',
src: 'img/ETF2L_logo_dark.svg',
srcDark: 'img/ETF2L_logo_light.svg',
},
items: [
{
to: 'docs/general-1',
activeBasePath: 'docs',
label: 'General Rules',
position: 'left',
},
{
to: 'docs/6v6-1',
activeBasePath: 'docs',
label: '6v6 Rules',
position: 'left',
},
{
to: 'docs/9v9-1',
activeBasePath: 'docs',
label: '9v9 Rules',
position: 'left',
},
{
to: 'docs/server-configs',
activeBasePath: 'docs',
label: 'Server Configs',
position: 'left',
},
{
to: 'docs/newcomer-guide',
activeBasePath: 'docs',
label: 'Newcomer Guide',
position: 'right',
},
{
to: 'docs/latest-rules-updates',
activeBasePath: 'docs',
label: 'Latest Rule Changes',
position: 'right',
},
{
to: 'docs/latest-config-updates',
activeBasePath: 'docs',
label: 'Latest Config Changes',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
to: 'docs/general-1',
label: 'General Rules',
},
{
to: 'docs/6v6-1',
label: '6v6 Rules',
},
{
to: 'docs/9v9-1',
label: '9v9 Rules',
},
{
to: 'docs/server-configs',
label: 'Server Configs',
},
{
to: 'docs/latest-rules-updates',
label: 'Latest Rule Changes',
},
{
to: 'docs/latest-config-updates',
label: 'Latest Config Changes',
},
],
},
{
title: 'Community',
items: [
{
label: 'Our website',
href: 'https://etf2l.org/',
},
{
label: 'Our API',
href: 'https://api.etf2l.org/',
},
{
label: 'Discord',
href: 'https://discord.gg/BNvUmTD',
},
],
},
{
title: 'More',
items: [
{
label: 'GitHub',
href: 'https://github.com/etf2l/rules',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} ETF2L Staff. Built with Docusaurus.`,
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// editUrl:
// 'https://github.com/etf2l/rules/edit/main',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
};