Skip to content

Restore the document metadata dropped when the pages were ported - #575

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

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

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

Unblocked by the release of plexus parent 26.

The APT sources carried a title, an author and a date. Converting the pages to Markdown
dropped them, so every generated page lost its <title> and its author meta. This puts
them back as YAML front matter.

It could not be done before now. Parent 25 runs Spotless over **/*.md, and flexmark
rewrites the fence that closes a front matter block into a setext underline, which costs
the page exactly the metadata being restored — silently, with a green build. Parent 26
excludes **/src/site/markdown/**, so the first commit here is the parent upgrade.

Verified after the bump: the front matter survives the build and the generated pages carry
both title and author.

<title>Location Tracking – Modello</title>
<meta name="author" content="Benjamin Bentmann" />

migration-guide.md is deliberately untouched — it was authored as Markdown and never had
metadata to restore; only location-tracking.apt and release-notes.apt existed as APT.

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, author and date.
The APT and xdoc sources carried a title, an author and a date. The conversion
to Markdown dropped them, so the generated pages lost their <title> and their
author meta. Put them back as YAML front matter.

migration-guide.md is left alone: it was authored as Markdown and never had
metadata to restore.
@slachiewicz
slachiewicz merged commit 548ee8f into master Aug 8, 2026
3 of 4 checks passed
@slachiewicz
slachiewicz deleted the restore-site-metadata branch August 8, 2026 18:04
@slachiewicz slachiewicz added the documentation Improvements or additions to documentation label Aug 8, 2026
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