-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
Migrate to updated API reference generator #25505
Comments
Is there a suggested timeline for making the proposed changes? |
My sketch for part of an idea: replace the current API reference with a page that uses JavaScript to calculate a redirect to the correct URL (based on the fragment identifier and some other information). That would allow us to update existing inbound links gradually, including across the 12 downstream localizations. It would I think take that clean up away from the critical path for migrating, too. For a long term migration away from that we could make a whole new redirection service eg https://api.k8s.io/example.k8s.io/v1beta1/KindOfObjectGoesHere - but we don't need to do that immediately, or even at all. |
I was thinking that the root path for the API reference pages could serve as the new API reference URL (add a redirect)? Perhaps the static assets and single HTML page can remain until every localization has updated their files. |
Should we consider the coexistence of the two API reference representations for one or two release cycles? |
I really would prefer not to break these URIs because they are referenced in code and documentation all over the web. That's why I really like the idea of a long lived helper that redirects to the new home. |
Yes, that seems reasonable. I have not thought about the timeline for completely switching over.
|
Another option that we could consider:
|
I'm updating the intra-links. I've changed the links in the Concepts and Tasks, I still have to change the links in the Reference section. The changes are visibile in the PR #23294
|
PR #23294 has merged. I'll approach Kubernetes SIG Architecture to co-ordinate communications and other tasks about deprecating and moving away from the existing API documentation. SIG Docs' preference is to shift away as part of a Kubernetes release (eg v1.21). One reason for this is that each release so far has broken the old API reference URLs anyway. |
@reylejano are you happy to have this tracked against v1.21? |
one good thing about the old format is that it was easier to search the whole API reference using a browser Ctrl+F (search), since it was all on the same page. |
Perhaps there's a way to improve the search(ability). For example, add an index to the foot of each API reference page. |
Thanks for the update! I especially like how much better it renders on mobile devices. Here is some initial feedback on the organization and rendering:
|
@sftim Yes, I'm comfortable with this being tracked against v1.21. I want to review and capture any process changes for the release for the docs role handbook timeline. |
We also need to add a redirect so that https://kubernetes.io/docs/reference/kubernetes-api/labels-annotations-taints/ points to the new page at https://kubernetes.io/docs/reference/labels-annotations-taints/ |
Hi. As part of the migration, I'd like to understand the API categories and work on resolving some of the questions about navigation.
Re: Comment:
Re: More comments:
|
I need to talk to SIG Architecture about stability (or not) of the URLs here. |
i think this is rather important. |
I agree, that sounds like a separate issue. |
Catching up on this discussion. Can you provide more details on: |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
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. /close |
@k8s-triage-robot: Closing this issue. 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. |
/reopen |
@sftim: Reopened this issue. 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. |
I'm happy to keep working on this as time allows |
/unassign I haven't made much progress - when I get chunks of time, I'm spending those instead on other tasks; notably, https://kubernetes.io/docs/concepts/services-networking/service/ |
This issue has not been updated in over 1 year, and should be re-triaged. You can:
For more details on the triage process, see https://www.kubernetes.dev/docs/guide/issue-triage/ /remove-triage accepted |
/triage accepted Still useful to provide a consistent reference. |
/wg api-expression What I'd like to see:
|
This is a Feature Request
What would you like to be added
k-sigs/reference-docs has a recently-added
gen-resourcesdocs
generator. Credit to @feloy for hard work on this.Let's switch to using that generator [Preview] and make it the default.
This entails:
Why is this needed
The existing API documentation (example) uses a different style from the rest of the website, is harder to navigate than it could be, and is also difficult to localize.
Whilst it has served the Kubernetes project well, with the arrival of an alternative generation option it is time to look at switching.
Comments
/kind feature
/area web-development
(sic)
also
/language en
Relevant to issue #24441 and to kubernetes/kubernetes#19680
The text was updated successfully, but these errors were encountered: