Skip to content

Latest commit

 

History

History

README.md

Documentation

docs.flagsmith.com is built using Docusaurus 2, a modern static website generator.

Installation

npm install

Local Development

make serve

This 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.0

Checking your changes with prettier

After you make changes to the documentation, you can check the changes by running the following command:

make lint

If you want to apply any fixes discovered, you can run the following command:

npx prettier <YOUR_DOC> --write

OpenAPI generator

We 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-docs

Build

npm run build

This command generates static content into the build directory and can be served using any static contents hosting service.

Deployment

This site is set to auto deploy to Vercel.