Skip to content

Commit

Permalink
Added dark and light mode toggle.
Browse files Browse the repository at this point in the history
Signed-off-by: Andrews Arokiam <[email protected]>
  • Loading branch information
andyi2it committed Nov 6, 2023
1 parent c8f6a1e commit 3c7171a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
4 changes: 3 additions & 1 deletion docs/stylesheets/extra.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
:root {
--md-primary-fg-color: #1a7dc9;
--home-color: #0071c7;
--nav-item-color: #4d4d4d;
}

.md-clipboard {
Expand Down Expand Up @@ -255,3 +254,6 @@
background: rgb(228, 255, 218);
}

[data-md-color-scheme=slate] #release-update {
color: #756A54;
}
14 changes: 13 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -165,7 +178,6 @@ plugins:
css_dir: css
javascript_dir: js
- swagger-ui-tag:
background: White
docExpansion: none
filter: ""
syntaxHighlightTheme: monokai
Expand Down
2 changes: 1 addition & 1 deletion overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

{% block announce %}
<h1>
<b>KServe v0.11 is Released</b>, <a href="/website/0.11/blog/articles/2023-10-08-KServe-0.11-release/">Read blog &gt;&gt;</a>
<b id="release-update">KServe v0.10 is Released,</b> <a href="/website/0.10/blog/articles/2023-02-05-KServe-0.10-release/">Read blog &gt;&gt;</a>
</h1>
{% endblock %}

0 comments on commit 3c7171a

Please sign in to comment.