From 1c671d71acebbedb371746291e47cdba82c5de05 Mon Sep 17 00:00:00 2001 From: rootiest Date: Sun, 26 Jul 2026 20:43:07 -0400 Subject: [PATCH] feat(docs): promote pages with asides or file trees to .mdx --- docs/build-manual.py | 28 ++++++++++++++++++++++++---- docs/verify-manual.py | 26 ++++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 4 deletions(-) diff --git a/docs/build-manual.py b/docs/build-manual.py index d43571c..f9d670d 100644 --- a/docs/build-manual.py +++ b/docs/build-manual.py @@ -594,6 +594,24 @@ def _split_entries(body: str) -> tuple[str, list[tuple[str, str]]]: return intro, entries +ASTRO_ASIDE_COMPONENTS = {" None: + """Write a prettified page, promoting to .mdx when it needs a component import. + + A page stays .md (prettify()'s default, no imports) unless its rendered + content actually contains an " in out +def test_site_promotes_pages_with_asides_or_filetrees_to_mdx(): + """A page whose rendered content contains