Skip to content

Commit c1ee2e7

Browse files
committed
Merge branch 'main' of https://github.com/bazel-contrib/rules_python into sphinxdocs.file.xrefs
2 parents 2600493 + dcf0511 commit c1ee2e7

File tree

1 file changed

+6
-2
lines changed
  • sphinxdocs/src/sphinx_bzl

1 file changed

+6
-2
lines changed

sphinxdocs/src/sphinx_bzl/bzl.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,12 @@ def _make_xrefs_for_arg_attr(
390390
descr=index_description,
391391
),
392392
),
393-
# This allows referencing an arg as e.g `funcname.argname`
394-
alt_names=[anchor_id],
393+
alt_names=[
394+
# This allows referencing an arg as e.g `funcname.argname`
395+
anchor_id,
396+
# This allows referencing an arg as simply `argname`
397+
arg_name
398+
],
395399
)
396400

397401
# Two changes to how arg xrefs are created:

0 commit comments

Comments
 (0)