-
Notifications
You must be signed in to change notification settings - Fork 639
docs: Add API specification links to user guides #4348
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
base: main
Are you sure you want to change the base?
docs: Add API specification links to user guides #4348
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: YASHMAHAKAL The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Welcome @YASHMAHAKAL! |
|
Hi @YASHMAHAKAL. Thanks for your PR. I'm waiting for a github.com member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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-sigs/prow repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR enhances user guide documentation by adding links to the API specification for key Gateway API types. The changes make it easier for users to navigate from conceptual guide documentation to detailed API reference documentation for the types and fields being discussed.
- Adds API specification links following the established pattern
../reference/spec.md#gateway.networking.k8s.io/v1.<TypeName> - Links are added inline within explanatory text where API types are first introduced or discussed
- All links point to v1 API types, consistent with the current GA status of the referenced types
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| site-src/guides/getting-started/simple-gateway.md | Added API spec links for core concepts: Gateway, GatewayClass, ParentReference, and HTTPBackendRef |
| site-src/guides/grpc-routing.md | Added API spec link for GRPCRoute type |
| site-src/guides/http-cors.md | Added API spec link for HTTPCORSFilter |
| site-src/guides/http-header-modifier.md | Added API spec links for RequestHeaderModifier and ResponseHeaderModifier (both link to HTTPHeaderFilter) |
| site-src/guides/http-method-matching.md | Added API spec link for HTTPRouteMatch |
| site-src/guides/http-query-param-matching.md | Added API spec link for HTTPQueryParamMatch |
| site-src/guides/http-request-mirroring.md | Added API spec link for HTTPRequestMirrorFilter |
| site-src/guides/http-timeouts.md | Added API spec link for HTTPRouteTimeouts |
| site-src/guides/tls.md | Added API spec links for Listener, GatewayTLSConfig, and BackendTLSPolicy |
| site-src/guides/traffic-splitting.md | Added API spec link for HTTPBackendRef (weights) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
b5f7b53 to
c39a406
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 10 out of 10 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Add links to relevant API specification sections in documentation guides to improve navigation between practical examples and detailed API documentation. This addresses issue 4347 by adding links to the following guides: - HTTP feature guides (CORS, timeouts, method matching, etc.) - gRPC and traffic splitting guides - TLS configuration guide - Getting started guide All links follow the established pattern used in existing guides and reference the correct v1 API types. Fixes 4347 Signed-off-by: YASHMAHAKAL <[email protected]>
c39a406 to
6f40c27
Compare
|
/ok-to-test |
rikatz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The links are broken :( I've left a comment on how you can check the pre-rendered pages.
|
|
||
| The Gateway represents the instantiation of a logical load balancer and the | ||
| GatewayClass defines the load balancer template when users create a Gateway. | ||
| The [Gateway](../../reference/spec.md#gateway.networking.k8s.io/v1.Gateway) represents the instantiation of a logical load balancer and the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The links seem to be generated wrong.
As an example, here it should be something like:
../../reference/spec/#gateway
If you want to take a look how your pages are generated, and check for any broken link, please do at the preview page: https://deploy-preview-4348--kubernetes-sigs-gateway-api.netlify.app/
This page is updated once you update your PR.
Thanks!
|
greetings @rikatz !! Thank you for your review and suggestions, i'll be making corrections as suggested...Anything else you expect regarding the changes or any advice ?? |
Signed-off-by: YASHMAHAKAL <[email protected]>
Signed-off-by: YASHMAHAKAL <[email protected]>
Signed-off-by: YASHMAHAKAL <[email protected]>
Signed-off-by: YASHMAHAKAL <[email protected]>
|
Greetings @rikatz, As per your suggestions, i've made required appropriate corrections... Would like to know if anything still wrong : ) |
Signed-off-by: YASHMAHAKAL <[email protected]>
docs: Add API specification links to user guides
What type of PR is this?
/kind documentation
What this PR does / why we need it:
This PR adds links to the API specification from user guides, making it easier for users to navigate from guide documentation to the detailed API reference for the types and fields being discussed.
Which issue(s) this PR fixes:
Fixes #4347
Description:
Added API specification links to 10 user guide files, linking relevant API types to their definitions in the generated API reference documentation. Each link points to
../reference/spec.md#gateway.networking.k8s.io/v1.<TypeName>following the established pattern used elsewhere in the documentation.Files Modified:
site-src/guides/getting-started/simple-gateway.md
Gateway,GatewayClass,ParentReference,HTTPBackendRefsite-src/guides/grpc-routing.md
GRPCRoutesite-src/guides/http-cors.md
HTTPCORSFiltersite-src/guides/http-header-modifier.md
HTTPHeaderFilter(for both RequestHeaderModifier and ResponseHeaderModifier)site-src/guides/http-method-matching.md
HTTPRouteMatchsite-src/guides/http-query-param-matching.md
HTTPQueryParamMatchsite-src/guides/http-request-mirroring.md
HTTPRequestMirrorFiltersite-src/guides/http-timeouts.md
HTTPRouteTimeoutssite-src/guides/tls.md
Listener,GatewayTLSConfig,BackendTLSPolicysite-src/guides/traffic-splitting.md
HTTPBackendRef