internal/experiment: create interactive-playground experiment

Change-Id: Iafd3d8527b5746de99fc0fc4b084e399b3abefaa
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/293831
Trust: Jamal Carvalho <jamal@golang.org>
Run-TryBot: Jamal Carvalho <jamal@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
This commit is contained in:
Jamal Carvalho 2021-02-17 17:11:49 -05:00
Родитель f27d2df993
Коммит 1761d9bf3b
1 изменённых файлов: 12 добавлений и 10 удалений

Просмотреть файл

@ -6,21 +6,23 @@
package internal
const (
ExperimentCommandTOC = "command-toc"
ExperimentDirectoryTree = "directory-tree"
ExperimentInsertSymbolHistory = "insert-symbol-history"
ExperimentNotAtLatest = "not-at-latest"
ExperimentRedirectedFromBanner = "redirected-from-banner"
ExperimentCommandTOC = "command-toc"
ExperimentDirectoryTree = "directory-tree"
ExperimentInsertSymbolHistory = "insert-symbol-history"
ExperimentInteractivePlayground = "interactive-playground"
ExperimentNotAtLatest = "not-at-latest"
ExperimentRedirectedFromBanner = "redirected-from-banner"
)
// Experiments represents all of the active experiments in the codebase and
// a description of each experiment.
var Experiments = map[string]string{
ExperimentCommandTOC: "Enable the table of contents for command documention pages.",
ExperimentDirectoryTree: "Enable the directory tree layout on the unit page.",
ExperimentInsertSymbolHistory: "Insert symbol history data into the symbol_history table.",
ExperimentNotAtLatest: "Enable the display of a 'not at latest' badge.",
ExperimentRedirectedFromBanner: "Display banner with path that request was redirected from.",
ExperimentCommandTOC: "Enable the table of contents for command documention pages.",
ExperimentDirectoryTree: "Enable the directory tree layout on the unit page.",
ExperimentInsertSymbolHistory: "Insert symbol history data into the symbol_history table.",
ExperimentInteractivePlayground: "Enable interactive example playground on the unit page.",
ExperimentNotAtLatest: "Enable the display of a 'not at latest' badge.",
ExperimentRedirectedFromBanner: "Display banner with path that request was redirected from.",
}
// Experiment holds data associated with an experimental feature for frontend