| 1 |
name: Render documentation |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
pull_request: |
| 6 |
workflow_dispatch: |
| 7 |
|
| 8 |
permissions: |
| 9 |
contents: read |
| 10 |
|
| 11 |
concurrency: |
| 12 |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} |
| 13 |
cancel-in-progress: true |
| 14 |
|
| 15 |
env: |
| 16 |
FORCE_COLOR: "1" |
| 17 |
UV_SYSTEM_PYTHON: "1" # make uv do global installs |
| 18 |
|
| 19 |
jobs: |
| 20 |
docs: |
| 21 |
runs-on: ubuntu-latest |
| 22 |
|
| 23 |
steps: |
| 24 |
- uses: actions/checkout@v4 |
| 25 |
with: |
| 26 |
persist-credentials: false |
| 27 |
- name: Set up Python |
| 28 |
uses: actions/setup-python@v5 |
| 29 |
with: |
| 30 |
python-version: "3" |
| 31 |
- name: Install uv |
| 32 |
uses: astral-sh/setup-uv@v5 |
| 33 |
with: |
| 34 |
version: latest |
| 35 |
enable-cache: false |
| 36 |
- name: Install dependencies |
| 37 |
run: uv pip install . --group docs |
| 38 |
- name: Render the documentation |
| 39 |
run: > |
| 40 |
python -m sphinx |
| 41 |
build -M html |
| 42 |
./docs |
| 43 |
./docs/build |
| 44 |
--jobs=auto |
| 45 |
--show-traceback |
| 46 |
--fail-on-warning |