diff options
author | Kamil TrzciĆski <ayufan@ayufan.eu> | 2021-04-23 13:28:02 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2021-04-23 13:28:02 +0300 |
commit | 0937692dbb9b8a68b4cd4d8397676a0fd5b80230 (patch) | |
tree | 4660677b9bd99a54af1b9b67040a663c6c46fcf2 /README.md | |
parent | fb7ce2e82d38f5a3367dcac9490ca71bad8cc312 (diff) |
Extends `docs.gitlab.com` with feature flags table
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 25 |
1 files changed, 24 insertions, 1 deletions
@@ -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. |