docs.flagsmith.com is built using Docusaurus 2, a modern static website generator.
npm installmake serveThis command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
When forwarding port 3000 from a remote server or VM, you can run the dev server on 0.0.0.0 to make it listen on the local IP.
npm run start -- --host 0.0.0.0After you make changes to the documentation, you can check the changes by running the following command:
make lintIf you want to apply any fixes discovered, you can run the following command:
npx prettier <YOUR_DOC> --writeWe are using the https://github.com/PaloAltoNetworks/docusaurus-openapi-docs plugin to generate the OpenAPI docs.
The source schema is located in sdk/openapi.yaml.
To regenerate the docs, run:
make generate-sdk-api-docsnpm run buildThis command generates static content into the build directory and can be served using any static contents hosting
service.
This site is set to auto deploy to Vercel.