diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7a599b6..e3b2b14 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,7 +50,7 @@ jobs: run: | python -m pip install --upgrade pip #pip install -U -e .[docs] - pip install sphinx + pip install sphinx sphinx_rtd_theme - name: Build docs run: | cd docs diff --git a/docs/conf.py b/docs/conf.py index 06558d5..f94602b 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -39,7 +39,8 @@ sphinxver = sphinx.version_info extensions = [ "sphinx.ext.autodoc", - "sphinx.ext.napoleon" if sphinxver >= (1, 3) else "sphinxcontrib.napoleon", + "sphinx.ext.napoleon", + "sphinx_rtd_theme", "pscriptexample", ] @@ -65,3 +66,7 @@ # The name of the Pygments (syntax highlighting) style to use. pygments_style = "sphinx" + +# The theme to use for HTML and HTML Help pages. See the documentation for +# a list of builtin themes. +html_theme = "sphinx_rtd_theme" diff --git a/pyproject.toml b/pyproject.toml index d9369bf..47cd909 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,7 +21,7 @@ dependencies = [] [project.optional-dependencies] lint = ["ruff"] tests = ["pytest"] -docs = ["sphinx"] +docs = ["sphinx", "sphinx_rtd_theme"] dev = ["pscript[lint,tests, docs]"] [project.urls]