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

Crdgendoc #432

Merged
merged 7 commits into from
Jun 27, 2024
Merged

Crdgendoc #432

merged 7 commits into from
Jun 27, 2024

Conversation

mfrancisc
Copy link
Contributor

Description

Jira: https://issues.redhat.com/browse/KUBESAW-119

This PR introduces CRD reference docs generation support to the make generate command.

It uses the latest version of the crd-ref-docs CLI. I've tried using this one https://github.com/ahmetb/gen-crd-api-reference-docs?tab=readme-ov-file but it doesn't seem to work. Also the online service keeps seems stuck while indexing our repo: https://doc.crds.dev/github.com/codeready-toolchain/api

As output a file api/v1alpha1/docs/apiref.adoc is generated which contains all the API documentation, changes to this file would need to be committed as any other change.

Checks

  1. Did you run make generate target? yes

  2. Did make generate change anything in other projects (host-operator, member-operator)? no

  3. In case of new CRD, did you the following? N/A

  4. In case other projects are changed, please provides PR links.

Copy link
Contributor

@filariow filariow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

really nice, just some minor nits.

make/generate.mk Outdated Show resolved Hide resolved
README.adoc Outdated Show resolved Hide resolved
api/v1alpha1/docs/.keep Outdated Show resolved Hide resolved
Copy link
Contributor

@MatousJobanek MatousJobanek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks nice 🤩


render:
# Version of Kubernetes to use when generating links to Kubernetes API documentation.
kubernetesVersion: 1.20
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ranakan19 keep this line in mind when updating the dependencies

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll be bumping it to 1.27 though

make/generate.mk Outdated Show resolved Hide resolved
make/generate.mk Outdated Show resolved Hide resolved
make/generate.mk Outdated Show resolved Hide resolved
mfrancisc and others added 2 commits June 26, 2024 14:59
Co-authored-by: Matous Jobanek <[email protected]>
Co-authored-by: Matous Jobanek <[email protected]>
Copy link
Contributor

@MatousJobanek MatousJobanek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool 👍 🥇
It's simpler than I expected 🚀

@mfrancisc mfrancisc requested a review from filariow June 26, 2024 13:10
Copy link
Contributor

@filariow filariow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice! LGTM

@mfrancisc mfrancisc merged commit f4a7654 into codeready-toolchain:master Jun 27, 2024
2 checks passed
@mfrancisc mfrancisc deleted the crdgendoc branch June 27, 2024 08:42
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.

4 participants