From 95922cc678c7411ba0889ad5d89df04ceb31aa81 Mon Sep 17 00:00:00 2001 From: Hossein Mehrabi Date: Thu, 23 Mar 2023 21:28:37 +0330 Subject: [PATCH 1/2] add the white logo to static directory --- static/logo_white.svg | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 static/logo_white.svg diff --git a/static/logo_white.svg b/static/logo_white.svg new file mode 100644 index 0000000..826be49 --- /dev/null +++ b/static/logo_white.svg @@ -0,0 +1,3 @@ + + + From 6fbca7b30c48815ab0f4d51766cda0fc7053a200 Mon Sep 17 00:00:00 2001 From: Hossein Mehrabi Date: Thu, 23 Mar 2023 21:28:57 +0330 Subject: [PATCH 2/2] enable color mode switch button --- docusaurus.config.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 4d374cc..4ac64b6 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -39,12 +39,19 @@ const config = { }), ], ], - + staticDirectories: ["static"], themeConfig: /** @type {import('@acid-info/logos-docusaurus-preset').ThemeConfig} */ ({ + colorMode: { + defaultMode: "light", + disableSwitch: false, + }, navbar: { title: "Waku", + logo: { + srcDark: "logo_white.svg", + }, items: [ { type: 'docSidebar',