diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3b01fa26..27749284 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -161,8 +161,7 @@ jobs: - name: Install Python dependencies run: | python -m pip install --upgrade pip - pip install . - pip install -r docs/add-requirements.txt + pip install .[docs] - name: Check documentation for errors run: | SPHINXOPTS="-a -E -n -W --keep-going" make -C docs html diff --git a/sdk/.readthedocs.yaml b/sdk/.readthedocs.yaml index e64e5daa..1085208a 100644 --- a/sdk/.readthedocs.yaml +++ b/sdk/.readthedocs.yaml @@ -15,4 +15,5 @@ python: install: - method: pip path: . - - requirements: docs/add-requirements.txt + extra_requirements: + - docs diff --git a/sdk/docs/add-requirements.txt b/sdk/docs/add-requirements.txt deleted file mode 100644 index 6ac2c147..00000000 --- a/sdk/docs/add-requirements.txt +++ /dev/null @@ -1,4 +0,0 @@ -# Additional requirements for building the docs -sphinx~=8.2 -sphinx-rtd-theme~=3.0 -sphinx-argparse~=0.5.0 diff --git a/sdk/pyproject.toml b/sdk/pyproject.toml index baaf6ff0..3a9fb683 100644 --- a/sdk/pyproject.toml +++ b/sdk/pyproject.toml @@ -55,6 +55,11 @@ dev = [ "types-python-dateutil", "lxml-stubs~=0.5.1", ] +docs= [ + "sphinx~=8.2", + "sphinx-rtd-theme~=3.0", + "sphinx-argparse~=0.5.0" +] [project.urls] "Homepage" = "https://github.com/eclipse-basyx/basyx-python-sdk"