Skip to content

Commit 2765f95

Browse files
authored
enable publish of download notebooks (#102)
1 parent d99152c commit 2765f95

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,6 @@ jobs:
1515
python-version: 3.8
1616
environment-file: environment.yml
1717
activate-environment: lecture-python-programming
18-
- name: Install QuantEcon Book Theme
19-
shell: bash -l {0}
20-
run: |
21-
git clone https://github.com/quantecon/quantecon-book-theme
22-
cd quantecon-book-theme && git checkout download-nb
23-
python setup.py install
24-
cd .. && rm -r quantecon-book-theme
2518
- name: Display Conda Environment Versions
2619
shell: bash -l {0}
2720
run: conda list

.github/workflows/publish.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
miniconda-version: 'latest'
1818
python-version: 3.8
1919
environment-file: environment.yml
20-
activate-environment: qe-lectures
20+
activate-environment: lecture-python-programming
2121
- name: Display Conda Environment Versions
2222
shell: bash -l {0}
2323
run: conda list
@@ -28,6 +28,12 @@ jobs:
2828
shell: bash -l {0}
2929
run: |
3030
jb build lectures --path-output ./
31+
- name: Build Download Notebooks (sphinx-tojupyter)
32+
shell: bash -l {0}
33+
run: |
34+
jb build lectures --path-output ./ --builder=custom --custom-builder=jupyter
35+
mkdir _build/html/_notebooks
36+
cp _build/jupyter/*.ipynb _build/html/_notebooks
3137
- name: Deploy
3238
uses: peaceiris/actions-gh-pages@v3
3339
with:

environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ dependencies:
1313
- joblib
1414
- interpolation
1515
- git+https://github.com/QuantEcon/sphinx-tojupyter.git
16+
- git+https://github.com/QuantEcon/quantecon-book-theme.git
1617

0 commit comments

Comments
 (0)