From 2bb82c00529c0d697bd7610e010bccb7cda4edc4 Mon Sep 17 00:00:00 2001 From: Catalin Stratulat Date: Wed, 15 Oct 2025 11:14:05 +0100 Subject: [PATCH 1/2] adding dark mode to documentation --- assets/scss/_styles_project.scss | 1 + config.toml | 10 +++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 assets/scss/_styles_project.scss diff --git a/assets/scss/_styles_project.scss b/assets/scss/_styles_project.scss new file mode 100644 index 00000000..9b665b0f --- /dev/null +++ b/assets/scss/_styles_project.scss @@ -0,0 +1 @@ +@import 'td/code-dark'; \ No newline at end of file diff --git a/config.toml b/config.toml index 8da5792b..a5aa0d19 100644 --- a/config.toml +++ b/config.toml @@ -45,9 +45,9 @@ enableMissingTranslationPlaceholders = true unsafe= true [markup.highlight] - # See a complete list of available styles at https://xyproto.github.io/splash/docs/all.html - - style = "tango" + # Setting no default style and allows style to auto adjust between night and dark default markdown themes + + noClasses = false # Uncomment if you want your chosen highlight style used for code blocks without a specified language @@ -124,6 +124,10 @@ offlineSearchMaxResults = 10 [params.ui] +# Enable Visibility of Light/Dark Mode Toggle + +showLightDarkModeMenu = true + # Enable to show the side bar menu in its compact state. sidebar_menu_compact = true From 67a51a9381ddc0e2b51a2937ff890b3e8adb00cf Mon Sep 17 00:00:00 2001 From: Catalin Stratulat <159934629+Catalin-Stratulat-Ericsson@users.noreply.github.com> Date: Wed, 15 Oct 2025 11:37:15 +0100 Subject: [PATCH 2/2] Update config.toml to fix typo and mispelling Co-authored-by: JamesMcDermott --- config.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.toml b/config.toml index a5aa0d19..c094a82b 100644 --- a/config.toml +++ b/config.toml @@ -45,8 +45,8 @@ enableMissingTranslationPlaceholders = true unsafe= true [markup.highlight] - # Setting no default style and allows style to auto adjust between night and dark default markdown themes - + # Setting no default style; allows style to auto adjust between light and dark default markdown themes + noClasses = false # Uncomment if you want your chosen highlight style used for code blocks without a specified language