diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7de0d157..442e92a2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,13 +14,12 @@ repos: - id: check-useless-excludes - repo: https://github.com/ComPWA/policy - rev: 0.5.0rc0 + rev: 0.5.0rc1 hooks: - id: check-dev-files args: - --dev-python-version=3.9 - --doc-apt-packages=graphviz - - --no-prettierrc - --pin-requirements=monthly - --repo-name=qrules - --repo-title=QRules diff --git a/.readthedocs.yml b/.readthedocs.yml index 82d90701..25a8bd26 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -4,16 +4,17 @@ build: os: ubuntu-24.04 tools: python: "3.9" - apt_packages: - - graphviz - jobs: - post_install: - - python -m pip install 'uv>=0.2.0' - - python -m uv sync --extra=doc -formats: - - htmlzip - -sphinx: - builder: html - configuration: docs/conf.py - fail_on_warning: true + commands: + - |- + export PIXI_HOME=$READTHEDOCS_VIRTUALENV_PATH + curl -fsSL https://pixi.sh/install.sh | bash + pixi global install graphviz uv + - |- + export UV_LINK_MODE=copy + uv run \ + --extra doc \ + --locked \ + --with tox \ + tox -e doc + mkdir -p $READTHEDOCS_OUTPUT + mv docs/_build/html $READTHEDOCS_OUTPUT