-
Notifications
You must be signed in to change notification settings - Fork 472
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
docs: API specification information architecture obscures important content #1031
Comments
Yes, I think we've tended document a lot of the usage of a field in the places where it's used, rather than in the field itself, great point. I think that we should definitely have more link anchors, although I'm not sure if the current doc generator can do it. |
I agree that these would be great improvements. As far as link anchors, I know @jpeach had looked into that earlier, and there's some discussion in ahmetb/gen-crd-api-reference-docs#30. Maybe that's something we can contribute back to gen-crd-api-reference-docs if anyone has time? |
Actually that was easier than expected, looks like anchors can be added with #1046. |
@mikemorris To clarify, do you mean that we should add more detail for each specific resource in our top level comment? IE for the following to look more like our full HTTPRoute docs? gateway-api/apis/v1alpha2/httproute_types.go Lines 31 to 34 in 7409911
|
@robscott I was mostly thinking about the pattern @youngnick mentioned in #1031 (comment), where (entirely within the API Specification page) important usage notes exist on the field where a type is used, rather than on the type itself. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
/remove-lifecycle rotten I think that this may have been a bit addressed by #1243 - I moved some stuff from the |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What would you like to be added:
Listener
heading (or a small anchor link next to it) to navigate to https://gateway-api.sigs.k8s.io/v1alpha2/references/spec/#gateway.networking.k8s.io/v1alpha2.Listener instead of searching for a link from a parent or child field resource.Why this is needed:
This is kinda tricky as it would be a relatively large re-architecture of the API spec reference page, but one of the difficulties I've found has been that linking directly to a resource by its anchor link obscures significant content that only exists in the field description on the parent object, and finding the anchor link itself to link directly is also unintuitive - for example, it doesn't currently appear possible to link directly to the
allowedRoutes
field ofListener
, and linking directly toAllowedRoutes
is missing significant content.The text was updated successfully, but these errors were encountered: