From 3c7171aa15e62f2dc47f618c612152dcd9257127 Mon Sep 17 00:00:00 2001 From: Andrews Arokiam Date: Mon, 16 Oct 2023 16:29:17 +0530 Subject: [PATCH] Added dark and light mode toggle. Signed-off-by: Andrews Arokiam --- docs/stylesheets/extra.css | 4 +++- mkdocs.yml | 14 +++++++++++++- overrides/main.html | 2 +- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css index 09c1d86e5..21e9ea064 100644 --- a/docs/stylesheets/extra.css +++ b/docs/stylesheets/extra.css @@ -1,7 +1,6 @@ :root { --md-primary-fg-color: #1a7dc9; --home-color: #0071c7; - --nav-item-color: #4d4d4d; } .md-clipboard { @@ -255,3 +254,6 @@ background: rgb(228, 255, 218); } +[data-md-color-scheme=slate] #release-update { + color: #756A54; +} \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index cf171d1c3..ddc92dd11 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -127,6 +127,19 @@ theme: - navigation.tracking - navigation.tabs.sticky - navigation.top + palette: + # Palette toggle for light mode + - scheme: default + toggle: + icon: material/weather-night + name: Switch to dark mode + + # Palette toggle for dark mode + - scheme: slate + toggle: + icon: material/weather-sunny + name: Switch to light mode + markdown_extensions: - markdown_include.include: @@ -165,7 +178,6 @@ plugins: css_dir: css javascript_dir: js - swagger-ui-tag: - background: White docExpansion: none filter: "" syntaxHighlightTheme: monokai diff --git a/overrides/main.html b/overrides/main.html index f57d96775..335adba71 100644 --- a/overrides/main.html +++ b/overrides/main.html @@ -2,6 +2,6 @@ {% block announce %}

- KServe v0.11 is Released, Read blog >> + KServe v0.10 is Released, Read blog >>

{% endblock %}