|
40 | 40 | # Add any Sphinx extension module names here, as strings. They can be
|
41 | 41 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
42 | 42 | # ones.
|
43 | | -extensions = ["sphinx.ext.autodoc", "recommonmark"] |
| 43 | +extensions = ["sphinx.ext.autodoc", "recommonmark", "sphinx_rtd_theme"] |
44 | 44 | autodoc_member_order = "bysource"
|
45 | 45 | autodoc_inherit_docstrings = False
|
46 | 46 |
|
|
122 | 122 |
|
123 | 123 | # The theme to use for HTML and HTML Help pages. See the documentation for
|
124 | 124 | # a list of builtin themes.
|
125 | | -html_theme = "default" |
126 | | - |
127 | | -on_rtd = os.environ.get("READTHEDOCS", None) == "True" |
128 | | - |
129 | | -if not on_rtd: # only import and set the theme if we're building docs locally |
130 | | - import sphinx_rtd_theme |
131 | | - |
132 | | - html_theme = "sphinx_rtd_theme" |
133 | | - html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] |
| 125 | +html_theme = "sphinx_rtd_theme" |
134 | 126 |
|
135 | 127 | # Theme options are theme-specific and customize the look and feel of a theme
|
136 | 128 | # further. For a list of options available for each theme, see the
|
|
0 commit comments