File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -265,19 +265,9 @@ def autoapi_prepare_jinja_env(jinja_env):
265265
266266# -- Options for HTML output ----------------------------------------------
267267
268- # on_rtd is whether we are on readthedocs.org
269- on_rtd = os .environ .get ('READTHEDOCS' , None ) == 'True'
270-
271- if not on_rtd : # only import and set the theme if we're building docs locally
272- try :
273- import sphinx_rtd_theme
274- html_theme = 'sphinx_rtd_theme'
275- html_theme_path = [sphinx_rtd_theme .get_html_theme_path (), '.' ]
276- except :
277- html_theme = 'default'
278- html_theme_path = ['.' ]
279- else :
280- html_theme_path = ['.' ]
268+ import sphinx_rtd_theme
269+ html_theme = 'sphinx_rtd_theme'
270+ html_theme_path = [sphinx_rtd_theme .get_html_theme_path (), '.' ]
281271
282272# Theme options are theme-specific and customize the look and feel of a theme
283273# further. For a list of options available for each theme, see the
You can’t perform that action at this time.
0 commit comments