Fix teachbooks usage

This commit is contained in:
Severin 2024-04-03 18:13:35 +02:00
parent 67659646d1
commit b9e8e71a59

View file

@ -93,12 +93,17 @@ jobs:
name: Preprocess & build the book from branch name: Preprocess & build the book from branch
run: | run: |
echo $PATH echo $PATH
# Install wrapper
# NOTE: teachbooks is already installed w requirements.txt, however not on PATH
# Installing with --user fixes this.
# TODO remove --extra-index-url once teachbooks is on PyPI
pip install --user teachbooks --extra-index-url https://gitlab.tudelft.nl/api/v4/projects/13957/packages/pypi/simple pip install --user teachbooks --extra-index-url https://gitlab.tudelft.nl/api/v4/projects/13957/packages/pypi/simple
cat book/_toc.yml if [ ${{matrix.branch}} == $PRIMARY_BRANCH ]; then
teachbooks build --publish --process-only book/ teachbooks build --publish book/
mv book/.psorbooks/publish/_toc.yml book/.psorbooks/publish/_config.yml book/ else
cat book/_toc.yml teachbooks build book/
jupyter-book build book/ fi
- name: Clean branch name of disallowed characters - name: Clean branch name of disallowed characters
run: | run: |