Skip to content

fix(llms): resolve latest versions in llms.txt at build time - #156

Merged
mmattel merged 1 commit into
mainfrom
fix/llms-txt
Oct 15, 2026
Merged

mmattel merged 1 commit into
mainfrom
fix/llms-txt

Conversation

@LukasHirt

@LukasHirt LukasHirt commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Split out of the developer docs migration PR (#155) so the llms.txt changes can be reviewed and merged independently.

Changes

  • New Antora extension antora-extensions/llms-txt.js (registered in site.yml) that runs at sitePublished and rewrites every /<component>/latest/ segment in the generated llms.txt with the component's actual GA version.
  • ui/supplemental/llms.txt stays human-readable (latest everywhere); modules that only exist in a prerelease version remain pinned to that version until GA.
  • Extension tests updated (latest-versions.js, static-files.test.js).
  • New nested ui/AGENTS.md: documents the llms.txt maintenance and version resolution rules (loaded on demand; the root AGENTS.md is unchanged).

Testing

npm run antora && npm test: 51 passed, 0 failed, 1 skipped.

Co-authored by Martin Mattel, who authored the original commits.

@LukasHirt
LukasHirt requested a review from a team as a code owner October 15, 2026 17:42
Add an Antora extension that rewrites every /<component>/latest/ segment
in the published llms.txt with the component's actual GA version, so the
published file always links to real, CI-validatable URLs. Modules that
exist only in a prerelease version stay pinned to that version in the
template.

Extend the extension tests to cover the new behaviour and document the
llms.txt maintenance rules in a nested ui/AGENTS.md.

Co-authored-by: Martin Mattel <github@diemattels.at>
Signed-off-by: Lukas Hirt <info@hirt.cz>
@mmattel
mmattel merged commit 5cca014 into main Oct 15, 2026
6 of 7 checks passed
@mmattel
mmattel deleted the fix/llms-txt branch October 15, 2026 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants