Skip to content

Commit

Permalink
DOC: Switch to sphinx_immaterial theme
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeier committed Aug 13, 2024
1 parent ae3c9d9 commit de68731
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
22 changes: 22 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,28 @@

html_favicon = 'favicon.svg'
html_title = project + ' version ' + release
html_theme = 'sphinx_immaterial'
extensions.append('sphinx_immaterial')
html_theme_options = {
'palette': [
{
'media': '(prefers-color-scheme: light)',
'scheme': 'default',
'toggle': {
'icon': 'material/toggle-switch-off-outline',
'name': 'Switch to dark mode',
}
},
{
'media': '(prefers-color-scheme: dark)',
'scheme': 'slate',
'toggle': {
'icon': 'material/toggle-switch',
'name': 'Switch to light mode',
}
},
]
}

# -- Options for LaTeX output ---------------------------------------------

Expand Down
1 change: 1 addition & 0 deletions doc/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
sphinx-immaterial
ipykernel
numpy
matplotlib
Expand Down

0 comments on commit de68731

Please sign in to comment.