Skip to content
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
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,15 @@ jobs:
branch: main
name: build-cache
path: _build
# Prune the restored _build/html so files deleted from source stop being
# published: sphinx copies html_static_path in but never removes stale
# assets. `jb clean . --html` removes exactly _build/html, leaving
# .jupyter_cache (the expensive execution cache), _build/latex and
# _build/jupyter untouched. Must run BEFORE the PDF/notebook steps below,
# which stage output INTO _build/html.
- name: Prune restored HTML (drop stale assets deleted from source)
shell: bash -l {0}
run: jb clean . --html
Comment thread
mmcky marked this conversation as resolved.
# Build Assets (Download Notebooks and PDF via LaTeX)
- name: Build Download Notebooks (sphinx-tojupyter)
shell: bash -l {0}
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,15 @@ jobs:
branch: main
name: build-cache
path: _build
# Prune the restored _build/html so files deleted from source stop being
# published: sphinx copies html_static_path in but never removes stale
# assets. `jb clean . --html` removes exactly _build/html, leaving
# .jupyter_cache (the expensive execution cache), _build/latex and
# _build/jupyter untouched. Must run BEFORE the PDF/notebook steps below,
# which stage output INTO _build/html.
- name: Prune restored HTML (drop stale assets deleted from source)
shell: bash -l {0}
run: jb clean . --html
Comment thread
mmcky marked this conversation as resolved.
# Build Assets (Download Notebooks, PDF via LaTeX)
- name: Build PDF from LaTeX
shell: bash -l {0}
Expand Down
Loading