-
-
Notifications
You must be signed in to change notification settings - Fork 840
/
docusaurus.config.js
105 lines (104 loc) · 2.21 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
// See https://v2.docusaurus.io/docs/configuration for more information.
module.exports = {
title: "Immer",
tagline: "Create the next immutable state by mutating the current one.",
url: "https://immerjs.github.io/",
baseUrl: process.env.NETLIFY_PREVIEW ? "/" : "/immer/",
projectName: "immer",
organizationName: "immerjs",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "img/favicon.ico",
i18n: {
defaultLocale: "en",
locales: ["en", "zh-CN"]
},
themeConfig: {
announcementBar: {
id: "support_ukraine",
content:
'Support Ukraine 🇺🇦 <a target="_blank" rel="noopener noreferrer" href="https://opensource.fb.com/support-ukraine">Help Provide Humanitarian Aid to Ukraine</a>.',
backgroundColor: "#20232a",
textColor: "#fff",
isCloseable: false
},
navbar: {
title: "Immer",
style: "dark",
logo: {
src: "/img/immer-logo.svg",
alt: "Immer Logo"
},
items: [
{
type: "doc",
docId: "introduction",
label: "Documentation",
position: "right"
},
{
href: "https://github.com/immerjs/immer",
label: "GitHub",
position: "right"
},
{
type: "doc",
docId: "support",
label: "Support Immer",
position: "right"
},
{
type: "localeDropdown",
position: "left"
}
]
},
footer: {
copyright: `Copyright © ${new Date().getFullYear()} Michel Weststrate`
}
},
scripts: [
"https://buttons.github.io/buttons.js",
"https://media.ethicalads.io/media/client/ethicalads.min.js"
],
themes: [
[
"@docusaurus/theme-classic",
{
customCss: require.resolve("./src/css/immer-infima.css")
}
]
],
plugins: [
[
"@docusaurus/plugin-content-docs",
{
sidebarPath: require.resolve("./sidebars.js"),
editUrl: "https://github.com/immerjs/immer/edit/main/website/",
routeBasePath: "/"
}
],
[
"@docusaurus/plugin-google-gtag",
{
trackingID: "G-X43066885W",
anonymizeIP: true
}
],
[
"@docusaurus/plugin-google-analytics",
{
trackingID: "UA-65632006-3",
anonymizeIP: true
}
],
[
"@docusaurus/plugin-client-redirects",
{
createRedirects: function(existingPath) {
return ["/docs" + existingPath]
}
}
]
]
}