update links to gazelle docs (#3464)

diff --git a/README.rst b/README.rst
index 062c76c..4003fec 100644
--- a/README.rst
+++ b/README.rst
@@ -46,7 +46,7 @@
 .. _go_proto_compiler: proto/core.rst#go_proto_compiler
 .. _go_proto_library: proto/core.rst#go_proto_library
 .. _go_register_toolchains: go/toolchains.rst#go_register_toolchains
-.. _go_repository: https://github.com/bazelbuild/bazel-gazelle/blob/master/repository.rst#go_repository
+.. _go_repository: https://github.com/bazelbuild/bazel-gazelle/blob/master/repository.md#go_repository
 .. _go_rules_dependencies: go/dependencies.rst#go_rules_dependencies
 .. _go_source: docs/go/core/rules.md#go_source
 .. _go_test: docs/go/core/rules.md#go_test
diff --git a/go/dependencies.rst b/go/dependencies.rst
index a185b0b..0162f1e 100644
--- a/go/dependencies.rst
+++ b/go/dependencies.rst
@@ -28,7 +28,7 @@
 .. _go_library: /docs/go/core/rules.md#go_library
 .. _go_proto_library: https://github.com/bazelbuild/rules_go/blob/master/proto/core.rst#go-proto-library
 .. _go_register_toolchains: toolchains.rst#go_register_toolchains
-.. _go_repository: https://github.com/bazelbuild/bazel-gazelle/blob/master/repository.rst#go_repository
+.. _go_repository: https://github.com/bazelbuild/bazel-gazelle/blob/master/repository.md#go_repository
 .. _go_toolchain: toolchains.rst#go_toolchain
 
 .. Other rules