diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ae26b70c..b7591f0c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,13 +15,6 @@ jobs: python-version: 3.8 environment-file: environment.yml activate-environment: lecture-python-programming - - name: Install QuantEcon Book Theme - shell: bash -l {0} - run: | - git clone https://github.com/quantecon/quantecon-book-theme - cd quantecon-book-theme && git checkout download-nb - python setup.py install - cd .. && rm -r quantecon-book-theme - name: Display Conda Environment Versions shell: bash -l {0} run: conda list diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b7f1a8ea..f646c29d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,7 +17,7 @@ jobs: miniconda-version: 'latest' python-version: 3.8 environment-file: environment.yml - activate-environment: qe-lectures + activate-environment: lecture-python-programming - name: Display Conda Environment Versions shell: bash -l {0} run: conda list @@ -28,6 +28,12 @@ jobs: shell: bash -l {0} run: | jb build lectures --path-output ./ + - name: Build Download Notebooks (sphinx-tojupyter) + shell: bash -l {0} + run: | + jb build lectures --path-output ./ --builder=custom --custom-builder=jupyter + mkdir _build/html/_notebooks + cp _build/jupyter/*.ipynb _build/html/_notebooks - name: Deploy uses: peaceiris/actions-gh-pages@v3 with: diff --git a/environment.yml b/environment.yml index b8a2122b..40eb2503 100644 --- a/environment.yml +++ b/environment.yml @@ -13,4 +13,5 @@ dependencies: - joblib - interpolation - git+https://github.com/QuantEcon/sphinx-tojupyter.git + - git+https://github.com/QuantEcon/quantecon-book-theme.git