From e8f94d91678a2beec631aee5d6d603fd4f5528f5 Mon Sep 17 00:00:00 2001 From: Henrik Finsberg Date: Mon, 3 Oct 2022 11:17:34 +0200 Subject: [PATCH 1/2] Do not build book within each iteration of demo conversion in Makefile --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f024e76..88c798a 100644 --- a/Makefile +++ b/Makefile @@ -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 From 104aa69f1546663ea6c5f1d69f49a5f754f226cd Mon Sep 17 00:00:00 2001 From: Henrik Finsberg Date: Mon, 3 Oct 2022 11:19:59 +0200 Subject: [PATCH 2/2] Chache notebooks rather than forcing execution every time we rebuild the docs --- docs/_config.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/_config.yml b/docs/_config.yml index 15df70a..b9be07b 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -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: