Skip to content

Commit

Permalink
Set dark theme as default (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
arpita0911patel authored Sep 10, 2024
2 parents b931d53 + a0334e4 commit d37d631
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,25 @@ const config = {
}),
],
],
// plugins: ["docusaurus-plugin-search-local"],
// search: {
// index: ["docs"],
// numberShown: 5,
// language: "en",
// },
// markdown: {
// mermaid: true,
// },
// themes: [
// '@docusaurus/theme-mermaid', // <-- Add this line to enable Mermaid
// ],
plugins: [[ require.resolve('docusaurus-lunr-search'), {
languages: ['en'] // language codes
}]],

themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
(
{
colorMode: {
defaultMode: 'dark',
disableSwitch: false,
respectPrefersColorScheme: false,
},
docs: {
sidebar: {
autoCollapseCategories: false,
Expand Down Expand Up @@ -187,11 +194,12 @@ plugins: [[ require.resolve('docusaurus-lunr-search'), {
<br><br><br>
Copyright © ${new Date().getFullYear()} CIROH - The University of Alabama`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
// prism: {
// theme: prismThemes.github,
// darkTheme: prismThemes.dracula,
// },
}),

};

module.exports = config;

0 comments on commit d37d631

Please sign in to comment.