Skip to content

fix: toc to new jupyter book format #68

fix: toc to new jupyter book format

fix: toc to new jupyter book format #68

Workflow file for this run

name: deploy-book
# Only run this when the master branch changes
on:
push:
branches:
- main
# This job installs dependencies, build the book, and pushes it to `gh-pages`
jobs:
deploy-book:
runs-on: ubuntu-latest
env:
ANTSPATH: /opt/ants
steps:
- uses: actions/cache@v4
with:
path: /var/lib/apt
key: apt-cache-v2
restore-keys: |
apt-cache-v2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
curl \
bzip2 \
ca-certificates \
dvipng \
texlive-fonts-recommended \
texlive-fonts-extra \
texlive-latex-extra \
cm-super
- uses: actions/cache@v4
with:
path: /opt/ants
key: ants-v1
restore-keys: |
ants-v1
- name: Install ANTS
run: |
if [[ ! -d "${ANTSPATH}" ]]; then
sudo mkdir -p $ANTSPATH
curl -sSL "https://dl.dropbox.com/s/gwf51ykkk5bifyj/ants-Linux-centos6_x86_64-v2.3.4.tar.gz" | sudo tar -xzC $ANTSPATH --strip-components 1
fi
- uses: actions/checkout@v4
# Install dependencies
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies
run: |
pip install -r requirements.txt
# Build the page
- name: Build the book
run: |
export PATH=$ANTSPATH:$PATH
jupyter-book build docs
# Push the book's HTML to github-pages
- name: GitHub Pages action
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html