From b844080f0dd4cf5c43057e6582b7f040d460089d Mon Sep 17 00:00:00 2001 From: Almar Klein Date: Fri, 24 Jan 2025 16:57:29 +0100 Subject: [PATCH 1/2] change doc thene --- docs/conf.py | 7 ++++++- pyproject.toml | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) 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] From 7be19b06fb844491c2d5e787994dab6920d1768f Mon Sep 17 00:00:00 2001 From: Almar Klein Date: Fri, 24 Jan 2025 17:01:11 +0100 Subject: [PATCH 2/2] ah --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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