diff --git a/docs/source/conf.py b/docs/source/conf.py index 9c588628027..6fc6ed53f76 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -126,14 +126,10 @@ # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. -on_rtd = os.environ.get('READTHEDOCS', None) == 'True' - -# Use RTD theme locally -html_theme = 'default' -if not on_rtd: - import sphinx_rtd_theme - html_theme = 'sphinx_rtd_theme' - html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] + +import sphinx_rtd_theme +html_theme = 'sphinx_rtd_theme' +html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the