Repository navigation
Follow-up hardening for the LLM knowledge index - #3494
Merged
Merged
Conversation
docs are only indexed for the rolling main and old versions should not be accepted or reported as succesfull
Headings without a usable section id skipped the occurrence counter while markdown still counted them, so later repeats could deep-link to the wrong section. Count every titled heading; only record anchors when present.
deruyter92
marked this pull request as ready for review
September 9, 2026 07:07
Member
Agreed |
Use each target symbol's canonical path when building `docs_url` entries in the API index. This keeps generated links pointed at the defining module instead of the exporting module, which fixes documentation URLs for re-exported or aliased symbols.
Improve the CLI error shown when knowledge indexing has no work to do. The message now explains whether docs were skipped explicitly or excluded because the version label is not the docs index version, making the failure easier to understand.
Update API symbol indexing so class method URLs are built from the class’s canonical module path instead of the re-exporting module path. This keeps method anchors aligned with mkdocstrings output while preserving the re-exported name in the indexed symbol. Tests were updated to assert both the class URL and its method URL for a root-level re-export.
Add a brief comment to the llms.txt knowledge indexing test explaining why the stable and rolling API URLs point to landing pages instead of `reference/`, which would 404 for `api-autonav`.
`API_ROOT_URI` and `EXCLUDED_MODULES` in `api_index.py` mirror `plugins.api-autonav` in `dev-docs/mkdocs.yml`. The module docstring and `tools/knowledge_indexing/README.md` both state they must be kept in sync, which is now tested.
Member
|
@deruyter92 See the follow-up fixes; thanks! |
C-Achard
approved these changes
Sep 11, 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.
#3453 introduced a new knowledge-indexing system that deploys indexes of the user docs and API references in JSONL files and a central llms.txt that points to the latest sources.
This follow-up PR implements some follow-up hardening based on additional review and testing (thanks to @C-Achard):
--skip-apion non-mainlabels when that would leave nothing to do (was a silent success).keep_filesdeploys forever.Review points not implemented:
::::{warning}admonitions are still ignored in the summaries (they only exist in some hardly-used recipes)dev-docsdependency extra is not re-implemented. I kept the dev-docs depencency group as a group not extra. I think we are the only ones using them so I believe it is fine to "break" the old installation contract of--extra dev-docs.