|
1 | | -name: Build Project [myst] |
| 1 | +name: Build Project [using jupyter-book] |
2 | 2 | on: [push] |
3 | 3 | jobs: |
4 | 4 | tests: |
@@ -12,18 +12,27 @@ jobs:
|
12 | 12 | auto-update-conda: true |
13 | 13 | auto-activate-base: true |
14 | 14 | miniconda-version: 'latest' |
15 | | -python-version: 3.7 |
| 15 | +python-version: 3.8 |
16 | 16 | environment-file: environment.yml |
17 | 17 | activate-environment: qe-lectures |
18 | | - - name: Install sphinxcontrib-tomyst |
| 18 | + - name: Install quantecon-book-theme |
19 | 19 | shell: bash -l {0} |
20 | 20 | 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 |
23 | 32 | - name: Install Dependencies |
24 | 33 | shell: bash -l {0} |
25 | 34 | run: | |
26 | | - pip install sphinx-book-theme myst-nb |
| 35 | + pip install jupyter-book |
27 | 36 | - name: Display Conda Environment Versions |
28 | 37 | shell: bash -l {0} |
29 | 38 | run: conda list |
@@ -33,8 +42,7 @@ jobs:
|
33 | 42 | - name: Build HTML |
34 | 43 | shell: bash -l {0} |
35 | 44 | run: | |
36 | | - pwd |
37 | | - make html |
| 45 | + jb build lectures --path-output ./ |
38 | 46 | - name: Preview Deploy to Netlify |
39 | 47 | uses: nwtgck/actions-netlify@v1.1 |
40 | 48 | with: |
|