Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

rickeylev
Copy link
Collaborator

The role assigned to attributes within the tag class directive were being given the
role arg, when they should be attr. This caused xrefs using the attr role to
be unable to find them.

To fix, set them to have the correct role, like the repo rule and regular rule
directives do. Also add a test.

@rickeylev rickeylev requested review from groodt and dougthor42 May 17, 2025 20:08
@rickeylev rickeylev requested a review from aignas as a code owner May 17, 2025 20:08
@rickeylev rickeylev enabled auto-merge May 17, 2025 20:08
Copy link
Collaborator

@dougthor42 dougthor42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm kinda surprised that rules_python seems to have such complex sphinx stuff.

My naive thought is that basic ReST and proper sphinx autolinking syntax should be sufficient.

Is a lot of it just so that docs can be built using Bazel? Or because we want to write docs and docstrings as (MyST|markdown) instead of ReST?

@rickeylev rickeylev added this pull request to the merge queue May 17, 2025
Merged via the queue into bazel-contrib:main with commit 9cfdfd8 May 17, 2025
3 checks passed
@rickeylev rickeylev deleted the sphinxdocs.fix.tagclass.attr.xref branch May 17, 2025 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants