rules_py
rules_py copied to clipboard
docs: correct broken anchor link in py_test docstring for Bazel registry docs
Summary
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.
./py_binary.md->#function-py_binaryinpy_testmacro docstring
Note: The same broken anchor pattern also exists for
py_venv_execandpy_venv_exec_testinpy/private/py_venv/py_venv_exec.bzl(#py_binaryand#py_test), but those are not currently rendered on the registry docs page so they are not fixed here.
Test plan
Manual testing:
- Visit https://registry.bazel.build/docs/aspect_rules_py
- In the
py_testmacro description, click the "py_binary" link — currently leads to a broken./py_binary.mdpath (404) - After this fix, the link navigates to the
py_binarymacro section on the same page