Skip to content

Commit

Permalink
Fix teachbooks usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Severin committed Apr 3, 2024
1 parent 6765964 commit b9e8e71
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/deploy-book-ghpages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,17 @@ jobs:
name: Preprocess & build the book from branch
run: |
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
cat book/_toc.yml
teachbooks build --publish --process-only book/
mv book/.psorbooks/publish/_toc.yml book/.psorbooks/publish/_config.yml book/
cat book/_toc.yml
jupyter-book build book/
if [ ${{matrix.branch}} == $PRIMARY_BRANCH ]; then
teachbooks build --publish book/
else
teachbooks build book/
fi
- name: Clean branch name of disallowed characters
run: |
Expand Down

0 comments on commit b9e8e71

Please sign in to comment.