Skip to content

Commit 7fd4b6e

Browse files
DOC: Attempt at fixing theme on RTD (#1019)
1 parent 3641273 commit 7fd4b6e

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

docs/conf.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
import os
2121
import sys
2222

23+
import sphinx_rtd_theme
24+
2325
sys.path.insert(0, os.path.abspath('..'))
2426

2527

@@ -110,7 +112,6 @@
110112
# The theme to use for HTML and HTML Help pages. See the documentation for
111113
# a list of builtin themes.
112114
#
113-
html_theme = 'default'
114115

115116
# Theme options are theme-specific and customize the look and feel of a theme
116117
# further. For a list of options available for each theme, see the
@@ -126,10 +127,8 @@ def setup(app):
126127
# so a file named "default.css" will overwrite the builtin "default.css".
127128
html_static_path = ['_static']
128129

129-
if not on_rtd: # only import and set the theme if we're building docs locally
130-
import sphinx_rtd_theme
131-
html_theme = 'sphinx_rtd_theme'
132-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
130+
html_theme = 'sphinx_rtd_theme'
131+
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
133132

134133

135134
# -- Options for HTMLHelp output ------------------------------------------

0 commit comments

Comments
 (0)