diff --git a/docs/conf.py b/docs/conf.py index 90706e5a..0bb07cc5 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -79,12 +79,8 @@ # Generate documentation from Jupyter notebooks. skip_notebooks = os.getenv("SKIP_NOTEBOOKS") -if skip_notebooks or os.getenv("READTHEDOCS_VERSION_TYPE") in [ - "branch", - "external", -]: - if skip_notebooks: - warnings.warn("Not executing notebooks.") +if skip_notebooks: + warnings.warn("Not executing notebooks.") nbsphinx_execute = "never" else: nbsphinx_execute = "auto"