From 4544d8e2d23f5b8067bacf0036c0ec88a1a4a3d8 Mon Sep 17 00:00:00 2001 From: Bottersnike Date: Sun, 24 Apr 2022 23:35:53 +0100 Subject: [PATCH] Comio stuff --- docs.py | 29 ++- static/JVST_VER3.pdf | Bin 0 -> 153517 bytes static/jvs_wip.pdf | Bin 0 -> 239678 bytes styles.css | 52 +++- templates/pages/sega/software/comio.html | 292 +++++++++++++++++++++++ templates/pages/sega/software/jvs.html | 113 ++++++++- 6 files changed, 480 insertions(+), 6 deletions(-) create mode 100644 static/JVST_VER3.pdf create mode 100644 static/jvs_wip.pdf create mode 100644 templates/pages/sega/software/comio.html diff --git a/docs.py b/docs.py index dc2e0d0..e97d687 100644 --- a/docs.py +++ b/docs.py @@ -1,3 +1,4 @@ +from dataclasses import dataclass import datetime import re import os @@ -19,7 +20,7 @@ TOC_HTAG_LEVELS = {"1", "2"} HOST = "https://bsnk.me" TEMPLATES = "templates" PAGES_BASE = "pages" -STATIC = ["images"] +STATIC = ["images", "static"] ROOT = os.environ.get("EA_ROOT", "") @@ -42,6 +43,7 @@ SEGA_CONTENTS = { "intro.html": ("Introduction to RingEdge 2", ()), "hardware": ("Hardware", ()), "software": ("Software", { + "jvs.html": "JVS", "drivers": ("Device drivers", { "columba.html": "columba", "mxsram.html": "mxsram", @@ -51,16 +53,15 @@ SEGA_CONTENTS = { "mxparallel.html": "mxparallel", "mxsmbus.html": "mxsmbus", }), - "jvs.html": "JVS", "security": ("Security", { "game.html": "Game encryption", "dongle.html": "Dongles", "keychip.html": "Keychips", - }) + }), }), "network": ("Networking", { "allnet.html": "ALL.Net" - }) + }), } CONTENTS = { "": EAMUSE_CONTENTS, @@ -68,6 +69,25 @@ CONTENTS = { } +@dataclass +class Part: + id: str + name: str + description: str = None + page: str = None + + +PARTS = { + "838-14971": Part("838-14971", "Aime NFC daughter board", "NFC RW BD TN32MSEC003S") +} + + +def part(id): + if (part := PARTS.get(id)): + return f'{part.name}Part number{part.id}Description{part.description}' + return f'{id}' + + def generate_xrpc_list(): output = "