From 462d1abb056fcac93d2fc241bd7b09c7404eb7a2 Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Fri, 23 Oct 2026 07:36:49 +0200 Subject: [PATCH] fix: name one emulator's kind in the singular A row of the emulators index and of the cross-reference tables named one core's class in the plural (Official ports). The upstream table's headers no longer break inside a word. --- scripts/generate_site.py | 6 +++--- website/src/styles/retrobios.css | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/generate_site.py b/scripts/generate_site.py index 21c331b3..af5a9925 100644 --- a/scripts/generate_site.py +++ b/scripts/generate_site.py @@ -4712,7 +4712,7 @@ def generate_emulators_index(profiles: dict) -> str: sys_str += f" and {len(systems) - 3} more" file_count = len(files) file_str = f"{file_count:,}" if file_count else "-" - lines.append(f"| [{emu_name}]({name}.md) | {CLS_LABELS.get(cls, cls)} | {sys_str} | {file_str} |") + lines.append(f"| [{emu_name}]({name}.md) | {CLS_LABEL_ONE.get(cls, cls)} | {sys_str} | {file_str} |") lines.append("") if aliases: @@ -6921,7 +6921,7 @@ def _xref_platform_rows(config: dict, unique: dict) -> tuple[int, list[str]]: if upstream.startswith("http") else (_escape_tags(upstream) or "-")) rows.append( f"| [{_escape_tags(p.get('emulator', emu_name))}](emulators/{emu_name}.md) " - f"| {CLS_LABELS.get(cls_raw, cls_raw)} | {sys_str or '-'} | {file_str} " + f"| {CLS_LABEL_ONE.get(cls_raw, cls_raw)} | {sys_str or '-'} | {file_str} " f"| {upstream_display} |" ) return len(matched), rows @@ -7003,7 +7003,7 @@ def _render_xref_by_upstream( members = by_upstream[key] cores = sorted(c for c, _url, _rest in members) classifications = sorted({ - CLS_LABELS.get(unique[c].get("core_classification", "-"), + CLS_LABEL_ONE.get(unique[c].get("core_classification", "-"), unique[c].get("core_classification", "-")) for c in cores }) diff --git a/website/src/styles/retrobios.css b/website/src/styles/retrobios.css index dae9a3d4..b6061b8e 100644 --- a/website/src/styles/retrobios.css +++ b/website/src/styles/retrobios.css @@ -359,14 +359,14 @@ table-layout: fixed; width: 100%; } - .sl-markdown-content .sl-heading-wrapper:has(> #by-upstream-emulator) ~ section :is(th, td) { + .sl-markdown-content .sl-heading-wrapper:has(> #by-upstream-emulator) ~ section td { overflow-wrap: anywhere; } - .sl-markdown-content .sl-heading-wrapper:has(> #by-upstream-emulator) ~ section th:nth-child(1) { width: 26%; } + .sl-markdown-content .sl-heading-wrapper:has(> #by-upstream-emulator) ~ section th:nth-child(1) { width: 25%; } .sl-markdown-content .sl-heading-wrapper:has(> #by-upstream-emulator) ~ section th:nth-child(2) { width: 26%; } - .sl-markdown-content .sl-heading-wrapper:has(> #by-upstream-emulator) ~ section th:nth-child(3) { width: 17%; } - .sl-markdown-content .sl-heading-wrapper:has(> #by-upstream-emulator) ~ section th:nth-child(4) { width: 18%; } - .sl-markdown-content .sl-heading-wrapper:has(> #by-upstream-emulator) ~ section th:nth-child(5) { width: 13%; } + .sl-markdown-content .sl-heading-wrapper:has(> #by-upstream-emulator) ~ section th:nth-child(3) { width: 15%; } + .sl-markdown-content .sl-heading-wrapper:has(> #by-upstream-emulator) ~ section th:nth-child(4) { width: 20%; } + .sl-markdown-content .sl-heading-wrapper:has(> #by-upstream-emulator) ~ section th:nth-child(5) { width: 14%; } } /* The id a platform writes for a system, beside the name in its heading: