DOC-7128 k8s: convert kubernetes/ images - #4178
Merged
Merged
Conversation
Runs build/migrate_image_shortcodes.py over 22 files in content/operate/kubernetes/ (unversioned pages and all six snapshots), converting 92 image shortcodes to Markdown images. 4 that the codemod can't convert safely stay as shortcodes. There are no raw relative <img> tags in this tree. 39 of the 92 are on deployment/openshift/old-index.md in the 7.4.6, 7.8.4, and 7.8.6 snapshots, which set draft: true and hidden: true. Their body never renders, even with --buildDrafts, so a render comparison can't check them. They use the same standalone-in-list-item pattern verified on rendered pages. Gaps: the 39 images on the draft, hidden old-index pages could not be render-verified Ticket: DOC-7128 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Contributor
Contributor
🧠 Redis MemoryFound 5 related items from repository history (5 new this commit):
Memory updated at 9a9b2ec |
This was referenced Oct 2, 2026
EliShteinman
added a commit
to EliShteinman/docs
that referenced
this pull request
Oct 2, 2026
Converts the image shortcodes in content/operate/kubernetes/ to Markdown images. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DU7o4C5U81DPthewNFn28D
This was referenced Oct 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Converts the
imageshortcodes incontent/operate/kubernetes/to Markdown images, using the codemod from #4151. The scope is the unversioned pages plus all six version snapshots, as in DOC-7120. Part of DOC-7128. This is mechanical: no product-name wording or CRD identifiers are touched.Counts: 92 images converted in 22 files:
8.0.18/8.0/7.22/7.8.6/7.8.4/7.4.6/4 shortcodes stay as shortcodes, because the codemod can't convert them safely: one line in
7.4.6/architectureholds two images, and thefaqspages in7.4.6/and7.8.4/each have an image that shares a paragraph with text. This tree has no raw relative<img>tags, so it doesn't have the problem #4175 fixes inrs/.Rendered changes: none, apart from the dropped
<a sdata-lightbox>wrapper.Verification
mainand this branch under the production baseURL (/docs/latest/): both succeeded (19,664 pages), and the hook reported no missing images.src/width/alt/classfor every image on every page: no differences. In the rendered Kubernetes pages,sdata-lightboxwrappers go from 57 to 4 (the 4 skipped shortcodes), which confirms the converted pages were rebuilt.kubernetes/: no attribute lines and no relative/images/links, and the same 57 absolute image URLs before and after.deployment/openshift/old-index.mdin the7.4.6,7.8.4, and7.8.6snapshots. Those pages setdraft: trueandhidden: true, and their body never renders, even with--buildDrafts. No reader sees them in any build. They use the same standalone-in-list-item pattern that the build confirmed on rendered pages.🤖 Generated with Claude Code
Note
Low Risk
Docs-only markup migration with build verification; the main behavioral delta is loss of lightbox wrapping on converted images, not product or runtime logic.
Overview
Replaces 92 standalone Hugo
{{< image filename="..." >}}shortcodes incontent/operate/kubernetes/with plain Markdown(andwherealtwas set on the upgrade flowchart). The change spans the unversioned tree and version snapshots (7.4.6,7.8.4,7.8.6,7.22,8.0,8.0.18) across architecture, deployment-options, OpenShift legacy guides, and upgrade pages—no prose or API reference edits.Reader-visible effect: images should look the same except the shortcode lightbox link wrapper (
sdata-lightbox) is no longer emitted for converted figures. Four shortcodes are intentionally unchanged (dual images on one line in7.4.6/architecture, plus FAQ images inline with text in7.4.6/and7.8.4/).Reviewed by Cursor Bugbot for commit 9a9b2ec. Bugbot is set up for automated code reviews on this repo. Configure here.