Skip to content

Commit de621ad

Browse files
authored
[download notebooks] Updates to support Download Notebooks (#43)
* save downloadnb as artifacts * TMP: build from master to test latest additions fix issues
1 parent 8b26847 commit de621ad

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ jobs:
3232
shell: bash -l {0}
3333
run: |
3434
jb build lectures --path-output ./ --builder=custom --custom-builder=jupyter
35+
zip -r download-notebooks.zip _build/jupyter
36+
- uses: actions/upload-artifact@v2
37+
with:
38+
name: download-notebooks
39+
path: download-notebooks.zip
3540
- name: Copy Download Notebooks for GH-PAGES
3641
shell: bash -l {0}
3742
run: |
@@ -53,6 +58,7 @@ jobs:
5358
# run: |
5459
# mkdir -p _build/lecture-python.notebooks
5560
# cp -a _notebook_repo/. _build/lecture-python.notebooks
61+
# cp environment.yml _build/lecture-python.notebooks
5662
# cp _build/jupyter/*.ipynb _build/lecture-python.notebooks
5763
# ls -a _build/lecture-python.notebooks
5864
# - name: Commit latest notebooks to lecture-python.notebooks

_notebook_repo/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# lecture-python.notebooks
2+
3+
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/QuantEcon/lecture-python.notebooks/master)
4+
5+
Notebooks for https://python.quantecon.org
6+
7+
**Note:** This README should be edited [here](https://github.com/quantecon/lecture-python.myst/_notebook_repo)

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ dependencies:
1313
- sphinx-exercise
1414
- joblib
1515
- interpolation
16-
- sphinx-tojupyter
16+
- git+https://github.com/quantecon/sphinx-tojupyter
1717

0 commit comments

Comments
 (0)