doc: describe dynamic config setup

Change-Id: I387cb8c2c7fcd4f58239b56948bca57fc1a326c6
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/259837
Trust: Jonathan Amsterdam <jba@google.com>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Julie Qiu <julie@golang.org>
diff --git a/doc/frontend.md b/doc/frontend.md
index b8b8d504..6b27903 100644
--- a/doc/frontend.md
+++ b/doc/frontend.md
@@ -10,6 +10,21 @@
 The main program lives in `cmd/frontend`. The bulk of the code lives in
 `internal/frontend`.
 
+### Experiments
+
+Set environment variable `GO_DISCOVERY_CONFIG_DYNAMIC` to the filename of a file
+containing experiments in YAML format. The file can be empty, but it must exist.
+Example:
+
+```
+experiments:
+  - name: sidenav
+    rollout: 100
+    description: Display documentation index on the left sidenav.
+```
+
+### Running
+
 You can run the frontend locally like so:
 
     go run ./cmd/frontend [-dev] [-direct_proxy]
diff --git a/doc/worker.md b/doc/worker.md
index f59acac..6fd56ca 100644
--- a/doc/worker.md
+++ b/doc/worker.md
@@ -9,6 +9,21 @@
 
 The main program lives in `cmd/worker`.
 
+### Experiments
+
+Set environment variable `GO_DISCOVERY_CONFIG_DYNAMIC` to the filename of a file
+containing experiments in YAML format. The file can be empty, but it must exist.
+Example:
+
+```
+experiments:
+  - name: sidenav
+    rollout: 100
+    description: Display documentation index on the left sidenav.
+```
+
+### Running
+
 You can run the worker locally like so:
 
     go run ./cmd/worker