Skip to content

Commit f0cffca

Browse files
authored
Build book only once and cache notebooks (#34)
* Do not build book within each iteration of demo conversion in Makefile * Chache notebooks rather than forcing execution every time we rebuild the docs
1 parent e1624a2 commit f0cffca

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ doc: # Generate Sphinx HTML documentation, including API docs
66
# We use --set-kernel with jupytext to make it possible for binder to pick it up
77
@for demo in ${DEMOS}; do \
88
jupytext --to=ipynb --set-kernel=python3 demo/$$demo.py --output=docs/$$demo.ipynb ;\
9-
jupyter book build -W docs ;\
109
done
10+
jupyter book build -W docs
1111

1212
clean-pytest: # Remove output from pytest
1313
rm -rf .pytest_cache

docs/_config.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ copyright: "2022"
99
# Force re-execution of notebooks on each build.
1010
# See https://jupyterbook.org/content/execute.html
1111
execute:
12-
execute_notebooks: force
13-
12+
execute_notebooks: cache
1413

1514
# Information about where the book exists on the web
1615
repository:

0 commit comments

Comments
 (0)