mirror of
https://github.com/AtsushiSakai/PythonRobotics.git
synced 2026-01-13 14:48:02 -05:00
Add dark mode feature in documentation (#842)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user