Skip to content

Latest commit

 

History

History
 
 

docs

Website

This website is built using Docusaurus 2, a modern static website generator.

Installation

npm install

Local Development

npm run start

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:

npx prettier --check docs

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. If static/api-static/edge-api.yaml changes you will need to rebuild the static files with:

npm run docusaurus clean-api-docs all
npm run docusaurus gen-api-docs all

and then commit them.

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.