Skip to content

Commit 3c7171a

Browse files
committed
Added dark and light mode toggle.
Signed-off-by: Andrews Arokiam <[email protected]>
1 parent c8f6a1e commit 3c7171a

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

docs/stylesheets/extra.css

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
:root {
22
--md-primary-fg-color: #1a7dc9;
33
--home-color: #0071c7;
4-
--nav-item-color: #4d4d4d;
54
}
65

76
.md-clipboard {
@@ -255,3 +254,6 @@
255254
background: rgb(228, 255, 218);
256255
}
257256

257+
[data-md-color-scheme=slate] #release-update {
258+
color: #756A54;
259+
}

mkdocs.yml

+13-1
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,19 @@ theme:
127127
- navigation.tracking
128128
- navigation.tabs.sticky
129129
- navigation.top
130+
palette:
131+
# Palette toggle for light mode
132+
- scheme: default
133+
toggle:
134+
icon: material/weather-night
135+
name: Switch to dark mode
136+
137+
# Palette toggle for dark mode
138+
- scheme: slate
139+
toggle:
140+
icon: material/weather-sunny
141+
name: Switch to light mode
142+
130143

131144
markdown_extensions:
132145
- markdown_include.include:
@@ -165,7 +178,6 @@ plugins:
165178
css_dir: css
166179
javascript_dir: js
167180
- swagger-ui-tag:
168-
background: White
169181
docExpansion: none
170182
filter: ""
171183
syntaxHighlightTheme: monokai

overrides/main.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
{% block announce %}
44
<h1>
5-
<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>
5+
<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>
66
</h1>
77
{% endblock %}

0 commit comments

Comments
 (0)