Repository navigation
fix(llms): resolve latest versions in llms.txt at build time - #156
Merged
Merged
Conversation
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>
LukasHirt
force-pushed
the
fix/llms-txt
branch
from
October 15, 2026 17:47
30bd614 to
b1f2105
Compare
mmattel
approved these changes
Oct 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Split out of the developer docs migration PR (#155) so the llms.txt changes can be reviewed and merged independently.
Changes
antora-extensions/llms-txt.js(registered insite.yml) that runs atsitePublishedand rewrites every/<component>/latest/segment in the generatedllms.txtwith the component's actual GA version.ui/supplemental/llms.txtstays human-readable (latesteverywhere); modules that only exist in a prerelease version remain pinned to that version until GA.latest-versions.js,static-files.test.js).ui/AGENTS.md: documents the llms.txt maintenance and version resolution rules (loaded on demand; the rootAGENTS.mdis unchanged).Testing
npm run antora && npm test: 51 passed, 0 failed, 1 skipped.Co-authored by Martin Mattel, who authored the original commits.