From cea5f4f499aa832cf90c68898671869ce79d63f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?X=C3=B9d=C5=8Dng=20Y=C3=A1ng?= Date: Sat, 20 Nov 2021 01:11:10 +1100 Subject: [PATCH] Cherrypick Bzlmod documentation (#14301) * Bzlmod: Add documentation (https://github.com/bazelbuild/bazel/issues/13316) Adding first draft of Bzlmod documentation. The part about module extensions is still WIP and will be added later this week. The entire page is expected to be cherrypicked into the 5.0 release. PiperOrigin-RevId: 410606833 * Bzlmod: More documentation about repo names and strict deps RELNOTES: PiperOrigin-RevId: 410615340 * Bzlmod: Generate stardoc for module_extension() and tag_class() (https://github.com/bazelbuild/bazel/issues/13316) Also fixes some minor issues with existing docstrings (dangling links, etc) PiperOrigin-RevId: 410880750 * Bzlmod: Documentation on module extensions (https://github.com/bazelbuild/bazel/issues/13316) PiperOrigin-RevId: 411038059 Co-authored-by: pcloudy --- .../master/sidebar.html | 1 + site/docs/bzlmod.md | 421 ++++++++++++++++++ site/docs/external.md | 5 +- .../bazel/bzlmod/ModuleExtensionContext.java | 8 +- .../lib/bazel/bzlmod/StarlarkBazelModule.java | 8 +- .../starlark/StarlarkRepositoryModule.java | 8 +- 6 files changed, 441 insertions(+), 10 deletions(-) create mode 100644 site/docs/bzlmod.md diff --git a/site/_includes/getting-started-sidebar/master/sidebar.html b/site/_includes/getting-started-sidebar/master/sidebar.html index 0435efe862c40f..af20e28c21297f 100644 --- a/site/_includes/getting-started-sidebar/master/sidebar.html +++ b/site/_includes/getting-started-sidebar/master/sidebar.html @@ -36,6 +36,7 @@

Understanding