diff --git a/docs/conf.py b/docs/conf.py index f2962b06d..7f1a3217e 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -320,8 +320,11 @@ texinfo_documents = [ #texinfo_no_detailmenu = False # custom theme based on sphinx_rtd_theme -html_theme = "sphinx_rtd_theme_chm_friendly" -html_theme_path = ["."] +if os.path.isdir('sphinx_rtd_theme_chm_friendly'): + html_theme = "sphinx_rtd_theme_chm_friendly" + html_theme_path = ["."] +else: + html_theme = "sphinx_rtd_theme" html_context = { 'show_source': False,