From f99b517cea6a9bd2a882c6f781cb19704719efaa Mon Sep 17 00:00:00 2001 From: frank-zsy Date: Fri, 29 Nov 2024 22:53:16 +0800 Subject: [PATCH] feat: disable theme change Signed-off-by: frank-zsy --- docusaurus.config.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docusaurus.config.ts b/docusaurus.config.ts index af55ff2..f8b37dd 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -160,6 +160,11 @@ const config: Config = { copyright: `Copyright © ${new Date().getFullYear()} X-lab
浙ICP备18048778号-4`, }, + colorMode: { + defaultMode: 'light', + disableSwitch: true, + respectPrefersColorScheme: false, + }, prism: { theme: prismThemes.github, darkTheme: prismThemes.dracula,