Skip to content

Commit ad9abe5

Browse files
committed
internal/experiment: create command-toc experiment
Creates an experiment to enable the table of contents for command documention pages. For golang/go#38073 Change-Id: I192a1b523b6df0c96dc16602a6fc8898c7ad2069 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/288552 Trust: Jamal Carvalho <[email protected]> Run-TryBot: Jamal Carvalho <[email protected]> TryBot-Result: kokoro <[email protected]> Reviewed-by: Jonathan Amsterdam <[email protected]>
1 parent 0675147 commit ad9abe5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/experiment.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
package internal
77

88
const (
9+
ExperimentCommandTOC = "command-toc"
910
ExperimentDirectoryTree = "directory-tree"
1011
ExperimentNotAtLatest = "not-at-latest"
1112
ExperimentRedirectedFromBanner = "redirected-from-banner"
@@ -14,6 +15,7 @@ const (
1415
// Experiments represents all of the active experiments in the codebase and
1516
// a description of each experiment.
1617
var Experiments = map[string]string{
18+
ExperimentCommandTOC: "Enable the table of contents for command documention pages.",
1719
ExperimentDirectoryTree: "Enable the directory tree layout on the unit page.",
1820
ExperimentNotAtLatest: "Enable the display of a 'not at latest' badge.",
1921
ExperimentRedirectedFromBanner: "Display banner with path that request was redirected from.",

0 commit comments

Comments
 (0)