Add script to build release documentation

The script builds a snapshot of the documentation, based on the state in the release branch.
Next, it rewrites all links to point to the versioned documentation for that release.
Finally, it creates an archive of all documentation files.

Closes #15686.

PiperOrigin-RevId: 460684222
Change-Id: Ic466e9e72cc862079f0551703fc2a16701888a2e
diff --git a/scripts/docs/README.md b/scripts/docs/README.md
new file mode 100644
index 0000000..73e2517
--- /dev/null
+++ b/scripts/docs/README.md
@@ -0,0 +1,21 @@
+# Bazel Release Documentation
+
+This directory contains scripts to build the versioned documentation for a new Bazel release.
+
+## Build release documentation
+
+You can build the release documentation by running this command from within a release branch:
+
+```
+bazel build //scripts/docs:gen_release_docs --config=docs
+```
+
+This is only necessary for testing, though. There is a separate pipeline that handles this task for actual Bazel releases.
+
+## Test scripts
+
+You can test some of the scripts by running the following command:
+
+```
+bazel test --test_output=streamed //scripts/docs:rewriter_test
+```