The default theme of Sphinx is very stylish and something different.
After all, I want to use the usual one.
https://github.com/readthedocs/sphinx_rtd_theme
This is a very frequently used item.
Apparently, this is a third-party theme, not an official theme, so you'll need to install it separately.
With Python pip applied to the directory where you want to use the theme
$ pip install sphinx-rtd-theme
To do.
After that, in the configuration file conf.py
conf.py
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.viewcode',
'sphinx.ext.todo',
'sphinx.ext.napoleon',
'sphinx_rtd_theme'
]
html_theme = 'sphinx_rtd_theme'
Just add extensions and html_theme.
sphinx-themes has a list of available themes, so It looks good to use it.
Recommended Posts