diff --git a/docs/conf.py b/docs/conf.py index 1a3a458..6955667 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -120,11 +120,10 @@ intersphinx_mapping = {'python': ('https://docs.python.org/', None)} # a list of builtin themes. on_rtd = os.environ.get('READTHEDOCS', None) == 'True' -if on_rtd: - html_theme = 'default' -else: # only import and set the theme if we're building docs locally +html_theme = 'sphinx_rtd_theme' + +if not on_rtd: # only import and set the theme if we're building docs locally import sphinx_rtd_theme - html_theme = 'sphinx_rtd_theme' html_theme_path = ['_themes', sphinx_rtd_theme.get_html_theme_path()]