Lab assignments for the Evolution of Language & Music course.
Website: clclab.github.io/elm-labs
To make edits in the lab assignments and publish them to the website, you need to:
- Clone this repository locally:
git clone [email protected]:clclab/elm-labs.git cd elm-labs
- Install jupyter-book and ghp-import
pip install -U jupyter-book pip install ghp-import
- Make sure your local files are up-to-date with the ones in this repository:
git pull
- *Make the changes to the local files on your computer*
- Rebuild the book:
jupyter-book build --all book
- Add, commit and push the changes to this repository:
git add * git commit -m 'some edits' git push
- Send the updated html to the gh-pages branch (this is what gets published to the website):
ghp-import -n -p -f book/_build/html
- Typically the changes should be live after a few minutes. If you don't see the changes, try opening the website in an incognito window; if the changes do show up there, it should be fine. If not, check the Actions tab of this repository for build fails.
Steps 1 and 2 only need to be done once; then repeat steps 3 through 7 anytime you want to make new edits.