SIGN IN SIGN UP
immerjs / immer UNCLAIMED

Create the next immutable state by mutating the current one

0 0 22 JavaScript
// 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/",
2021-07-05 15:58:53 +01:00
baseUrl: process.env.NETLIFY_PREVIEW ? "/" : "/immer/",
projectName: "immer",
organizationName: "immerjs",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "img/favicon.ico",
i18n: {
2022-08-12 21:59:01 +01:00
defaultLocale: "en",
locales: ["en", "zh-CN"]
},
themeConfig: {
2022-08-12 21:59:01 +01:00
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",
2021-03-17 15:12:16 +00:00
label: "Documentation",
position: "right"
},
{
href: "https://github.com/immerjs/immer",
label: "GitHub",
position: "right"
},
{
type: "doc",
docId: "support",
2021-03-17 15:12:16 +00:00
label: "Support Immer",
position: "right"
},
{
2022-08-12 21:59:01 +01:00
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: "/"
}
],
2023-01-03 20:09:50 +01:00
[
"@docusaurus/plugin-google-gtag",
{
2023-01-03 20:21:49 +01:00
trackingID: "G-X43066885W",
2023-01-03 20:09:50 +01:00
anonymizeIP: true
}
],
[
"@docusaurus/plugin-google-analytics",
{
trackingID: "UA-65632006-3",
anonymizeIP: true
}
],
[
"@docusaurus/plugin-client-redirects",
{
createRedirects: function(existingPath) {
return ["/docs" + existingPath]
}
}
]
]
}