forked from immerjs/immer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
79 lines (78 loc) · 1.63 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
// 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: "/immer/",
projectName: "immer",
organizationName: "immerjs",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "img/favicon.ico",
themeConfig: {
googleAnalytics: {
trackingID: "UA-65632006-3",
anonymizeIP: true
},
navbar: {
title: "Immer",
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"
}
]
},
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/master/website/",
routeBasePath: "/"
}
],
"@docusaurus/plugin-google-analytics",
[
"@docusaurus/plugin-client-redirects",
{
createRedirects: function(existingPath) {
return ["/docs" + existingPath]
}
}
]
]
}