Skip to content

Commit d3d2962

Browse files
authored
migrate to use jupyter-book to build and publish (#63)
1 parent 7b7bfa1 commit d3d2962

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+110
-816
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build Project [myst]
1+
name: Build Project [using jupyter-book]
22
on: [push]
33
jobs:
44
tests:
@@ -12,18 +12,27 @@ jobs:
1212
auto-update-conda: true
1313
auto-activate-base: true
1414
miniconda-version: 'latest'
15-
python-version: 3.7
15+
python-version: 3.8
1616
environment-file: environment.yml
1717
activate-environment: qe-lectures
18-
- name: Install sphinxcontrib-tomyst
18+
- name: Install quantecon-book-theme
1919
shell: bash -l {0}
2020
run: |
21-
git clone https://github.com/mmcky/sphinxcontrib-tomyst
22-
cd sphinxcontrib-tomyst && python setup.py install
21+
git clone https://github.com/QuantEcon/quantecon-book-theme
22+
cd quantecon-book-theme
23+
python setup.py install
24+
cd ../ && rm -rf quantecon-book-theme
25+
- name: Install sphinx-multitoc-numbering
26+
shell: bash -l {0}
27+
run: |
28+
git clone https://github.com/executablebooks/sphinx-multitoc-numbering.git
29+
cd sphinx-multitoc-numbering
30+
python setup.py install
31+
cd ../ && rm -rf sphinx-multitoc-numbering
2332
- name: Install Dependencies
2433
shell: bash -l {0}
2534
run: |
26-
pip install sphinx-book-theme myst-nb
35+
pip install jupyter-book
2736
- name: Display Conda Environment Versions
2837
shell: bash -l {0}
2938
run: conda list
@@ -33,8 +42,7 @@ jobs:
3342
- name: Build HTML
3443
shell: bash -l {0}
3544
run: |
36-
pwd
37-
make html
45+
jb build lectures --path-output ./
3846
- name: Preview Deploy to Netlify
3947
uses: nwtgck/actions-netlify@v1.1
4048
with:

.github/workflows/publish.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build & Publish
1+
name: Build & Publish to GH Pages
22
on:
33
push:
44
branches:
@@ -15,13 +15,27 @@ jobs:
1515
auto-update-conda: true
1616
auto-activate-base: true
1717
miniconda-version: 'latest'
18-
python-version: 3.7
18+
python-version: 3.8
1919
environment-file: environment.yml
2020
activate-environment: qe-lectures
21-
- name: Install Build Dependencies
21+
- name: Install quantecon-book-theme
2222
shell: bash -l {0}
2323
run: |
24-
pip install sphinx-book-theme myst-nb
24+
git clone https://github.com/QuantEcon/quantecon-book-theme
25+
cd quantecon-book-theme
26+
python setup.py install
27+
cd ../ && rm -rf quantecon-book-theme
28+
- name: Install sphinx-multitoc-numbering
29+
shell: bash -l {0}
30+
run: |
31+
git clone https://github.com/executablebooks/sphinx-multitoc-numbering.git
32+
cd sphinx-multitoc-numbering
33+
python setup.py install
34+
cd ../ && rm -rf sphinx-multitoc-numbering
35+
- name: Install Dependencies
36+
shell: bash -l {0}
37+
run: |
38+
pip install jupyter-book
2539
- name: Display Conda Environment Versions
2640
shell: bash -l {0}
2741
run: conda list
@@ -31,7 +45,7 @@ jobs:
3145
- name: Build HTML
3246
shell: bash -l {0}
3347
run: |
34-
make html
48+
jb build lectures --path-output ./
3549
- name: Deploy
3650
uses: peaceiris/actions-gh-pages@v3
3751
with:

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
_build/
1+
_build/
2+
__pycache__/

Makefile

Lines changed: 0 additions & 88 deletions
This file was deleted.

0 commit comments

Comments
 (0)