mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-11 20:43:50 -06:00
fix: lead the old oric address to tangerine
A reader followed /systems/oric/ to the 404 page: Oric has been filed under its maker since 2026-10-23.
This commit is contained in:
1 parent
a99682beeb
commit
e7c4de27bc
2 files changed
+6
-1
No files matched your search
@@ -7397,6 +7397,9 @@ SYSTEM_PAGES_MOVED = {
|
||||
"systems/arcade-sharp-mz-2500.md": "systems/sharp.md",
|
||||
"systems/arcade-miuchiz.md": "systems/arcade.md",
|
||||
"systems/arcade-yamaha-ym2608.md": "systems/arcade.md",
|
||||
# Oric is filed under its maker since 2026-10-23, and a reader still
|
||||
# followed the old address to the 404 page.
|
||||
"systems/oric.md": "systems/tangerine.md#oric",
|
||||
"systems/other-scummvm.md": "systems/scummvm.md",
|
||||
"systems/other-sdlpal.md": "systems/sdlpal.md",
|
||||
"systems/sega-dreamcast.md": "systems/sega.md",
|
||||
|
||||
@@ -1187,7 +1187,8 @@ class EnginesGoByEngine(unittest.TestCase):
|
||||
def test_moved_pages_redirect(self) -> None:
|
||||
if not SYSTEMS.is_dir():
|
||||
self.skipTest("pages not generated")
|
||||
for old, new in gs.SYSTEM_PAGES_MOVED.items():
|
||||
for old, target in gs.SYSTEM_PAGES_MOVED.items():
|
||||
new = target.partition("#")[0]
|
||||
self.assertFalse((CONTENT / old).exists() or (CONTENT / old).with_suffix(".mdx").exists(), old)
|
||||
# A page with tabs is written as MDX.
|
||||
self.assertTrue((CONTENT / new).exists() or (CONTENT / new).with_suffix(".mdx").exists(), new)
|
||||
@@ -1195,6 +1196,7 @@ class EnginesGoByEngine(unittest.TestCase):
|
||||
if redirects.is_file():
|
||||
table = json.loads(redirects.read_text(encoding="utf-8"))
|
||||
self.assertEqual(table.get("/systems/other-scummvm/"), "/systems/scummvm/")
|
||||
self.assertEqual(table.get("/systems/oric/"), "/systems/tangerine/#oric")
|
||||
|
||||
|
||||
class OneLabelOnceOnABoardPage(unittest.TestCase):
|
||||
|
||||
Reference in new issue
Block a user