fix: keep bold labels in nested profile blocks

The nested list structure stays, so each label renders bold instead of showing its asterisks. The platform details block becomes a list as well: its labels were paragraphs followed by items with no blank line between them. validate_site now reports any asterisks that reach a rendered page outside code, which runs in the deploy and in pipeline step 8b.
This commit is contained in:
Abdessamad Derraz committed 2026-10-20 12:46:37 +02:00
1 parent f8fc9a672e
commit 721622c2ea
5 files changed
+63 -9

No files matched your search

+4 -3
View File
@@ -3021,11 +3021,12 @@ def _render_platform_details(profile: dict) -> list[str]:
lines.extend(['???+ info "Platform details"', ""])
for pk, pv in platform_details.items():
if isinstance(pv, dict):
lines.append(f" **{pk}:**")
lines.extend([f" - **{pk}:**", ""])
for sk, sv in pv.items():
lines.append(f" - {sk}: {_detail_value(profile, sk, sv)}")
lines.append(f" - {sk}: {_detail_value(profile, sk, sv)}")
lines.append("")
else:
lines.append(f" **{pk}:** {_detail_value(profile, pk, pv)}")
lines.append(f" - **{pk}:** {_detail_value(profile, pk, pv)}")
lines.append("")
return lines