mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-20 16:47:49 -06:00
feat: give every Sony console its own page
A section shares its page's search fields, and "playstation 3 bios" found the PlayStation page before the Sony page that held the PS3. CONSOLE_PAGES splits Sony by console whatever the size. The search gate now expects the PlayStation 3 page in the top two for that query, the order of words being something Pagefind does not weigh, and the page first for "ps3 bios".
This commit is contained in:
1 parent
d8f8e865dc
commit
531edaa1ad
3 files changed
+34
-6
No files matched your search
@@ -71,11 +71,16 @@ QUERIES: dict[str, tuple[tuple[str, ...], int]] = {
|
||||
"game boy bios": (("systems/nintendo-game-boy/",), 1),
|
||||
"3ds bios": (("systems/nintendo-3ds/",), 1),
|
||||
# A console another one's name begins with, both ways: the longer name's
|
||||
# page holds every word of the shorter query. GBA, GBC and the
|
||||
# PlayStation 3 are sections of their maker's page. Saturn.emu is an
|
||||
# emulator named after its console.
|
||||
# page holds every word of the shorter query. GBA and GBC are sections
|
||||
# of their maker's page. Saturn.emu is an emulator named after its
|
||||
# console.
|
||||
"playstation 2 bios": (("systems/sony-playstation-2/",), 1),
|
||||
"playstation 3 bios": (("systems/sony/",), 1),
|
||||
# Every Sony console has a page of its own (CONSOLE_PAGES). The search
|
||||
# weighs words, not their order, and "3" is on too many pages to weigh:
|
||||
# the PlayStation page, which names BIOS v3.0 and leads "playstation
|
||||
# bios", stays just above. "ps3 bios" finds the page first.
|
||||
"playstation 3 bios": (("systems/sony-playstation-3/",), 2),
|
||||
"ps3 bios": (("systems/sony-playstation-3/",), 1),
|
||||
"game boy advance bios": (("systems/nintendo/",), 1),
|
||||
"game boy color bios": (("systems/nintendo/",), 1),
|
||||
"nintendo ds bios": (("systems/nintendo-nintendo-ds/",), 1),
|
||||
|
||||
Reference in new issue
Block a user