A clean variant of the read the docs theme with grayscale styling and optional light mode / dark mode toggling. This theme is currently used with the proplot and climopy projects.
Install with pip install sphinx-rtd-light-dark
. Then in your conf.py
file,
add the entry 'sphinx_rtd_light_dark'
to the extensions
list,
and set html_theme
to 'sphinx_rtd_light_dark'
.
Example conf.py
:
extensions = [
...
'sphinx_rtd_light_dark',
...
]
html_theme = 'sphinx_rtd_light_dark'