Skip to content

Commit

Permalink
add default dark
Browse files Browse the repository at this point in the history
  • Loading branch information
dinki authored Dec 1, 2024
1 parent 694cc9b commit c0da019
Showing 1 changed file with 18 additions and 22 deletions.
40 changes: 18 additions & 22 deletions wiki/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -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',
Expand All @@ -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',
Expand All @@ -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],
Expand Down Expand Up @@ -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',
Expand All @@ -136,7 +127,7 @@ const config = {
{
label: 'Extend Voice Functionality',
to: '/docs/extend-functionality',
}
},
],
},
{
Expand All @@ -149,7 +140,7 @@ const config = {
{
label: 'View Assist Discussions',
href: 'https://github.com/dinki/View-Assist/discussions',
},
},
],
},
{
Expand All @@ -168,6 +159,11 @@ const config = {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
colorMode: {
defaultMode: 'dark',
disableSwitch: false,
respectPrefersColorScheme: false,
},
}),
};

Expand Down

0 comments on commit c0da019

Please sign in to comment.