Skip to content

Commit

Permalink
Update docusaurus.config.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
xceedsoftware authored Jul 24, 2024
1 parent 9209f04 commit ab6828d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Xceed-Words-Tutorials/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const config: Config = {

url: 'https://xceedsoftware.github.io',
baseUrl: '/Xceed-Words-Tutorials/',
trailingSlash: true,
trailingSlash: false,

organizationName: 'xceedsoftware',
projectName: 'Xceed-Words-Tutorials',
Expand All @@ -36,7 +36,7 @@ const config: Config = {
editUrl: 'https://github.com/xceedsoftware/Xceed-Words-Tutorials/edit/main/blog/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
customCss: require.resolve('./src/css/custom.css'), // Ensure this path is correct
},
} satisfies Preset.Options,
],
Expand Down Expand Up @@ -114,6 +114,11 @@ const config: Config = {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
colorMode: {
defaultMode: 'dark', // Set the default theme to dark
disableSwitch: false, // Enable the theme switch
respectPrefersColorScheme: false, // Ignore the user's system preference
},
} satisfies Preset.ThemeConfig,
};

Expand Down

0 comments on commit ab6828d

Please sign in to comment.