Skip to content

Commit

Permalink
only skip running notebooks when SKIP_NOTEBOOKS env var is set
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeitsperre committed Jan 26, 2024
1 parent 347d5c0 commit 9157eda
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 9157eda

Please sign in to comment.