Skip to content

Commit a0da593

Browse files
authored
Merge pull request #317 from php-http/rtd-theme
configure theme as documented
2 parents 0e99354 + 1ea7b8c commit a0da593

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

conf.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
4141
# ones.
4242
extensions = [
43-
'sphinxcontrib.spelling'
43+
'sphinxcontrib.spelling',
44+
'sphinx_rtd_theme',
4445
]
4546

4647
# Spelling configuration
@@ -122,11 +123,7 @@
122123

123124
# -- Options for HTML output ----------------------------------------------
124125

125-
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
126-
if not on_rtd: # only import and set the theme if we're building docs locally
127-
import sphinx_rtd_theme
128-
html_theme = 'sphinx_rtd_theme'
129-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
126+
html_theme = 'sphinx_rtd_theme'
130127

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

0 commit comments

Comments
 (0)