Include section-level optionalLinks in llms.txt - #33
Open
taylorreece wants to merge 2 commits into
Open
Conversation
Section-level `optionalLinks` were parsed and validated but never read by anything that produced output — only global `llmsTxt.optionalLinks` were rendered. - Carry section optionalLinks through ProcessedSection onto TreeNode - Render them in the section listing, after the section's documents - Seed sections (and their ancestors) that define only optional links so they are not skipped for having no matching routes - Keep sections with optional links or content-bearing descendants in filterValidSections instead of only checking docs.length - Stop reporting a links-only section as an empty-section quality issue, which would throw under onSectionError: 'throw' Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
taylorreece
requested review from
Devon-White,
Manny-r31,
briankwest,
hey-august and
niravcodes
as code owners
August 14, 2026 18:04
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.
Section-level
optionalLinkswere parsed and validated but never read by anything that produced output — only globalllmsTxt.optionalLinkswere rendered.This can be seen in the example repo - if you build
website/, these links (https://github.com/signalwire/docusaurus-plugins/blob/main/website/docusaurus.config.ts#L115-L125) don't appear in llms.txt.This change ensures those links are included.
Description
Type of Change
Related Issues
Testing
Checklist
Additional Notes