docusaurus.config.js
This file
Path
website/docusaurus.config.js
105 lines · 2.2 KiB · JavaScript
Last changed by
fix: release and publish from 'main' rather than 'master' branchMichel Weststratebefore adoption82acc40
History of this fileTake it
The walk stopped after 200 commits: lines older than bc35916 point at it.
docs: Extended / updated documenation (#824)Michel Weststratebefore adoption847492c
line 1why, one step back1// See https://v2.docusaurus.io/docs/configuration for more information.chore: fix links, fixes #779Michel Weststratebefore adoptionbc35916
lines 2–6why, one step back23module.exports = {4 title: "Immer",5 tagline: "Create the next immutable state by mutating the current one.",6 url: "https://immerjs.github.io/",chore: fixes for deploy previewMichel Weststratebefore adoption6fd5329
line 7why, one step back7 baseUrl: process.env.NETLIFY_PREVIEW ? "/" : "/immer/",chore: fix links, fixes #779Michel Weststratebefore adoptionbc35916
lines 8–12why, one step back8 projectName: "immer",9 organizationName: "immerjs",10 onBrokenLinks: "throw",11 onBrokenMarkdownLinks: "warn",12 favicon: "img/favicon.ico",docs: add chinese translation (#902)儿时before adoption53c2f91
line 13why, one step back13 i18n: {docs: Add Ukraine bannerMichel Weststratebefore adoption4ef5cdc
lines 14–15why, one step back14 defaultLocale: "en",15 locales: ["en", "zh-CN"]docs: add chinese translation (#902)儿时before adoption53c2f91
line 16why, one step back16 },chore: fix links, fixes #779Michel Weststratebefore adoptionbc35916
line 17why, one step back17 themeConfig: {docs: Add Ukraine bannerMichel Weststratebefore adoption4ef5cdc
lines 18–25why, one step back18 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 },chore: fix links, fixes #779Michel Weststratebefore adoptionbc35916
lines 26–27why, one step back26 navbar: {27 title: "Immer",docs: fix mobile navbar menu styles (#870)Sigurd Spieckermannbefore adoption6e7cd9a
line 28why, one step back28 style: "dark",chore: fix links, fixes #779Michel Weststratebefore adoptionbc35916
lines 29–49why, one step back29 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"docs: add chinese translation (#902)儿时before adoption53c2f91
lines 50–51why, one step back50 },51 {docs: Add Ukraine bannerMichel Weststratebefore adoption4ef5cdc
lines 52–54why, one step back52 type: "localeDropdown",53 position: "left"54 }chore: fix links, fixes #779Michel Weststratebefore adoptionbc35916
lines 55–77why, one step back55 ]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: fix links, fixes #779Michel Weststratebefore adoptionbc35916
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: fix links, fixes #779Michel Weststratebefore adoptionbc35916
lines 96–105why, one step back96 [97 "@docusaurus/plugin-client-redirects",98 {99 createRedirects: function(existingPath) {100 return ["/docs" + existingPath]101 }102 }103 ]104 ]105}