feat(docs): Starlight asides and file-tree conversions (site-build-only) #78
Reference in New Issue
Block a user
Delete Branch "starlight-asides-and-filetree"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
LABEL:SSOT paragraphs (NOTE/IMPORTANT/TIP/HINT/WARNING/CAUTION/DANGER) into Starlight<Aside>components, and the one ASCII file tree indocs/manual/10-personalization.mdinto a Starlight<FileTree>component — both only at site-build time (build_site()), never touching the man-page/config-help/concat pipeline..mdto.mdxwith the needed import line; everything else stays.md.docs/manual/07-customization.md'sNotes:list rewritten to aNOTE:callout paragraph as the first real-world usage.AGENTS/AGENTS.md(Documentation Policy section).Implementation notes
test_prettify_is_site_onlyguard, all 3prettify()call sites confined tobuild_site(), and all 17 generated.mdxpages compiled through a real@mdx-js/mdx+remark-gfmparser) but flagged two Important findings, both fixed and independently re-verified before this PR:<Aside>and let bullets escape it — now scoped to the aside's interior text.FileTreedetector's branch-line regex accepted second-level (nested) lines and silently flattened them instead of rejecting the tree as documented ("single-level nesting only") — the regex no longer matches nested lines, and a regression test locks this in.python3 docs/verify-manual.py).Manual Verification
python3 docs/verify-manual.pyand confirm43/43 passed,0 FAILdocs/site) and visually confirm:07-customizationrenders itsNOTE:paragraph as a Starlight<Aside>with all 4 bullets inside it10-personalizationrenders its file listing as a Starlight<FileTree>11-viewing-this-manualrenders correctly as an asidedocs/fish-config.1) andconfig-helpoutput show the same three sections as plain, unconverted text — no<Aside/<FileTree/literal component markup anywhere.mdpages in the generated site still render as.md(not wrongly promoted to.mdx)