Skip to content

Hotfix imports

Hotfix imports #265

Workflow file for this run

name: documentation
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
permissions:
contents: write
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
- name: Install llvmpipe and lavapipe for offscreen canvas
run: |
sudo apt-get update -y -qq
sudo apt-get install --no-install-recommends -y \
ffmpeg \
libegl1 \
libopengl0 \
libgl1-mesa-dri \
libxcb-xfixes0-dev \
libxcb-icccm4 \
libxcb-image0 \
libxcb-keysyms1 \
libxcb-render-util0 \
libxcb-xinerama0 \
libxkbcommon-x11-0 \
libglib2.0-0 \
mesa-vulkan-drivers
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[docs]
- name: Generate screenshots
run: |
python docs/generate_doc.py
- name: Sphinx build
run: |
sphinx-build docs _build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/
force_orphan: true