kubernetes / website

Kubernetes website and documentation repo:
https://kubernetes.io
Creative Commons Attribution 4.0 International
4.46k stars 14.37k forks source link

Incorrect Display of HTML Code Tags in Declarative Config Task #48323

Open r21gh opened 3 hours ago

r21gh commented 3 hours ago

This is a Bug Report

Problem: In the section for deleting objects managed by kubectl apply, HTML tags are displayed incorrectly for the alternative approach. This results in the raw HTML code being visible instead of the intended formatted content.

Proposed Solution: Using Go comment tags {{- /* Comment Text here */ -}} along with the - character to control whitespace in the layouts/shortcodes/features-state.html file, ensuring proper indentation while preventing unwanted line breaks or spaces in the rendered HTML output.

Page to Update: https://kubernetes.io/docs/tasks/manage-kubernetes-objects/declarative-config/#alternative-kubectl-apply-f-directory-prune

/sig docs /assign /language en

k8s-ci-robot commented 3 hours ago

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](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes-sigs/prow](https://github.com/kubernetes-sigs/prow/issues/new?title=Prow%20issue:) repository.