diff --git a/.readthedocs.yml b/.readthedocs.yml index 6e293f0..98529f0 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -2,14 +2,8 @@ version: 2 build: os: ubuntu-22.04 tools: - python: "3.11" -python: - install: - - method: pip - path: . - extra_requirements: - - docs -sphinx: - builder: html - configuration: docs/conf.py - fail_on_warning: true + python: "3.12" + commands: + - pip install tox-uv + - tox r -e docs -vv --notest + - tox r -e docs --skip-pkg-install -- "${READTHEDOCS_OUTPUT}"/html diff --git a/pyproject.toml b/pyproject.toml index 1f8c793..8f47565 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,7 +33,7 @@ dynamic = [ "version", ] dependencies = [ - "pyproject-fmt-rust==1.0.4", + "pyproject-fmt-rust==1.0.5", "tomli>=2.0.1; python_version<'3.11'", ] optional-dependencies.docs = [ diff --git a/tox.ini b/tox.ini index ad829bf..b574b8c 100644 --- a/tox.ini +++ b/tox.ini @@ -64,9 +64,11 @@ commands = description = build documentation extras = docs +set_env = + DOCS_OUT = {posargs:{toxworkdir}{/}docs_out} commands = - sphinx-build -d "{envtmpdir}{/}doctree" docs "{toxworkdir}{/}docs_out" --color -b html {posargs} - python -c 'print(r"documentation available under file://{toxworkdir}{/}docs_out{/}index.html")' + sphinx-build -d "{envtmpdir}{/}doctree" docs "{env:DOCS_OUT}" --color -b html + python -c 'print(r"documentation available under file://{env:DOCS_OUT}{/}index.html")' [testenv:dev] description = generate a DEV environment