docusaurus.config.js
This file
Path
website/docusaurus.config.js
105 lines · 2.2 KiB · JavaScript
Last changed by
chore: Merge branch 'unional-prettier'Michel Weststratebefore adoption37eaf8f
History of this fileTake it
The walk stopped after 200 commits: lines older than 07f5cc9 point at it.
chore(test): fix production build unit testsMichel Weststratebefore adoption07f5cc9
lines 1–77why, one step back1// See https://v2.docusaurus.io/docs/configuration for more information.23module.exports = {4 title: "Immer",5 tagline: "Create the next immutable state by mutating the current one.",6 url: "https://immerjs.github.io/",7 baseUrl: process.env.NETLIFY_PREVIEW ? "/" : "/immer/",8 projectName: "immer",9 organizationName: "immerjs",10 onBrokenLinks: "throw",11 onBrokenMarkdownLinks: "warn",12 favicon: "img/favicon.ico",13 i18n: {14 defaultLocale: "en",15 locales: ["en", "zh-CN"]16 },17 themeConfig: {18 announcementBar: {19 id: "support_ukraine",20 content:21 'Support Ukraine 🇺🇦 <a target="_blank" rel="noopener noreferrer" href="https://opensource.fb.com/support-ukraine">Help Provide Humanitarian Aid to Ukraine</a>.',22 backgroundColor: "#20232a",23 textColor: "#fff",24 isCloseable: false25 },26 navbar: {27 title: "Immer",28 style: "dark",29 logo: {30 src: "/img/immer-logo.svg",31 alt: "Immer Logo"32 },33 items: [34 {35 type: "doc",36 docId: "introduction",37 label: "Documentation",38 position: "right"39 },40 {41 href: "https://github.com/immerjs/immer",42 label: "GitHub",43 position: "right"44 },45 {46 type: "doc",47 docId: "support",48 label: "Support Immer",49 position: "right"50 },51 {52 type: "localeDropdown",53 position: "left"54 }55 ]56 },57 footer: {58 copyright: `Copyright © ${new Date().getFullYear()} Michel Weststrate`59 }60 },61 scripts: [62 "https://buttons.github.io/buttons.js",63 "https://media.ethicalads.io/media/client/ethicalads.min.js"64 ],65 themes: [66 [67 "@docusaurus/theme-classic",68 {69 customCss: require.resolve("./src/css/immer-infima.css")70 }71 ]72 ],73 plugins: [74 [75 "@docusaurus/plugin-content-docs",76 {77 sidebarPath: require.resolve("./sidebars.js"),fix: release and publish from 'main' rather than 'master' branchMichel Weststratebefore adoption82acc40
line 78why, one step back78 editUrl: "https://github.com/immerjs/immer/edit/main/website/",chore(test): fix production build unit testsMichel Weststratebefore adoption07f5cc9
lines 79–81why, one step back79 routeBasePath: "/"80 }81 ],docs: migrate to GA4Michel Weststratebefore adoptiondb54dbe
lines 82–84why, one step back82 [83 "@docusaurus/plugin-google-gtag",84 {docs: fix GA4 ID (?)Michel Weststratebefore adoptionf21c5fa
line 85why, one step back85 trackingID: "G-X43066885W",docs: migrate to GA4Michel Weststratebefore adoptiondb54dbe
lines 86–88why, one step back86 anonymizeIP: true87 }88 ],docs: upgrade docusaurus to stable releaseMichel Weststratebefore adoption7385f61
lines 89–95why, one step back89 [90 "@docusaurus/plugin-google-analytics",91 {92 trackingID: "UA-65632006-3",93 anonymizeIP: true94 }95 ],chore(test): fix production build unit testsMichel Weststratebefore adoption07f5cc9
lines 96–98why, one step back96 [97 "@docusaurus/plugin-client-redirects",98 {chore: Merge branch 'unional-prettier'Michel Weststratebefore adoption37eaf8f
line 99why, one step back99 createRedirects: function (existingPath) {chore(test): fix production build unit testsMichel Weststratebefore adoption07f5cc9
lines 100–105why, one step back100 return ["/docs" + existingPath]101 }102 }103 ]104 ]105}