3ce7666738
Build Packages / Unit tests (push) Successful in 51m32s
Build Packages / DIALS test (push) Successful in 9m31s
Build Packages / XDS test (durin plugin) (push) Successful in 5m48s
Build Packages / XDS test (JFJoch plugin) (push) Successful in 6m3s
Build Packages / XDS test (neggia plugin) (push) Successful in 5m31s
Build Packages / Generate python client (push) Successful in 26s
Build Packages / Build documentation (push) Successful in 54s
Build Packages / Create release (push) Skipped
Build Packages / build:rpm (ubuntu2404_nocuda) (push) Successful in 13m15s
Build Packages / build:rpm (rocky8) (push) Successful in 14m9s
Build Packages / build:rpm (rocky8_nocuda) (push) Successful in 14m22s
Build Packages / build:rpm (ubuntu2204_nocuda) (push) Successful in 14m41s
Build Packages / build:rpm (rocky9_nocuda) (push) Successful in 14m48s
Build Packages / build:rpm (rocky8_sls9) (push) Successful in 14m47s
Build Packages / build:rpm (rocky9_sls9) (push) Successful in 15m3s
Build Packages / build:rpm (rocky9) (push) Successful in 15m4s
Build Packages / build:rpm (ubuntu2204) (push) Successful in 13m8s
Build Packages / build:rpm (ubuntu2404) (push) Successful in 12m36s
The bare python3 is often too old for the Sphinx build. Auto-select the newest python3.13/3.12/3.11/3 found on PATH, still allowing $PYTHON to override. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
46 lines
1.2 KiB
Bash
46 lines
1.2 KiB
Bash
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
# Build the Sphinx HTML documentation.
|
|
#
|
|
# Usage: make_doc.sh [output_dir]
|
|
# output_dir where the rendered HTML is written (default: ./public).
|
|
# Relative paths are resolved against the caller's working
|
|
# directory, so the frontend build can point this at frontend/dist/docs.
|
|
#
|
|
# The Python interpreter can be overridden with $PYTHON. Otherwise the newest
|
|
# available python3.x is used (the bare "python3" is often too old).
|
|
|
|
OUT="${1:-public}"
|
|
|
|
if [ -z "${PYTHON:-}" ]; then
|
|
for candidate in python3.13 python3.12 python3.11 python3; do
|
|
if command -v "$candidate" >/dev/null 2>&1; then
|
|
PYTHON="$candidate"
|
|
break
|
|
fi
|
|
done
|
|
fi
|
|
if [ -z "${PYTHON:-}" ]; then
|
|
echo "No python3 interpreter found" >&2
|
|
exit 1
|
|
fi
|
|
echo "Using $PYTHON ($("$PYTHON" --version 2>&1))"
|
|
|
|
# Resolve the output directory to an absolute path before we change directories.
|
|
mkdir -p "$OUT"
|
|
OUT="$(cd "$OUT" && pwd)"
|
|
|
|
# Run from the repository root regardless of where the script was invoked from.
|
|
cd "$(dirname "$0")"
|
|
|
|
"$PYTHON" -m venv tmp_venv/
|
|
source tmp_venv/bin/activate
|
|
|
|
pip install -r docs/requirements.txt
|
|
|
|
sphinx-build -b html docs "$OUT"
|
|
|
|
rm -rf tmp_venv/
|