Motivation Upgrades Sphinx to 9.x, MyST Parser to 5.x, Python to 3.11+–3.14, Node.js to 22, and replaces Poetry with uv for dependency management. Changelog: https://github.com/scylladb/sphinx-scylladb-theme/blob/master/docs/source/upgrade/CHANGELOG.md#190---26-february-2026 How to test * Make sure you are using Python 3.11-3.14: * python --version * Install uv: * make setupenv * Build the docs: * make preview * Docs should render without errors at http://127.0.0.1:5500 Closes scylladb/scylladb#28971
39 lines
942 B
YAML
39 lines
942 B
YAML
name: "Docs / Build PR"
|
|
# For more information,
|
|
# see https://sphinx-theme.scylladb.com/stable/deployment/production.html#available-workflows
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
env:
|
|
FLAG: ${{ github.repository == 'scylladb/scylla-enterprise' && 'enterprise' || 'opensource' }}
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
- enterprise
|
|
paths:
|
|
- "docs/**"
|
|
- "db/config.hh"
|
|
- "db/config.cc"
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
persist-credentials: false
|
|
fetch-depth: 0
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.12"
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@v6
|
|
- name: Set up env
|
|
run: make -C docs FLAG="${{ env.FLAG }}" setupenv
|
|
- name: Build docs
|
|
run: make -C docs FLAG="${{ env.FLAG }}" test
|