-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix-codefromfile
- Loading branch information
Showing
26 changed files
with
1,762 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: Build & Publish to GH-PAGES | ||
on: | ||
push: | ||
tags: | ||
- 'publish*' | ||
jobs: | ||
publish: | ||
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Anaconda | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
auto-activate-base: true | ||
miniconda-version: 'latest' | ||
python-version: 3.8 | ||
environment-file: environment.yml | ||
activate-environment: quantecon | ||
- name: Display Conda Environment Versions | ||
shell: bash -l {0} | ||
run: conda list | ||
- name: Display Pip Versions | ||
shell: bash -l {0} | ||
run: pip list | ||
- name: Build HTML | ||
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 | ||
zip -r download-notebooks.zip _build/jupyter | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: download-notebooks | ||
path: download-notebooks.zip | ||
- name: Copy Download Notebooks for GH-PAGES | ||
shell: bash -l {0} | ||
run: | | ||
mkdir _build/html/_notebooks | ||
cp _build/jupyter/*.ipynb _build/html/_notebooks | ||
- name: Deploy website to gh-pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: _build/html/ | ||
cname: python-advanced.quantecon.org | ||
- name: Upload "_build" folder (cache) | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: build-cache | ||
path: _build | ||
- name: Prepare lecture-python-advanced.notebooks sync | ||
shell: bash -l {0} | ||
run: | | ||
mkdir -p _build/lecture-python-advanced.notebooks | ||
cp -a _notebook_repo/. _build/lecture-python-advanced.notebooks | ||
cp _build/jupyter/*.ipynb _build/lecture-python-advanced.notebooks | ||
ls -a _build/lecture-python-advanced.notebooks | ||
- name: Commit latest notebooks to lecture-python-advanced.notebooks | ||
uses: cpina/github-action-push-to-another-repository@master | ||
env: | ||
API_TOKEN_GITHUB: ${{ secrets.QUANTECON_SERVICES_PAT }} | ||
with: | ||
source-directory: '_build/lecture-python-advanced.notebooks/' | ||
destination-repository-username: 'QuantEcon' | ||
destination-repository-name: 'lecture-python-advanced.notebooks' | ||
commit-message: 'auto publishing updates to notebooks' | ||
destination-github-username: 'quantecon-services' | ||
user-email: services@quantecon.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
# lecture-python-advanced.myst | ||
Migration to Myst (Source files for https://python-advanced.quantecon.org) | ||
|
||
# Current Hosting | ||
|
||
https://5ff577b6c5ec3f9de6b87508--wonderful-lalande-528d1c.netlify.app/intro.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
name: lecture-python-advanced.myst | ||
name: quantecon | ||
channels: | ||
- default | ||
dependencies: | ||
- pip | ||
- python=3.8 | ||
- anaconda=2020.07 | ||
- anaconda=2020.11 | ||
- pip | ||
- pip: | ||
- jupytext | ||
- jupyter-book | ||
- quantecon | ||
- joblib | ||
- git+https://github.com/QuantEcon/quantecon-book-theme | ||
- git+https://github.com/executablebooks/sphinx-multitoc-numbering.git | ||
- interpolation | ||
- sphinx-multitoc-numbering | ||
- quantecon-book-theme | ||
- sphinx-tojupyter | ||
- sphinxext-rediraffe | ||
- sphinx-exercise | ||
- jupytext | ||
- ghp-import | ||
- jupinx | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.