This repository contains the source content and codes for API7.ai's documentation website. It's built using Docusaurus 2 and deployed with API7.ai's infrastructure.
$ npm i
$ npm run start
$ npm run build
Refer to https://github.com/api7/docs/pull/45
Docusaurus's Official Documents: https://docusaurus.io/docs/create-doc
- Git clone this repository.
git clone [email protected]:api7/docs.apiseven.com.git
- Create a new branch.
# Replace $BRANCH_NAME with your branch name
git checkout -b $BRANCH_NAME
-
Create a new file in the corresponding directory, for example,
enterprise_versioned_docs/version-xxx/xxx.md
. For the markdown format, please refer todocs/enterprise/demo.md
. -
Add the file to the corresponding sidebar, for example,
enterprise_versioned_sidebars/version-xxx-sidebars.json
. If the sidebar does not exist, create a new one. -
Commit and push your changes.