diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 8c791a292e..cae58c064a 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -1,15 +1,19 @@ version: 2 build: - os: ubuntu-20.04 + os: ubuntu-22.04 tools: python: "3.10" - commands: - - pip install hatch - - hatch run docs:rtd sphinx: configuration: docs/conf.py fail_on_warning: true formats: all + +python: + install: + - method: pip + path: . + extra_requirements: + - docs diff --git a/pyproject.toml b/pyproject.toml index 947bec9369..2039395b7c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -136,8 +136,7 @@ list-env = "pip list" features = ['docs'] [tool.hatch.envs.docs.scripts] -build = "sphinx-build docs/ docs/_build/" -rtd = "sphinx-build docs/ _readthedocs/html/" +build = "cd docs && make html" serve = "sphinx-autobuild docs docs/_build --ignore 'docs/_autoapi/**/*' --host 0.0.0.0" [tool.ruff]