Skip to content

Commit 5ddf706

Browse files
Add dark mode feature in documentation (AtsushiSakai#842)
1 parent ca82a4b commit 5ddf706

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
'sphinx.ext.imgconverter',
4747
'IPython.sphinxext.ipython_console_highlighting',
4848
'sphinx_copybutton',
49+
'sphinx_rtd_dark_mode',
4950
]
5051

5152
# Add any paths that contain templates here, relative to this directory.
@@ -86,7 +87,7 @@
8687
if on_rtd:
8788
html_theme = 'default'
8889
else:
89-
html_theme = 'sphinx_rtd_theme'
90+
html_theme = 'sphinx_rtd_light_them'
9091

9192
# Theme options are theme-specific and customize the look and feel of a theme
9293
# further. For a list of options available for each theme, see the

docs/doc_requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ sphinx_rtd_theme == 1.0.0
33
IPython == 8.10.0 # For sphinx documentation
44
sphinxcontrib-napoleon == 0.7 # For auto doc
55
sphinx-copybutton
6+
sphinx-rtd-dark-mode

0 commit comments

Comments
 (0)