From 9157eda6ba728e98dd9d730869b2d4b82713323b Mon Sep 17 00:00:00 2001 From: Zeitsperre <10819524+Zeitsperre@users.noreply.github.com> Date: Fri, 26 Jan 2024 16:42:36 -0500 Subject: [PATCH] only skip running notebooks when SKIP_NOTEBOOKS env var is set --- docs/conf.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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"