Skip to content

Restore the document titles dropped when the pages were ported - #180

Merged
slachiewicz merged 2 commits into
masterfrom
restore-site-metadata
Aug 8, 2026
Merged

Restore the document titles dropped when the pages were ported#180
slachiewicz merged 2 commits into
masterfrom
restore-site-metadata

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

Unblocked by the release of plexus parent 26.

Each APT source opened with a title block. Converting the pages to Markdown dropped it, so
every generated page took its name from the project instead of the document. This puts the
titles back as YAML front matter.

It could not be done before now: parent 25 runs Spotless over **/*.md, and flexmark
rewrites the fence closing a front matter block, silently costing the page the very
metadata being restored. Parent 26 excludes **/src/site/markdown/**, so the first commit
is the parent upgrade.

Verified after the bump:

<title>File Mappers – Plexus IO Components</title>
<title>File Selectors – Plexus IO Components</title>
<title>Introduction – Plexus IO Components</title>

Titles only. None of filemappers.apt, fileselectors.apt or index.apt carried an
author or date block — each has a single dashed block, which APT reads as the title. I
checked the deleted sources rather than assuming, because a first pass at this had read the
body prose as an author list and produced twenty-odd bogus author: entries per page.

Parent 26 keeps Spotless away from src/site/markdown. Its flexmark formatter
rewrites the fence that closes a YAML front matter block, which silently costs
each page its title.
Each APT source opened with a title block that the conversion to Markdown
dropped, so every generated page took its name from the project rather than
from the document. Put the titles back as YAML front matter.

Only titles: none of the three APT sources carried an author or a date block.
@slachiewicz slachiewicz added the documentation Improvements or additions to documentation label Aug 8, 2026
@slachiewicz
slachiewicz merged commit 67e0910 into master Aug 8, 2026
6 of 7 checks passed
@slachiewicz
slachiewicz deleted the restore-site-metadata branch August 8, 2026 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant