Skip to content

Commit bfcaad9

Browse files
Catalin-Stratulat-EricssonJamesMcDermott
authored andcommitted
Enable Light/Dark Mode Toggle (nephio-project#273)
Adding light/dark mode themes to documentation as user prefers. Toggle Button is in the top right corner and can be viewed in preview. It should auto adjust to the users browser settings --------- Co-authored-by: JamesMcDermott <james.j.mcdermott@ericsson.com>
1 parent 866c928 commit bfcaad9

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

assets/scss/_styles_project.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@import 'td/code-dark';

config.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ enableMissingTranslationPlaceholders = true
4545
unsafe= true
4646
[markup.highlight]
4747

48-
# See a complete list of available styles at https://xyproto.github.io/splash/docs/all.html
48+
# Setting no default style; allows style to auto adjust between light and dark default markdown themes
4949

50-
style = "tango"
50+
noClasses = false
5151

5252
# Uncomment if you want your chosen highlight style used for code blocks without a specified language
5353

@@ -124,6 +124,10 @@ offlineSearchMaxResults = 10
124124

125125
[params.ui]
126126

127+
# Enable Visibility of Light/Dark Mode Toggle
128+
129+
showLightDarkModeMenu = true
130+
127131
# Enable to show the side bar menu in its compact state.
128132

129133
sidebar_menu_compact = true

0 commit comments

Comments
 (0)