From 3613c0927b4aa5aeb0b43cab30f21f21a207c273 Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Wed, 21 Oct 2026 06:18:59 +0200 Subject: [PATCH] docs: open the download page on its content The which-pack page announced itself ("This page picks the right pack for a setup") before naming a pack. The sentence goes, the pointer to Getting started stays. --- scripts/generate_site.py | 3 +-- tests/test_doc_surfaces.py | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/scripts/generate_site.py b/scripts/generate_site.py index 0caabb92..40b0a809 100644 --- a/scripts/generate_site.py +++ b/scripts/generate_site.py @@ -4671,8 +4671,7 @@ Without them, the emulator either refuses to start the game or runs it with reduced accuracy. RetroBIOS maps those requirements to source-traced emulator profiles and verifies local content against the evidence each platform exposes. -This page picks the right pack for a setup. For BIOS directory paths per -platform, verification, and the CLI, see +BIOS directory paths per platform, verification and the CLI are in [Getting started](wiki/getting-started.md). ## Quick install diff --git a/tests/test_doc_surfaces.py b/tests/test_doc_surfaces.py index 4a793a88..6d825714 100644 --- a/tests/test_doc_surfaces.py +++ b/tests/test_doc_surfaces.py @@ -272,5 +272,20 @@ class ContributorChecksMatchCi(unittest.TestCase): ) +class PagesOpenOnTheirContent(unittest.TestCase): + """The download page said "This page picks the right pack for a setup" + before saying anything about a pack.""" + + def test_no_paragraph_announces_its_page(self): + import generate_site # noqa: PLC0415 + + text = generate_site.generate_which_pack() + announcing = [ + line for line in text.splitlines() + if re.match(r"(This|The) (page|section) ", line) + ] + self.assertEqual(announcing, []) + + if __name__ == "__main__": unittest.main()