From 3e422aa5b40c8afc6077485d8cc3d5afebf3318c Mon Sep 17 00:00:00 2001 From: Bottersnike Date: Fri, 18 Nov 2022 12:08:48 +0000 Subject: [PATCH] Reroute and canonicals --- docs.py | 9 +++++---- templates/base.html | 1 + templates/pages/sega/{software => hardware}/jvs.html | 0 .../pages/sega/{software => hardware}/rs232c.html | 0 .../pages/sega/{software => hardware}/touch.html | 0 templates/pages/sega/software/drivers/index.html | 11 +++++++++++ templates/pages/sega/software/security/game.html | 2 ++ templates/pages/sega/software/security/keychip.html | 4 ---- 8 files changed, 19 insertions(+), 8 deletions(-) rename templates/pages/sega/{software => hardware}/jvs.html (100%) rename templates/pages/sega/{software => hardware}/rs232c.html (100%) rename templates/pages/sega/{software => hardware}/touch.html (100%) delete mode 100644 templates/pages/sega/software/security/keychip.html diff --git a/docs.py b/docs.py index a139baf..021435c 100644 --- a/docs.py +++ b/docs.py @@ -42,15 +42,15 @@ EAMUSE_CONTENTS = { } SEGA_CONTENTS = { "intro.html": ("Introduction to RingEdge 2", ()), - "hardware": ("Hardware", ()), - "software": ("Software", { - "pcp": ("PCP", {"libpcp.html": "libpcp"}), + "hardware": ("Hardware", { "jvs.html": "JVS", "touch.html": "Touchscreen", + }), + "software": ("Software", { + "pcp": ("PCP", {"libpcp.html": "libpcp"}), "drivers": ("Device drivers", None), "security": ("Security", { "game.html": "Game encryption", - "keychip.html": "Keychips", }), "groovemaster.html": "GrooveMaster.ini", }), @@ -314,6 +314,7 @@ for base, _, files in os.walk(TEMPLATES + "/" + PAGES_BASE): return render_template( os.path.join(base, name).strip("/").replace("\\", "/"), ROOT=ROOT, + CANONICAL=ROOT + route, generate_xrpc_list=generate_xrpc_list, generate_toc=lambda start=1: generate_toc(base, name, route, start), generate_footer=lambda: generate_footer(base, name, route), diff --git a/templates/base.html b/templates/base.html index c6b3cc5..083c7db 100644 --- a/templates/base.html +++ b/templates/base.html @@ -9,6 +9,7 @@ +