-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathdocusaurus.config.js
85 lines (85 loc) · 1.93 KB
/
docusaurus.config.js
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
module.exports = {
title: "MetaGame Wiki",
tagline: "Build the future you want to live in.",
url: "https://wiki.metagame.wtf",
baseUrl: "/",
favicon: "img/mg-icon.png",
organizationName: "MetaFam",
projectName: "metagame-wiki",
// customFields: {
// GA_TAG: process.env.GA_TAG,
// },
themeConfig: {
colorMode: {
defaultMode: "dark",
disableSwitch: true,
},
gtag: {
trackingID: 'G-9SQ6R9576M',
anonymizeIP: true, // We don't need to know folks IPs
},
image: "img/wiki-cover.png",
// headerLinks: [{ page: 'help', label: 'Help' }],
navbar: {
title: "MetaGame Wiki",
logo: {
alt: "MetaGame Logo",
src: "img/mg-crystal.png",
},
},
search: {
placeholder: "Search the Wiki",
}
},
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
sidebarPath: require.resolve("./sidebars.js"),
routeBasePath: "/",
editUrl: "https://wiki.metagame.wtf/admin/#/?",
showLastUpdateTime: true,
showLastUpdateAuthor: true,
},
theme: {
customCss: require.resolve("./src/css/custom.scss"),
},
},
],
],
plugins: [
[require.resolve("docusaurus-lunr-search"),
{
indexBaseUrl: true
}
],
require.resolve("docusaurus-plugin-sass"),
"docusaurus2-dotenv",
[
'@docusaurus/plugin-client-redirects',
{
redirects: [
{
to: '/', // string
from: ['/docs'], // string | string[]
},
{
to: '/', // string
from: ['/docs/wtf-is-metagame/wtf-is-metagame'], // string | string[]
}
],
},
],
],
// scripts: [
// {
// src: "./static/lib/header-vanilla.js",
// // async: true,
// defer: true,
// },
// ],
clientModules: [
require.resolve('./src/lib/header.js'),
]
};