Validate llms.txt links and update verifier - #3049
Merged
Merged
Conversation
Add runtime validation that the root static/llms.txt only links to files present in the build. Introduced validateRootLlmsLinks() and call it at the end of postProcessLlmsOutput; the build now errors when static/llms.txt contains same-origin links to missing files (downgrades to a warning when sitemap.xml is absent). Copy static/llms.txt into the test outDir earlier in scripts/verify-llms-output.js so local verification exercises the same ordering as a real Docusaurus build. Clarify options.js docs to remind maintainers to update static/llms.txt alongside option changes, and update static/llms.txt content (Infura link and section edits). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
AyushBherwani1998
approved these changes
Sep 3, 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.
Description
Add runtime validation that the root static/llms.txt only links to files present in the build. Introduced validateRootLlmsLinks() and call it at the end of postProcessLlmsOutput; the build now errors when static/llms.txt contains same-origin links to missing files (downgrades to a warning when sitemap.xml is absent). Copy static/llms.txt into the test outDir earlier in scripts/verify-llms-output.js so local verification exercises the same ordering as a real Docusaurus build. Clarify options.js docs to remind maintainers to update static/llms.txt alongside option changes, and update static/llms.txt content (Infura link and section edits).
Issue(s) fixed
Fixes #
Preview
Checklist
External contributor checklist
Note
Low Risk
Changes affect docs build/LLM artifact validation and curated index content, not runtime app auth or user data.
Overview
Adds build-time validation so hand-curated
static/llms.txtcannot keep linking to generatedllms*.txtfiles that no longer exist (the failure mode called out after Services/dashboard outputs were removed).validateRootLlmsLinks()runs at the end ofpostProcessLlmsOutput, after Vercel preview host rewrites, and checks every same-origin markdown link inbuild/llms.txtresolves to a file underoutDir. Full Docusaurus builds fail on broken links; whensitemap.xmlis missing (typical forscripts/verify-llms-output.js), the same issues are warnings so local verification does not fail on absentllms-all-*.txtindexes.The verify script now copies
static/llms.txtinto the testoutDirbefore post-processing, matching production ordering (static copy beforepostBuild).options.jsdocuments thatstatic/llms.txtmust stay in sync withcustomLLMFilesandALL_PAGES_BUCKETS.static/llms.txtdrops stale Services/dashboard links and points Infura APIs/dashboard docs atdocs.infura.io/llms.txtinstead.Reviewed by Cursor Bugbot for commit 3adb981. Bugbot is set up for automated code reviews on this repo. Configure here.