[py] replace rules_python sphinxdocs with local sphinx_docs rule#17461
Merged
Conversation
Contributor
Review Summary by QodoReplace rules_python sphinxdocs with local sphinx_docs rule
WalkthroughsDescription• Replace external rules_python sphinxdocs with local sphinx_docs rule • Implement custom Bazel rule for building Sphinx documentation • Switch sphinx-build from sphinx_build_binary to py_console_script_binary • Simplify sphinx_docs target configuration and dependencies Diagramflowchart LR
A["rules_python sphinxdocs"] -->|"removed"| B["Local sphinx_docs.bzl"]
C["sphinx_build_binary"] -->|"replaced with"| D["py_console_script_binary"]
B -->|"used in"| E["py/BUILD.bazel"]
D -->|"used in"| E
File Changes1. py/private/sphinx_docs.bzl
|
Contributor
Code Review by Qodo
Context used 1. CWD-dependent Sphinx config
|
cgoldberg
approved these changes
May 15, 2026
This was referenced Jun 16, 2026
This was referenced Jun 22, 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.
🔗 Related Issues
Fixes #17404
💥 What does this PR do?
Move sphinxdocs into our repo since rules_python removes it
🔧 Implementation Notes
Used py_console_script_binary instead of a script wrapper since it seems more straightforward
🤖 AI assistance
🔄 Types of changes