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

+4 -3
View File
@@ -10130,9 +10130,10 @@ def emulator_pages(
# The file cards name the setups whose own list holds a file: the
# ones that run the emulator and pack its files were said nowhere.
# Said once here: a line on each card put MAME's parts and four
# other pages over their element budget.
lines.append("| Run by | " + ", ".join(
f"[{_platform_display(p)}](../platforms/{p}.md)" for p in setups) + " |")
# other pages over their element budget. Out of the search: setup
# names on 530 pages ranked the data page first for "batocera folder".
lines.append(f"| Run by | <span {markup.search_exclude()}>" + ", ".join(
f"[{_platform_display(p)}](../platforms/{p}.md)" for p in setups) + "</span> |")
lines.append(f"| Profiled | {profiled} |")
# The YAML is the reusable document this site renders, and the JSON is the
# same profile for a program.
+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):