fix: keep the Run by row out of the search

Setup names on 530 emulator pages lowered their weight in the index and
ranked the data page first for batocera folder and retroarch system
folder. The row is left out of the search, as the card's setup lists are.
This commit is contained in:
Abdessamad Derraz committed 2026-11-06 04:41:13 +01:00
1 parent 5621737c29
commit acd2ef31fd
2 files changed
+6 -3

No files matched your search

+2
View File
@@ -785,6 +785,8 @@ class AnEmulatorPageNamesItsSetups(unittest.TestCase):
row = next(line for line in text.splitlines() if line.startswith("| Run by |"))
for setup in ("emudeck", "rocknix", "nextui", "retroarch"):
self.assertIn(f"/platforms/{setup}/", row)
# Setup names on every emulator page outranked the setup's own page.
self.assertIn("data-pagefind-ignore", row)
class SizesTheCodeComparesAreExact(unittest.TestCase):