- Run:
git clone https://<YOUR-PAS>@github.com/logzio/logz-api.git
- Cd to the root folder:
cd logz-api
- Add Docusaurus api plugin:
yarn add docusaurus-plugin-openapi-docs
yarn add docusaurus-theme-openapi-docs
- Start local build:
yarn start
-
Follow local deployment instructions
-
Update the api spec under examples/logzio-public-api.yml
-
Delete the relevant mdx file which you updated in the spec
-
Run plugin generate command
yarn docusaurus gen-api-docs logz
-
Follow local deployment instructions
-
Update the api spec under examples/logzio-public-api.yml. Divide the sections using
# ::::: NAMEand create a unique URL, summary, and operationId. -
Add the new section to the relevant section under
sidebar.js. Each category starts with"type":"category", and each page starts with"type":"doc". The ID and label should be unique. -
Save your changes and run the plugin generate command
yarn docusaurus gen-api-docs logzto generate the new page you created.