Skip to content
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

Generate API reference using Make #191

Merged
merged 1 commit into from
May 15, 2024

Conversation

zregvart
Copy link
Member

This was helpful to generate the API docs locally so I can preview and run the link checker to check for broken links.

Adds the tools/go.mod so the version of crd-ref-docs can be pinned, and the tool can be run using go run.

In essence one can do make api-docs to generate the Markdown files in content/ref. There is a small issue with the
service-provider-integration-operator, it needs an additional go mod tidy if golang version is newer than 1.20. To fix that run make api-docs once to clone the repository, then cd crd-temp/service-provider && go mod tidy and rerun make api-docs.

This was helpful to generate the API docs locally so I can preview and
run the link checker to check for broken links.

Adds the `tools/go.mod` so the version of `crd-ref-docs` can be pinned,
and the tool can be run using `go run`.

In essence one can do `make api-docs` to generate the Markdown files in
`content/ref`. There is a small issue with the
`service-provider-integration-operator`, it needs an additional
`go mod tidy` if golang version is newer than 1.20. To fix that run
`make api-docs` once to clone the repository, then
`cd crd-temp/service-provider && go mod tidy` and rerun `make api-docs`.
@zregvart zregvart mentioned this pull request May 14, 2024
@ralphbean ralphbean merged commit de8ffec into konflux-ci:hugo-build May 15, 2024
1 check passed
@zregvart zregvart deleted the pr/api-docs-makefile branch May 16, 2024 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants