From 24cb35444aa8316e3ce0cf4f20931d54ae1b8983 Mon Sep 17 00:00:00 2001 From: Alvaro Lopez Garcia Date: Tue, 11 Jun 2024 23:50:02 +0200 Subject: [PATCH] docs: fix doc build --- doc/source/user/index.rst | 1 - pyproject.toml | 7 +++++++ tox.ini | 7 ++++--- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/doc/source/user/index.rst b/doc/source/user/index.rst index 1bf9027c..c9812536 100644 --- a/doc/source/user/index.rst +++ b/doc/source/user/index.rst @@ -6,4 +6,3 @@ User and developer documentation quickstart v2-api - predict diff --git a/pyproject.toml b/pyproject.toml index ef290b52..85d33a5f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -102,6 +102,13 @@ twine = "^5.1.0" pip-check-reqs = "^2.5.3" poetry-plugin-export = "^1.8.0" + +[tool.poetry.group.test-docs.dependencies] +sphinx = "^7.3.7" +sphinx-rtd-theme = "^2.0.0" +recommonmark = "^0.7.1" +reno = "^4.1.0" + [build-system] requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" diff --git a/tox.ini b/tox.ini index 19253f1d..96355085 100644 --- a/tox.ini +++ b/tox.ini @@ -126,11 +126,12 @@ commands = [testenv:docs] basepython = {[base]python} -deps = - -r {toxinidir}/doc/requirements.txt +commands_pre = + poetry install --no-root --sync --with test --with test-docs + pip install -U . commands = rm -rf doc/build - sphinx-build -W --keep-going -b html -j auto doc/source doc/build/html + poetry run sphinx-build -W --keep-going -b html -j auto doc/source doc/build/html [testenv:mypy] description = Static type checks