Skip to content

Commit 50b40fa

Browse files
docs: add darkreader meta tag
This makes DarkReader respect dark mode on the page as that is set to auto.
1 parent 50eb55d commit 50b40fa

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

docs/overrides/main.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{% extends "main.html" %}
2+
3+
{% block extrahead %}
4+
<meta name="darkreader-lock">
5+
{% endblock %}

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ theme:
99
name: shadcn
1010
icon: assets/logo-standalone.svg
1111
favicon: assets/logo-standalone.svg
12+
custom_dir: docs/overrides
1213
show_title: true
1314
show_stargazers: false
1415
pygments_style:

0 commit comments

Comments
 (0)