5. In a Nutshell#
After reading all the steps, it is time to summarize everything for faster code snippet searching.
Download the TU Delft template
Create the environment
conda create --name=<env-name> python=3.7 conda activate <env-name> conda install pip pip install -r requirements.txt
Build your book
jupyter-book build --all <book-path>
Create and configure Git
git init git add . git commit -m "first commit" git remote add origin git@gitlab.com:username/projectpath.git git push origin master
Pull, commit, and push new content
git pull origin master git add . git commit -m "commit message" git push origin master
Publish your book
git checkout --orphan <book-version-branch> git reset git add _build/html/* git commit -m "New book version <book-version>" git push origin <page-version-branch> --force git update-ref -d HEAD git reset git checkout main --force
Email to TU Delft
Email: ???
Subject: “???”
Provide link to previous version (If you are uploading a newer version)