1- name : Deploy Documentation
1+ name : Deploy Documentation + Notebooks
22
33on :
44 push :
55 branches :
66 - main
77 - docs-website
8- - notebook_output
98 pull_request :
109 branches :
1110 - main
1211 workflow_dispatch :
1312
14- # Sets permissions for GitHub Pages deployment
1513permissions :
1614 contents : read
1715 pages : write
1816 id-token : write
1917
20- # Allow one concurrent deployment
2118concurrency :
2219 group : " pages"
2320 cancel-in-progress : true
@@ -28,15 +25,15 @@ jobs:
2825
2926 steps :
3027 - name : Checkout repository
31- uses : actions/checkout@v6
28+ uses : actions/checkout@v4
3229
3330 - name : Set up Python
34- uses : actions/setup-python@v6
31+ uses : actions/setup-python@v5
3532 with :
36- python-version : ' 3.14 '
33+ python-version : ' 3.12 '
3734
3835 - name : Install uv
39- uses : astral-sh/setup-uv@v7
36+ uses : astral-sh/setup-uv@v3
4037
4138 - name : Install dependencies
4239 run : |
@@ -47,14 +44,29 @@ jobs:
4744 sudo apt-get update
4845 sudo apt-get install -y pandoc
4946
50- - name : Build documentation
47+ - name : Build Sphinx documentation
5148 run : |
5249 uv run sphinx-build -b html docs/source build/html
5350
51+ - name : Setup Quarto
52+ uses : quarto-dev/quarto-actions/setup@v2
53+
54+ - name : Render Quarto notebooks
55+ run : |
56+ cd notebooks
57+ quarto render
58+
59+ - name : Combine Sphinx + Notebooks
60+ run : |
61+ mkdir -p final_site
62+ cp -r build/html/* final_site/
63+ mkdir -p final_site/notebooks
64+ cp -r notebooks/_site/* final_site/notebooks/
65+
5466 - name : Upload artifact
5567 uses : actions/upload-pages-artifact@v4
5668 with :
57- path : build/html
69+ path : final_site
5870
5971 deploy :
6072 needs : build
0 commit comments