* Support server-side Terraform as cloud resource provider Provide another schematic `Terraform` to provision cloud resource. Fix #698 * make namespace optional add unit-tests * support vela show to generate componentdefinition usage * add unit-tests * tidy go mod * clean go mod and updated go sum * Remove `variable` from `properties` of Terraform compoent * don't literally set component catagory * refine error message when a capability could not be found * fix ut * Code refactor and add unittests * fix ci issues * Update references/plugins/references.go Co-authored-by: Jianbo Sun <wonderflow.sun@gmail.com> * add test cases * fix ci issue * revert lowercase of "Properties" * fix ci issue * add ut for appfile * fix e2e issue * add docs * fix official site build Co-authored-by: Jianbo Sun <wonderflow.sun@gmail.com>
Contributing to KubeVela Docs
Here is the source documentation of Kubevela website.
Any files modifid here will trigger the check-docs Github action to run and validate the docs could be build successfully into the website.
Any changes on these files(docs/en/*, docs/en/resource/*, sidebars.js) will be submitted to the corresponding locations of the repo
kubevela.io. The Github-Action there will parse the document and publish it to the Kubevela Website automatically.
Please follow our guides below to learn how to write the docs in the right way.
Add or Update Docs
When you add or modify the docs, these three files(docs/en/, docs/en/resource/ and sidebars.js) should be taken into consideration.
-
docs/en/, the main English documentation files are mainly located in this folder. All markdown files need to follow the format, that the title at the beginning should be in the following format:--- title: Title Name ---When you want to add a link refer to any
.mdfiles inside the docs(docs/en), you need to use relative path and remove the.mdsuffix. For example, theen/helm/component.mdhas a link refer toen/platform-engineers/definition-and-templates.md. Then the format should like:[the definition and template concepts](../platform-engineers/definition-and-templates) -
docs/en/resource/, image files are located in this folder. When you want to use link any image in documentation, you should put the image resources here and use a relative path like below: -
sidebars.js, this file contain the navigation information of the KubeVela website. Please read the official docs of docusaurus to learn how to writesidebar.js.{ type: 'category', label: 'Capability References', items: [ // Note!: here must be add the path under "docs/en" 'developers/references/README', 'developers/references/workload-types/webservice', 'developers/references/workload-types/task', ... ], },
Local Development
You can preview the website locally with the node and yarn installed.
Every time you modify the files under the docs, you need to re-run the following command, it will not sync automatically:
make docs-start
Build in Local
You can build Kubevela website in local to test the correctness of docs, only run the following cmd:
make docs-build