diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 9631da6..15e9f02 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -12,7 +12,8 @@ jobs: python-version: '3.10' - name: Install dependencies run: | - pip install sphinx sphinx_rtd_theme + python -m pip install --upgrade pip + pip install '.[doc]' - name: Sphinx build run: | sphinx-build -b html docs/source docs/build/html diff --git a/.readthedocs.yaml b/.readthedocs.yaml index af36e53..a6b7028 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -7,9 +7,10 @@ build: python: install: - - requirements: docs/requirements.txt - method: pip path: . + extra_requirements: + - doc system_packages: true sphinx: diff --git a/docs/requirements.txt b/docs/requirements.txt deleted file mode 100644 index e69de29..0000000 diff --git a/pyproject.toml b/pyproject.toml index 961d448..19a709e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,3 +24,7 @@ dev = [ "freezegun==1.5.1", "pytest==8.2.2", ] +doc = [ + "sphinx==7.3.7", + "sphinx_rtd_theme==2.0.0", +]