DOC-7120 unit 6: convert kubernetes 7.8.4/ to render hooks - #4135
Merged
Merged
Conversation
Converts relref and callout shortcodes under content/operate/kubernetes/7.8.4/ to the DOC-6909 render-hook equivalents (plain canonicalized Markdown links, `> [!NOTE]`-style blockquotes), using build/migrate_shortcode_links.py's `all` stage. Hand-fixed the recurring list-nested/stray-indent callout-continuation-line bug (the converter only preserves indentation on a blockquote's header line): deployment/openshift/openshift-cli.md (6), deployment/openshift/old-index.md (3), deployment/quick-start.md (2), active-active/create-reaadb.md (2), re-clusters/connect-to-admin-console.md (1), logs/collect-logs.md (1), and the non-list-nested stray-indent variant in re-clusters/connect-prometheus-operator.md (1, dedented to 0 rather than matched, since 4-space indent outside a list reads as a code block). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Contributor
Contributor
Contributor
🧠 Redis MemoryFound 5 related items from repository history (5 new this commit):
Memory updated at 7960f56 |
This was referenced Sep 28, 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
Unit 6 of DOC-7120: converts
content/operate/kubernetes/7.8.4/(frozen version snapshot, 62 files) fromrelref/callout shortcodes to the DOC-6909 render-hook equivalents, usingbuild/migrate_shortcode_links.py all. Implementation-only — no rendered-appearance or behavior change.content/operate/kubernetes/7.8.4/(the other 18 —reference/api/*_api.md, the.tmpl/.patchtemplate files, and a few plain pages — had no relref/callout syntax, as expected).Gotcha instances found and hand-fixed
The list-nested/stray-indent callout-continuation bug (script only preserves indentation on a blockquote's header line, not its continuation/closing lines) recurred here too. Fixed by hand in:
deployment/openshift/openshift-cli.md— 6 instances (matches every prior snapshot's count)deployment/openshift/old-index.md— 3 instancesdeployment/quick-start.md— 2 instances (this snapshot's count; prior snapshots varied 2-3)active-active/create-reaadb.md— 2 instancesre-clusters/connect-to-admin-console.md— 1 instancelogs/collect-logs.md— 1 instancere-clusters/connect-prometheus-operator.md— 1 instance of the non-list-nested stray-indent variant (a bare 4-space-indented callout after a plain paragraph, not inside a list). Per the known gotcha, this was dedented to 0 rather than matched to the header's indentation, since a 4-space indent outside a list is read as a code block in CommonMark, not a blockquote.All match the pattern (and several the exact files) found in every prior version-snapshot unit of this ticket. No no-slash relref concatenation or missing-close-paren relref instances were found in this snapshot.
Pre-existing DEAD links (not fixed, per scope)
build/check_uncanonicalized_links.pyflagged 3 pre-existing broken plain-Markdown links that don't resolve to a real content page (left untouched — a missed rewrite is fine, a wrong one is not):deployment/openshift/old-getting-started-openshift-crdb.md:48→/operate/platforms/openshift/_index.mddeployment/openshift/old-index.md:30→/operate/rs/installing-upgrading/hardware-requirements.mddeployment/openshift/old-index.md:333→/operate/rs/administering/creating-databases/_index.mdNote:
deployment/openshift/old-index.mdis entirely wrapped in a{{% comment %}}...{{% /comment %}}shortcode (never rendered), so none of its content — including these dead links and the 3 hand-fixed indentation instances in it — reaches the live site. Converted anyway per instructions to check that file for the recurring gotcha.Verification
origin/main(before) and this branch (after) with Hugo in separate scratch directories, foreground, both succeeded cleanly (19645 pages each, identical warning set unrelated to this section).build/diff_rendered_hrefs.py <before> <after> operate/kubernetes/7.8.4: 0 unintended href diffs (65 vs 65 pages compared, 0 added/removed, 0 href-set changes).build/check_uncanonicalized_links.pyscoped tocontent/operate/kubernetes/7.8.4/: 0 FIXABLE, 0 MOUNT_ONLY, 3 DEAD (pre-existing, noted above).Per
content/operate/kubernetes/AGENTS.md: no renaming of "Redis Enterprise for Kubernetes" legacy occurrences, no changes to custom-resource identifiers or field paths — this PR touches only relref/callout syntax.Test plan
diff_rendered_hrefs.pyshows 0 unintended diffscheck_uncanonicalized_links.pyshows 0 FIXABLE / 0 MOUNT_ONLY🤖 Generated with Claude Code
Note
Low Risk
Documentation-only shortcode-to-Markdown conversion with verified zero unintended href changes; no runtime or product behavior impact.
Overview
This PR migrates the frozen
operate/kubernetes/7.8.4/docs from Hugorelrefand callout shortcodes to render-hook–friendly Markdown, without changing prose or operational guidance.Internal links (
{{< relref ... >}}) are rewritten to/content/...file paths (including anchors) across Active-Active, architecture, deployment, networking, clusters, databases, security, upgrade, and related pages.Admonitions (
{{< note >}},{{< warning >}}, etc.) become GitHub-style blockquotes (> [!NOTE],> [!WARNING], …), with hand fixes where list nesting left continuation lines mis-indented so they would render as code blocks.{{< image ... >}}and other non-link shortcodes in these files are unchanged. Scope is syntax only for DOC-7120 unit 6; pre-existing dead links in commented/legacy OpenShift pages are out of scope.Reviewed by Cursor Bugbot for commit 7960f56. Bugbot is set up for automated code reviews on this repo. Configure here.