website icon indicating copy to clipboard operation
website copied to clipboard

Duplicate content in API reference pages

Open bismayam opened this issue 4 months ago • 7 comments

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.

Image

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.

bismayam avatar Jul 07 '26 15:07 bismayam

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.

kubernetes-prow[bot] avatar Jul 07 '26 15:07 kubernetes-prow[bot]

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.

lmktfy avatar Jul 07 '26 23:07 lmktfy

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 avatar Jul 07 '26 23:07 lmktfy

@lmktfy I would like to contribute to this.

ranibharti385 avatar Jul 14 '26 17:07 ranibharti385

/assign

ranibharti385 avatar Jul 14 '26 17:07 ranibharti385

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/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was 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

k8s-triage-robot avatar Oct 22 '26 21:10 k8s-triage-robot

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/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was 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

k8s-triage-robot avatar Nov 21 '26 22:11 k8s-triage-robot