Scripts
On every commit:
Scrape every markdown file for feature flag in vars
FEATURE_FLAG_KEYFEATURE_FLAG_NAME
If page has a feature flag, render custom integration with request access button
If no flag, ensure no request access button is shown
If page has no feature flags, remove all tags
Create tags for the status of the feature flag
Replace table in feature availability doc with scraped flag metadata
Calculate URL of feature page
We have relative path to feature page in repo
Make a call to GitBook API to fetch site structure
Get the section of the site that is attached to the space which is linked to the parent folder of the feature page in the repo (space ID)
Request access button just pops modal inside of that page
Make a commit:
Updated feature page content
Table in feature availability page
FEEDBACK_BUTTON
Last updated
Was this helpful?