mirror of
https://github.com/TeachBooks/template.git
synced 2026-11-12 22:25:52 +00:00
Fix teachbooks usage
This commit is contained in:
parent
67659646d1
commit
b9e8e71a59
1 changed files with 10 additions and 5 deletions
15
.github/workflows/deploy-book-ghpages.yml
vendored
15
.github/workflows/deploy-book-ghpages.yml
vendored
|
|
@ -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: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue