From 00bb4aa0ba0f1c693533f7159803ce497cd42cfe Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Sat, 24 Oct 2026 02:49:23 +0200 Subject: [PATCH] fix: no empty code span for a bare data directory --- scripts/generate_site.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/generate_site.py b/scripts/generate_site.py index c78aa385..57577098 100644 --- a/scripts/generate_site.py +++ b/scripts/generate_site.py @@ -8966,7 +8966,9 @@ def emulator_pages( ref = dd.get("ref", "") dest = dd.get("destination", "") entry = (data_registry or {}).get(ref, {}) - line = f"- `{ref}` > `{dest}`" + # An empty destination wrote "``", which opened a code span + # running to the next one and hid a link from the MDX pass. + line = f"- `{ref}` > `{dest}`" if dest else f"- `{ref}`" if entry.get("description"): line += f": {entry['description']}" lines.append(line)