Conversation
…ctions
The deriveSections() function only processed autogenerate and items
entries, silently skipping { slug } entries. The References section uses
explicit slugs for 15 pages, so the common-prefix fallback resolved to
references/ic-interface-spec instead of references, leaving all 15 pages
(plus references/index.md and references/developer-tools) out of llms.txt.
Fix: collect directory prefixes from direct { slug } children when
computing the common-prefix fallback for a group. This gives the
References group a { dir: "references" } section entry so all 16 pages
are correctly included.
Also rename references/index.md title from "Reference" to "References".
ggreif
approved these changes
May 5, 2026
ggreif
left a comment
There was a problem hiding this comment.
Other than the silly (c) => (could be c => ), looks good to me!
Member
Author
|
@ggreif thanks, the silly |
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.
Summary
plugins/astro-agent-docs.mjs: Fixed a bug inderiveSections()where explicit{ slug }sidebar entries were silently ignored when computing the common-prefix fallback for a group. The References section uses explicit slugs for 15 pages (onlyic-interface-spec/usedautogenerate), so the fallback resolved toreferences/ic-interface-specinstead ofreferences. All 16 pages underreferences/were excluded fromllms.txtas a result. Fix: also collect directory prefixes from direct{ slug }children when computing the group fallback.docs/references/index.md: Renamed page title from "Reference" to "References".Impact
llms.txtcoverage goes from 142/158 (90%) to 158/158 (100%), clearing thellms-txt-coveragewarning in theafdocs checkoutput.Sync recommendation
hand-written