-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto-generate CRD Documentation #1342 #1720
Conversation
I see descriptions on a lot of fields are missing. We need to add missing comments on the struct fields. This can be handled separately. |
@PrasadG193 I have made changes to the Makefile as well, so now when the command |
Added the command in make docs now so when make docs command is ran, the API CRD documentation is also created automatically with "API.md" name, created a folder called template which contains all the necessary files (template files, place-holder go file, json file and executable binary file) which are used/needed in the creating of the API CRD documentation Signed-off-by: Kartik-Garg <[email protected]>
Added the command in make docs now so when make docs command is ran, the API CRD documentation is also created automatically with "API.md" name, created a folder called template which contains all the necessary files (template files, place-holder go file, json file and executable binary file) which are used/needed in the creating of the API CRD documentation Signed-off-by: Kartik-Garg <[email protected]>
Co-authored-by: kale-amruta <[email protected]>
Auto-Generation of API CRD documentation
I have made final changes in the makefile now, so even if any changes/modifications are made(comments on struct fields), when the command Output of the |
Change Overview
Created CRD documentation using https://github.com/ahmetb/gen-crd-api-reference-docs/ , in response to the issue #1342 , added template folder, which contains files, which are used by the auto CRD generator tool, to create the CRD documentation, the documentation is named as "API.md" .
Signed-off-by: Kartik-Garg [email protected]
Plan of action :
/path/to/gen-crd-api-reference-docs \ -config "/path/to/example-config.json" \ -api-dir "github.com/knative/build/pkg/apis/build/v1alpha1" \ -out-file docs.html
Pull request type
Please check the type of change your PR introduces:
Issues
Test Plan