forked from vmware-tanzu/nsx-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate crd docs (vmware-tanzu#938) (vmware-tanzu#939)
Generate crd docs and improve some descriptions in crd Signed-off-by: Yanjun Zhou <[email protected]>
- Loading branch information
Showing
12 changed files
with
1,391 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
processor: | ||
ignoreTypes: | ||
- ".*List$" | ||
ignoreFields: | ||
- "TypeMeta$" | ||
render: | ||
kubernetesVersion: 1.24 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -160,6 +160,27 @@ code-generator: ## Download code-generator locally if necessary. | |
generated: code-generator | ||
./hack/update-codegen.sh | ||
|
||
CRD_REF_DOCS = $(shell pwd)/bin/crd-ref-docs | ||
.PHONY: crd-ref-docs | ||
crd-ref-docs: ## Install crd-ref-docs | ||
$(call go-get-tool,$(CRD_REF_DOCS),github.com/elastic/[email protected]) | ||
|
||
.PHONY: generate-api-docs | ||
generate-api-docs: crd-ref-docs | ||
generate-api-docs: ## Generate API documentation | ||
$(CRD_REF_DOCS) \ | ||
--renderer=markdown \ | ||
--source-path=./pkg/apis/vpc/v1alpha1 \ | ||
--config=./.crd-ref-docs/config.yaml \ | ||
--output-path=./docs/ref/apis/ | ||
mv ./docs/ref/apis/out.md ./docs/ref/apis/vpc.md | ||
$(CRD_REF_DOCS) \ | ||
--renderer=markdown \ | ||
--source-path=./pkg/apis/legacy/v1alpha1 \ | ||
--config=./.crd-ref-docs/config.yaml \ | ||
--output-path=./docs/ref/apis/ | ||
mv ./docs/ref/apis/out.md ./docs/ref/apis/legacy.md | ||
|
||
ENVTEST = $(shell pwd)/bin/setup-envtest | ||
.PHONY: envtest | ||
envtest: ## Download envtest-setup locally if necessary. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.