diff --git a/wiki/docusaurus.config.js b/wiki/docusaurus.config.js index d3ca4ad3..dde00430 100644 --- a/wiki/docusaurus.config.js +++ b/wiki/docusaurus.config.js @@ -1,12 +1,3 @@ -// @ts-check -// `@type` JSDoc annotations allow editor autocompletion and type checking -// (when paired with `@ts-check`). -// There are various equivalent ways to declare your Docusaurus config. -// See: https://docusaurus.io/docs/api/docusaurus-config - -import {themes as prismThemes} from 'prism-react-renderer'; -import tailwindPlugin from './plugins/tailwind-plugin.cjs'; - /** @type {import('@docusaurus/types').Config} */ const config = { title: 'View Assist', @@ -23,7 +14,7 @@ const config = { // If you aren't using GitHub pages, you don't need these. organizationName: 'dinki', // Usually your GitHub org/user name. projectName: 'View-Assist', // Usually your repo name. - deploymentBranch:'gh-pages', + deploymentBranch: 'gh-pages', trailingSlash: false, onBrokenLinks: 'throw', @@ -42,31 +33,31 @@ const config = { tagName: 'link', attributes: { rel: 'preconnect', - href: 'https://fonts.googleapis.com' - } + href: 'https://fonts.googleapis.com', + }, }, { tagName: 'link', attributes: { rel: 'preconnect', href: 'https://fonts.gstatic.com', - crossorigin: 'anonymous' - } + crossorigin: 'anonymous', + }, }, { tagName: 'link', attributes: { rel: 'stylesheet', - href: 'https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap' - } + href: 'https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap', + }, }, { tagName: 'link', attributes: { rel: 'stylesheet', - href: 'https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap' - } - } + href: 'https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap', + }, + }, ], plugins: [tailwindPlugin], @@ -115,7 +106,7 @@ const config = { position: 'left', label: 'Docs', }, - {to: '/blog', label: 'Blog', position: 'left'}, + { to: '/blog', label: 'Blog', position: 'left' }, { href: 'https://github.com/dinki/View-Assist', label: 'GitHub', @@ -136,7 +127,7 @@ const config = { { label: 'Extend Voice Functionality', to: '/docs/extend-functionality', - } + }, ], }, { @@ -149,7 +140,7 @@ const config = { { label: 'View Assist Discussions', href: 'https://github.com/dinki/View-Assist/discussions', - }, + }, ], }, { @@ -168,6 +159,11 @@ const config = { theme: prismThemes.github, darkTheme: prismThemes.dracula, }, + colorMode: { + defaultMode: 'dark', + disableSwitch: false, + respectPrefersColorScheme: false, + }, }), };