Skip to content

Commit 9bb9ce9

Browse files
committed
update ci, enable download notebooks
1 parent 0b85158 commit 9bb9ce9

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ jobs:
2525
shell: bash -l {0}
2626
run: |
2727
jb build lectures --path-output ./
28+
- name: Build Download Notebooks (sphinx-tojupyter)
29+
shell: bash -l {0}
30+
run: |
31+
jb build lectures --path-output ./ --builder=custom --custom-builder=jupyter
32+
mkdir _build/html/_notebooks
33+
cp _build/jupyter/*.ipynb _build/html/_notebooks
2834
- name: Preview Deploy to Netlify
2935
uses: nwtgck/actions-netlify@v1.1
3036
with:

environment.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ dependencies:
66
- anaconda=2020.07
77
- pip
88
- pip:
9-
- jupyter-book
9+
- git+https://github.com/executablebooks/jupyter-book.git
1010
- sphinxext-rediraffe
1111
- git+https://github.com/executablebooks/sphinx-multitoc-numbering
1212
- git+https://github.com/quantecon/quantecon-book-theme
1313
- git+https://github.com/executablebooks/sphinx-exercise.git
1414
- joblib
1515
- interpolation
16+
- git+https://github.com/QuantEcon/sphinx-tojupyter.git
1617

lectures/_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ sphinx:
4444
tojupyter_images_markdown: true
4545
tojupyter_template_path: ../templates/
4646
tojupyter_latex_template: latex.tpl
47-
tojupyter_latex_template_book: latex_book.tpl
47+
tojupyter_latex_template_book: latex_book.tpl

0 commit comments

Comments
 (0)