Update CLI Reference
This guide introduce how to update CLI reference doc in the website. The whole process was done by script automatically. You need to follow this guide to build your environment.
- step up these two projects in the same folder.
$ tree -L 1
.
├── kubevela
└── kubevela.io
- Run generate command in kubevela root dir.
cd kubevela/
go run ./hack/docgen/cli/gen.go
- Update more docs such as i18n zh
$ go run ./hack/docgen/cli/gen.go ../kubevela.io/i18n/zh/docusaurus-plugin-content-docs/current/cli
scanning rootPath of CLI docs for replace: ../kubevela.io/i18n/zh/docusaurus-plugin-content-docs/current/cli
- Then you can check the difference in kubevela.io.
cd ../kubevela.io
git status