Strip doxybook2 frontmatter, add doc index #10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "initial-development"
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?
Two new doc-site bugs surfaced once the fragmented-infra docs-builder
ran against the real 350-file doxybook2 output:
summary:field often contains a colon-plus-space inside theclass brief, which YAML interprets as a second mapping entry
and Astro's docsSchema() then refuses to parse. The previous
inject script skipped these files because they already had a
---open, leaving the broken frontmatter intact — the CIbuild choked on
bad indentation of a mapping entryatclassGuitarPrometheus_1_1SongStructure_1_1Score.md:2:34.index.md, so Starlightbuilt no root page.
/would 404 on the live site.Inject script:
starts with
---on line 1, find the closing---line andstrip the whole block (treats doxybook2's malformed frontmatter
as throwaway). Falls back to "no frontmatter" semantics when no
closing fence exists (the leading
---was a markdown HR).Then derives
title:from the body's first H1 (or a humanisedbasename) and writes a clean
---\ntitle: "X"\n---block. Purebash, runs unchanged in node:22-slim.
Preview pipeline:
cp documentation/README.md docs-site/src/content/docs/index.mdso the docs hub becomes thesite landing page.
Verified locally: scripts/preview-docs-site.sh now produces a
clean 224-page dist/ — 17 hand-written pages, the new root
index.html, and 206 api-reference pages. Doxygen + doxybook2 are
installed locally so the iteration loop runs against the same
content the CI Docker stage will.
Implementation plan: documentation/agentic-context/
implementation-plans/2026-05-28-docs-site-real-fix-v2.md.
The matching fragmented-infra commit adds the same
README → index.md staging line to the public-sites Dockerfile.