Skip to content

More jb2 fixes

More jb2 fixes #278

Workflow file for this run

# Build the book and upload it to GitHub Artifacts for inspection in a PR
name: build
# Run on every pull request
on:
pull_request:
branches: '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Install dependencies
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.x
- uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/*.md') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
pip install -r requirements.txt
# Install uv for running the redirect script
- name: Install uv
uses: astral-sh/setup-uv@v4
# Build the site
- name: Build the MyST site
run: |
cd docs && myst build --html
# Generate redirects from old URLs to new URLs directly into the build directory
- name: Generate redirects
run: |
uv run scripts/generate_redirects.py --base-url https://jupyter.org/governance/ --output-dir docs/_build/html
# Upload artifact
- uses: actions/upload-artifact@v4
with:
name: html_docs
path: ./docs/_build/html