Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil TrzciƄski <ayufan@ayufan.eu>2021-04-23 13:28:02 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2021-04-23 13:28:02 +0300
commit0937692dbb9b8a68b4cd4d8397676a0fd5b80230 (patch)
tree4660677b9bd99a54af1b9b67040a663c6c46fcf2 /README.md
parentfb7ce2e82d38f5a3367dcac9490ca71bad8cc312 (diff)
Extends `docs.gitlab.com` with feature flags table
Diffstat (limited to 'README.md')
-rw-r--r--README.md25
1 files changed, 24 insertions, 1 deletions
diff --git a/README.md b/README.md
index e7847970..a70acd60 100644
--- a/README.md
+++ b/README.md
@@ -561,7 +561,6 @@ To unpublish a survey:
This step is optional, but it's good to have the link removed so that it's
not exposed when no new survey answers are needed.
-
## CSP header
The GitLab docs site uses a [Content Security Policy (CSP) header](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP)
@@ -615,3 +614,27 @@ it with:
To test that the CSP header works as expected, you can visit
<https://cspvalidator.org/> and paste the URL that you want tested.
+
+## Generate the feature flag tables
+
+The [feature flag tables](https://docs.gitlab.com/ee/user/feature_flags.html) are generated
+dynamically when GitLab Docs are published.
+
+To generate these tables locally:
+
+1. Link the relevant GitLab directories to your checkout of `gitlab-docs` project:
+
+ ```shell
+ ln -s <path_to_gitlab>/config/feature_flags tmp/feature_flags
+ ln -s <path_to_gitlab>/ee/config/feature_flags tmp/feature_flags-ee
+ ```
+
+1. Generate `content/_data/feature_flags.yaml`:
+
+ ```shell
+ bundle exec rake generate_feature_flags
+ ```
+
+ Do this any time you want fresh data from your GitLab checkout.
+
+Any time you rebuild the site using `nanoc`, the feature flags tables are populated with data.