MilesCranmer commited on
Commit
a8a7154
1 Parent(s): 8c0122a

Add dark mode

Browse files
Files changed (1) hide show
  1. mkdocs.yml +13 -2
mkdocs.yml CHANGED
@@ -3,7 +3,17 @@ theme:
3
  name: material
4
  palette:
5
  # Light mode:
6
- - scheme: pysr
 
 
 
 
 
 
 
 
 
 
7
  logo: assets/pysr_logo_reduced.svg
8
  icon:
9
  repo: fontawesome/brands/github-alt
@@ -34,7 +44,7 @@ plugins:
34
  default_handler: python
35
  handlers:
36
  python:
37
- paths: [pysr]
38
  options:
39
  # https://mkdocstrings.github.io/python/usage/#finding-modules
40
  docstring_style: numpy
@@ -42,6 +52,7 @@ plugins:
42
  # docstring_options
43
  # separate_signature: True
44
  show_bases: false
 
45
 
46
  markdown_extensions:
47
  - toc:
 
3
  name: material
4
  palette:
5
  # Light mode:
6
+ - media: "(prefers-color-scheme: light)"
7
+ scheme: pysr
8
+ toggle:
9
+ icon: material/toggle-switch
10
+ name: Switch to dark mode
11
+ - media: "(prefers-color-scheme: dark)"
12
+ scheme: slate
13
+ toggle:
14
+ icon: material/toggle-switch-off-outline
15
+ name: Switch to light mode
16
+
17
  logo: assets/pysr_logo_reduced.svg
18
  icon:
19
  repo: fontawesome/brands/github-alt
 
44
  default_handler: python
45
  handlers:
46
  python:
47
+ # paths: [pysr]
48
  options:
49
  # https://mkdocstrings.github.io/python/usage/#finding-modules
50
  docstring_style: numpy
 
52
  # docstring_options
53
  # separate_signature: True
54
  show_bases: false
55
+ heading_level: 2
56
 
57
  markdown_extensions:
58
  - toc: