Skip to content

Commit 11d1048

Browse files
authored
doc: Simplify building docs without notebook execution (#2873)
For testing documentation builds it's annoying to wait for notebook execution to complete or modifying the configuration file. With this change, setting an environment variable `AMICI_NO_NB_EXEC` to any value will skip notebook execution when building the documentation.
1 parent 5a4cd8e commit 11d1048

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

doc/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@ def install_doxygen():
227227
"""
228228
)
229229

230+
nbsphinx_execute = "never" if os.environ.get("AMICI_NO_NB_EXEC") else "auto"
231+
230232
# Add any paths that contain templates here, relative to this directory.
231233
templates_path = ["_templates"]
232234

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ envlist =
66
doc
77

88
[testenv]
9-
passenv = AMICI_PARALLEL_COMPILE,CC,CXX,GITHUB_ACTIONS
9+
passenv = AMICI_PARALLEL_COMPILE,CC,CXX,GITHUB_ACTIONS,AMICI_NO_NB_EXEC
1010

1111
[testenv:doc]
1212
description =

0 commit comments

Comments
 (0)