Statsig empowers you to ship, measure, and learn from your releases using the same tools as the best tech companies in the world. With Statsig, you can run thousands of A/B tests, safely rollout features, and dive deep on core business metrics and user behavior—all on a single, unified platform. To get started with Statsig, visit our website or sign up.
This repository is hosted at https://docs.statsig.com.
Community contributions are welcome. Statsig's docs run on Mintlify. Open a PR and request a review in our Slack channel to merge your change in.
There are two ways to contribute:
- Open a Pull Request on Github (via local dev, or by editing in the Github UI)
- Use the Mintlify Visual Editor (Statsig Employees Only)
If you're used to docs-as-code or our old docusaurus setup, #1 is probably the right path - see below for local development instructions. If you'd prefer a snazzy visual interface, message Brock on slack to get setup with a Visual Editor account.
npm i -g mintlify
mintlify dev
Mintlify's overall structure will feel very similar to Statsig's old Docusaurus docs - Its still docs-as-code with .mdx files and similar title/description formatting (frontmatter) as before. You can also still import reusable snippets, with the one wrinkle that they have to be in the /snippets folder.
You'll notice minor component syntax differences in Mintlify:
- The format of Callouts has changed. Where you used to write :::Note Insert my note text :::, you now wrap your text in <Note> and </Note>.
- The format of a lot of other components has had minor changes. For example, what was <Tabs> <TabItem> </TabItem> </Tabs> is now <Tabs> <Tab> </Tab> </Tabs> in Mintlify. You should scan the Mintlify docs to see all of the cool elements they have.
- Code groups are a lot snazzier, and we've migrated a lot of our old Tab usage to Code groups.
- You can't use quite as much React-like syntax as Docusaurus, you won't want to do things like have named exports.
You can find the allowlist of non-dictionary words in styles/config/vocabularies/Mintlify/accept.txt. Add words here as needed, similar to cspell.json in old docs.
- Mintlify dev isn't running - Run
mintlify installit'll re-install dependencies. - Page loads as a 404 - Make sure you are running in a folder with
docs.json