Browse Source

2.2 breaking changes

windhamdavid 2 years ago
parent
commit
1b27293c15
2 changed files with 10 additions and 23 deletions
  1. 10 11
      docusaurus.config.js
  2. 0 12
      sidebarsnotes.js

+ 10 - 11
docusaurus.config.js

@@ -9,6 +9,10 @@ module.exports = {
   favicon: 'img/favicon.ico',
   favicon: 'img/favicon.ico',
   organizationName: 'windhamdavid',
   organizationName: 'windhamdavid',
   projectName: 'til',
   projectName: 'til',
+  markdown: {
+    mermaid: true,
+  },
+  themes: ['@docusaurus/theme-mermaid'],
   plugins: [
   plugins: [
     require.resolve('docusaurus-plugin-matomo'),
     require.resolve('docusaurus-plugin-matomo'),
     require.resolve('docusaurus-lunr-search'),
     require.resolve('docusaurus-lunr-search'),
@@ -42,24 +46,19 @@ module.exports = {
       jsLoader: 'matomo.js',
       jsLoader: 'matomo.js',
     },
     },
     image: 'img/zw.png',
     image: 'img/zw.png',
-    hideableSidebar: true,
+    docs: {
+      sidebar: {
+        hideable: true,
+      },
+    },
     prism: {
     prism: {
       additionalLanguages: ['shell-session'],
       additionalLanguages: ['shell-session'],
+      additionalLanguages: ['swift'],
     },
     },
     colorMode: {
     colorMode: {
       defaultMode: 'dark',
       defaultMode: 'dark',
       disableSwitch: false,
       disableSwitch: false,
       respectPrefersColorScheme: false,
       respectPrefersColorScheme: false,
-      switchConfig: {
-        darkIcon: '\u2800',
-        darkIconStyle: {
-          marginLeft: '1px',
-        },
-        lightIcon: '\u2800',
-        lightIconStyle: {
-          marginLeft: '1px',
-        },
-      },
     },
     },
     navbar: {
     navbar: {
       hideOnScroll: true,
       hideOnScroll: true,

+ 0 - 12
sidebarsnotes.js

@@ -21,17 +21,5 @@ module.exports = {
         'projects/ham'
         'projects/ham'
       ],
       ],
     },
     },
-    {
-      type: 'category',
-      label: 'Space',
-      items: [
-      ],
-    },
-    {
-      type: 'category',
-      label: 'Time',
-      items: [
-      ],
-    },
   ],
   ],
 };
 };