Skip to content

Commit 2552f1f

Browse files
georgesfarahclaude
andcommitted
docs: correct broken anchor link in py_test docstring for Bazel registry docs
The Bazel registry (registry.bazel.build) renders function/macro definition anchors with a `function-` prefix (e.g. `id="function-py_binary"`), but the `py_test` docstring linked to `./py_binary.md` (a relative file path), which resolves to a 404 on the registry. Fix: - `./py_binary.md` -> `#function-py_binary` in `py_test` macro docstring Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 70e8137 commit 2552f1f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/defs.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def py_binary(name, srcs = [], main = None, **kwargs):
143143
)
144144

145145
def py_test(name, srcs = [], main = None, pytest_main = False, **kwargs):
146-
"""Identical to [py_binary](./py_binary.md), but produces a target that can be used with `bazel test`.
146+
"""Identical to [py_binary](#function-py_binary), but produces a target that can be used with `bazel test`.
147147
148148
Args:
149149
name: Name of the rule.

0 commit comments

Comments
 (0)