diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index f3c15cd9..ffb96145 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -120,7 +120,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install sphinx + python -m pip install .[docs] - name: Build docs run: | sphinx-build -b html docs docs/_build diff --git a/.readthedocs.yaml b/.readthedocs.yaml index a7184468..92fd2703 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -22,6 +22,7 @@ sphinx: # Optional but recommended, declare the Python requirements required # to build your documentation # See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html -# python: -# install: -# - requirements: docs/requirements.txt +python: + install: + - sphinx + - sphinx-rtd-theme diff --git a/docs/conf.py b/docs/conf.py index 367ee37e..9f180506 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -90,7 +90,7 @@ # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. -html_theme = 'nature' +html_theme = "sphinx_rtd_theme" # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the diff --git a/pyproject.toml b/pyproject.toml index 61e7626a..61246a80 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,7 +34,7 @@ classifiers = [ requires-python = ">=3.8" dependencies = ["django>=4.2"] [project.optional-dependencies] -docs = ["sphinx"] +docs = ["sphinx", "sphinx-rtd-theme"] [project.urls] Homepage = "http://github.com/django-waffle/django-waffle"