Skip to content

Build book only once and cache notebooks #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ doc: # Generate Sphinx HTML documentation, including API docs
# We use --set-kernel with jupytext to make it possible for binder to pick it up
@for demo in ${DEMOS}; do \
jupytext --to=ipynb --set-kernel=python3 demo/$$demo.py --output=docs/$$demo.ipynb ;\
jupyter book build -W docs ;\
done
jupyter book build -W docs

clean-pytest: # Remove output from pytest
rm -rf .pytest_cache
Expand Down
3 changes: 1 addition & 2 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ copyright: "2022"
# Force re-execution of notebooks on each build.
# See https://jupyterbook.org/content/execute.html
execute:
execute_notebooks: force

execute_notebooks: cache

# Information about where the book exists on the web
repository:
Expand Down