build(docs): strip LinkButton from concatenated terminal output

This commit is contained in:
2026-07-26 22:55:12 -04:00
parent c126296935
commit 25fb02b7ac
2 changed files with 1 additions and 3 deletions
+1
View File
@@ -78,6 +78,7 @@ def build_concat(root: Path) -> str:
if _is_function_page(path, root):
body = _with_entries(body, path, entries)
if body:
body = re.sub(r"<LinkButton.*?</LinkButton>\n*", "", body, flags=re.DOTALL)
chunks.append(mt.shift_headings(body, depth))
return "\n\n".join(chunks) + "\n"