Duplicate content in API reference pages
This is a Bug Report
Problem:
Every page under https://kubernetes.io/docs/reference/kubernetes-api/core contains duplicated description/content. The same explanatory text appears more than once, which makes the documentation unnecessarily repetitive and can confuse readers.
One example as shown below is Events has the same description twice with different font.
Proposed Solution:
Page to Update: Every page under - https://kubernetes.io/docs/reference/kubernetes-api/core/
Note: This page is auto-generated in your issue description. The fix may need to happen elsewhere in the Kubernetes project.
This issue is currently awaiting triage.
SIG Docs takes a lead on issue triage for this website, but any Kubernetes member can accept issues by applying the triage/accepted label.
The triage/accepted label can be added by org members by writing /triage accepted in a comment.
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-sigs/prow repository.
Folks who are familiar with Hugo layouts: we have a way to work around this snag, for some pages at least.
Take a look at https://kubernetes.io/docs/reference/kubernetes-api/core/namespace-v1/
Even with the Markdown source we have, we'd be able to use a custom layout here that prefers to use the description from https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ as the page-level description. And then leave
Namespace provides a scope for Names. Use of multiple namespaces is optional.
as part of the running text. That quoted part comes from the OpenAPI, which comes from comments in https://github.com/kubernetes/kubernetes code.
We can edit the layout for API references to prefer to use the description of an associated concept page, if there is exactly one related page that is a concept page. The "Concept documentation for Namespace" part of the layout shows a sketch for how to do this.
Fixing this involves working with the automation. Help is welcome but, whatever route we take, it may not be easy for new contributors to pick up.
For an example of an API reference where a concept description is available, see: https://kubernetes.io/docs/reference/kubernetes-api/core/service-account-v1/
@lmktfy I would like to contribute to this.
/assign
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the issue is closed
You can:
- Mark this issue as fresh with
/remove-lifecycle stale - Close this issue with
/close - Offer to help out with Issue Triage
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.
This bot triages un-triaged issues according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the issue is closed
You can:
- Mark this issue as fresh with
/remove-lifecycle rotten - Close this issue with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten