From 8d69ad54df108dc63d7106c798299087082498cc Mon Sep 17 00:00:00 2001
From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com>
Date: Wed, 11 Nov 2026 10:27:53 +0100
Subject: [PATCH] fix: space Starlight's previous and next links
The word and the page title were split by a
only, which a copy,
textContent and an assistant read as "PreviousWhat the packs do not
hold". The override keeps Starlight's look, spaces them, names each link
by direction and page, and makes the pair a navigation landmark.
---
tests/test_site_nav.py | 4 +-
tests/test_site_page_text.py | 37 ++++++++++-
website/astro.config.mjs | 1 +
website/src/components/Pagination.astro | 87 +++++++++++++++++++++++++
4 files changed, 125 insertions(+), 4 deletions(-)
create mode 100644 website/src/components/Pagination.astro
diff --git a/tests/test_site_nav.py b/tests/test_site_nav.py
index 7dc611aff..871631ea1 100644
--- a/tests/test_site_nav.py
+++ b/tests/test_site_nav.py
@@ -396,7 +396,7 @@ class _Page(HTMLParser):
def handle_endtag(self, tag: str) -> None:
if tag == "nav" and self._crumbs:
self._crumbs = 0
- if tag == "div" and self._pagination and not self.pagination:
+ if tag == "nav" and self._pagination and not self.pagination:
self._pagination = False
if self._text is not None and tag in ("a", "summary"):
self.sidebar.append(" ".join("".join(self._text).split()))
@@ -621,7 +621,7 @@ def _html(url: str) -> str:
def _pagination(text: str) -> tuple[str | None, str | None]:
- start = text.find('