diff --git a/scripts/generate_site.py b/scripts/generate_site.py index be1bb26ed..a0d16497b 100644 --- a/scripts/generate_site.py +++ b/scripts/generate_site.py @@ -6599,11 +6599,16 @@ START_WITH_NAMES = 6 def _region_order() -> dict[str, int]: + """The regions a start line lists, the territories first. A file read + for every region is a region-free stand-in for the BIOS of each one: + the PlayStation section opened on psxonpsp660.bin, which one emulator + requires among the BIOS it accepts, above the scph files most read.""" from region import REGION_TREE, WORLD # noqa: PLC0415 - ordered = [WORLD] + ordered = [] for parent, members in REGION_TREE.items(): ordered += [parent, *sorted(members)] + ordered.append(WORLD) return {region: index for index, region in enumerate(ordered)} diff --git a/tests/test_site_systems.py b/tests/test_site_systems.py index a5996385a..8c3b99157 100644 --- a/tests/test_site_systems.py +++ b/tests/test_site_systems.py @@ -1268,7 +1268,14 @@ class EachFileDownloadsFromItsCard(unittest.TestCase): self.skipTest("site not generated") section = page.read_text(encoding="utf-8").split("## Apple II {", 1)[1] start = section.split("