Repository navigation
fix: ensure llms txt links are rewritten - #516
Merged
Merged
Conversation
✅ Deploy Preview for uds-product-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
mjnagel
marked this pull request as ready for review
November 4, 2026 13:00
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryThe PR rewrites links in copied Markdown and MDX before Astro builds the site, so raw LLM exports receive product and version prefixes.
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart LR
A[Copied Markdown and MDX] --> B[Rewrite renamed directory links]
B --> C[Apply product and version link rules]
C --> D[Save rewritten source]
D --> E[Astro site build]
D --> F[Raw LLM exports]
Reviews (1) · Last reviewed commit: "Merge branch 'main' into fix-llms-txt-li..." · Reviewed by Greptile |
chance-coleman
approved these changes
Nov 4, 2026
joelmccoy
approved these changes
Nov 4, 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.
Currently the generated llms txt will emit broken links due to the way links are rewritten for multi-product/version support. For example on https://docs.defenseunicorns.com/llms-small.txt an example related documentation link is:
This leads to a 404, where the correct link requires
/corein front of the link.This PR addresses this by rewriting links before generating the llms txt.