2021-07-06 09:28:29 +01:00
// See https://v2.docusaurus.io/docs/configuration for more information.
2021-02-03 17:35:24 +00:00
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/" ,
2021-02-03 17:35:24 +00:00
projectName : "immer" ,
organizationName : "immerjs" ,
onBrokenLinks : "throw" ,
onBrokenMarkdownLinks : "warn" ,
favicon : "img/favicon.ico" ,
2022-03-11 22:34:25 +08:00
i18n : {
2022-08-12 21:59:01 +01:00
defaultLocale : "en" ,
locales : [ "en" , "zh-CN" ]
2022-03-11 22:34:25 +08:00
} ,
2021-02-03 17:35:24 +00:00
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
} ,
2021-02-03 17:35:24 +00:00
navbar : {
title : "Immer" ,
2021-11-24 23:08:05 +01:00
style : "dark" ,
2021-02-03 17:35:24 +00:00
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"
2021-02-03 17:35:24 +00:00
} ,
{
type : "doc" ,
docId : "support" ,
2021-03-17 15:12:16 +00:00
label : "Support Immer" ,
position : "right"
2022-03-11 22:34:25 +08:00
} ,
{
2022-08-12 21:59:01 +01:00
type : "localeDropdown" ,
position : "left"
}
2021-02-03 17:35:24 +00:00
]
} ,
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" ) ,
2023-01-27 14:58:32 +01:00
editUrl : "https://github.com/immerjs/immer/edit/main/website/" ,
2021-02-03 17:35:24 +00:00
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
}
] ,
2023-01-03 20:39:37 +01:00
[
"@docusaurus/plugin-google-analytics" ,
{
trackingID : "UA-65632006-3" ,
anonymizeIP : true
}
] ,
2021-03-21 16:49:38 +00:00
[
"@docusaurus/plugin-client-redirects" ,
{
createRedirects : function ( existingPath ) {
return [ "/docs" + existingPath ]
}
}
]
2021-02-03 17:35:24 +00:00
]
}