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.
This commit is contained in:
Abdessamad Derraz committed 2026-10-23 07:36:49 +02:00
1 parent a3597cc8af
commit 462d1abb05
2 files changed
+8 -8

No files matched your search

+3 -3
View File
@@ -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
})
+5 -5
View File
@@ -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: