Commit 9cfdfd8
authored
sphinxdocs: make xrefs to tag class attributes using attr role work (#2895)
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.1 parent d91e9b2 commit 9cfdfd8
File tree
3 files changed
+7
-2
lines changed- sphinxdocs
- src/sphinx_bzl
- tests/sphinx_stardoc
3 files changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1156 | 1156 | | |
1157 | 1157 | | |
1158 | 1158 | | |
1159 | | - | |
| 1159 | + | |
1160 | 1160 | | |
1161 | 1161 | | |
1162 | | - | |
| 1162 | + | |
1163 | 1163 | | |
1164 | 1164 | | |
1165 | 1165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
0 commit comments