Add dark mode feature in documentation (#842)

This commit is contained in:
Faizan Alam
2023-05-28 13:52:35 +05:30
committed by GitHub
parent ca82a4b1df
commit 5ddf70615e
2 changed files with 3 additions and 1 deletions

View File

@@ -46,6 +46,7 @@ extensions = [
'sphinx.ext.imgconverter',
'IPython.sphinxext.ipython_console_highlighting',
'sphinx_copybutton',
'sphinx_rtd_dark_mode',
]
# Add any paths that contain templates here, relative to this directory.
@@ -86,7 +87,7 @@ on_rtd = os.environ.get('READTHEDOCS') == 'True'
if on_rtd:
html_theme = 'default'
else:
html_theme = 'sphinx_rtd_theme'
html_theme = 'sphinx_rtd_light_them'
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the

View File

@@ -3,3 +3,4 @@ sphinx_rtd_theme == 1.0.0
IPython == 8.10.0 # For sphinx documentation
sphinxcontrib-napoleon == 0.7 # For auto doc
sphinx-copybutton
sphinx-rtd-dark-mode