fix: put a platform's Tested block first

Placed after the meta card, the Tested heading ended the Reference section and the part-page links below it lost their level label.
This commit is contained in:
Abdessamad Derraz committed 2026-10-28 02:07:35 +01:00
1 parent d7fa441e1e
commit 4d2b7ecb6b
1 file changed
+2 -1
+2 -1
View File
@@ -4329,6 +4329,8 @@ def generate_platform_page(
no_list = not cov["total"] and registry.get(name, {}).get("native_list") == "none"
if name in GUIDES:
lines += _platform_guide(name, display, cov, registry, no_list)
# Before the reference: the links below it are read under that heading.
lines.extend(sitemeasurements.pack_tested_section(_PACK_ITEMS.get(name, [])))
lines += [
"## Reference: every file by system { #reference-every-file-by-system }",
@@ -4408,7 +4410,6 @@ def generate_platform_page(
lines.extend(["", *_platform_install_block(name, display, on_card)])
lines.extend(["", _pack_buttons(name, f"Download {display} Pack", display=display)])
lines.append("")
lines.extend(sitemeasurements.pack_tested_section(_PACK_ITEMS.get(name, [])))
# The declaration behind each detail, by system and name in declaration
# order: keyed by name alone, the last of MiSTer's 23 boot.rom gave its