fix: use {doc} role for symlinked doc references for Sphinx 8.2#778
fix: use {doc} role for symlinked doc references for Sphinx 8.2#778raballew wants to merge 1 commit into
Conversation
Sphinx 8.2 nitpicky mode follows symlinks when resolving markdown
links, discovering package directories outside the source tree and
emitting myst.xref_missing warnings for unresolvable README documents.
Replace markdown links [Title](file.md) with MyST {doc} roles for
all references to symlinked files. The {doc} role resolves through
Sphinx's document name system which stays within the source tree,
avoiding the symlink-following behavior.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThis pull request updates three documentation files to use Sphinx ChangesDocumentation Sphinx link format updates
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
[text](file.md)links, discovering package directories outside the source tree and emitting 47myst.xref_missingwarnings (treated as errors by-W){doc}roles for all references to symlinked files (driver docs + MCP doc){doc}role resolves through Sphinx's document name system which stays within the source tree, avoiding the symlink-following behaviorRoot cause
The driver doc files (e.g.
power.md) are symlinks to package README.md files (e.g.packages/jumpstarter-driver-power/README.md). Whenindex.mdreferences[Power](power.md), Sphinx 8.2 resolves the file path, follows the symlink outside the source tree, and warns about an unresolvableREADMEdocument in the package directory.Files changed
python/docs/source/reference/package-apis/drivers/index.md-- 45 driver linkspython/docs/source/reference/package-apis/index.md-- 1 MCP linkpython/docs/source/getting-started/guides/integration-patterns/agentic.md-- 1 MCP linkTest plan
make -C python clean-docs && make -C python docs-- zero warnings, build succeedscheck-warningsjob passes🤖 Generated with Claude Code