diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2d286a6a..e8f84448 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -33,7 +33,7 @@ jobs: os: [ubuntu-latest] python-version: ["3.11", "3.12", "3.13", "3.14"] # Test last 2 major releases of Sphinx; regression fixtures target the latest. - sphinx: ["~=7.0", "~=8.0", "~=9.0"] + sphinx: ["~=8.0", "~=9.0"] include: - os: windows-latest python-version: 3.13 diff --git a/pyproject.toml b/pyproject.toml index 9cb57e9b..7d8dd4fb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,8 +39,8 @@ readme = "README.md" requires-python = ">=3.11" dependencies = [ - "sphinx>=7.0", - "pydata-sphinx-theme==0.17.1" + "sphinx>=8.0", + "pydata-sphinx-theme==0.19.0" ] license = { file = "LICENSE" } diff --git a/tests/test_build.py b/tests/test_build.py index 87136af2..360a01f0 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -88,15 +88,15 @@ def test_build_book(sphinx_build_factory, file_regression): # -- Sidebar -------------------------------------------------------------- index_html = sphinx_build.html_tree("index.html") # Navigation entries - if sphinx_version.major >= 8: - # Only run this regression on the latest Sphinx series to avoid duplicates. - sidebar = index_html.find(attrs={"class": "bd-docs-nav"}) - file_regression.check( - sidebar.prettify(), - basename="build__sidebar-primary__nav", - extension=".html", - encoding="utf8", - ) + + # Only run this regression on the latest Sphinx series to avoid duplicates. + sidebar = index_html.find(attrs={"class": "bd-docs-nav"}) + file_regression.check( + sidebar.prettify(), + basename="build__sidebar-primary__nav", + extension=".html", + encoding="utf8", + ) # Check navbar numbering sidebar_ntbk = sphinx_build.html_tree("section1", "ntbk.html").find( diff --git a/tests/test_build/build__header-article.html b/tests/test_build/build__header-article.html index c33dc832..7b23cb33 100644 --- a/tests/test_build/build__header-article.html +++ b/tests/test_build/build__header-article.html @@ -106,14 +106,39 @@ - +