Skip to content

DOC-7120 unit 9: convert kubernetes 8.0.18/ to render hooks - #4138

Merged
andy-stark-redis merged 1 commit into
mainfrom
DOC-7120-kubernetes-8.0.18
Sep 29, 2026
Merged

andy-stark-redis merged 1 commit into
mainfrom
DOC-7120-kubernetes-8.0.18

Conversation

@andy-stark-redis

@andy-stark-redis andy-stark-redis commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Final unit (9 of 9) of DOC-7120, converting content/operate/kubernetes/8.0.18/ (80 files, a frozen version snapshot) off relref/callout shortcodes onto native Markdown render hooks. After this merges, content/operate/kubernetes/ is fully off relref/callout shortcodes.

Implementation-only: no rendered-appearance or behavior change is intended for this frozen snapshot, per the ticket's explicit scoping.

Files changed: 69 of 80 files under content/operate/kubernetes/8.0.18/ (the other 11 — reference/api/*_api.md, the .tmpl, and the empty-fields list — contain no relref/callout syntax, confirmed no-op).

Counts converted:

  • relref: 558 instances → 0 remaining
  • callout shortcodes (note/warning/tip/info/alert, both {{< >}} and {{% %}} forms): 134 instances → 0 remaining

Gotchas found and hand-fixed

The list-nested callout indentation-loss bug (conversion script preserves indentation only on the blockquote header line, not continuation/closing lines) recurred here too, in 13 blocks across 12 files — overlapping but not identical to prior snapshots' lists, confirming the "verify independently" warning:

  • upgrade/upgrade-olm.md, upgrade/openshift-cli.md, upgrade/upgrade-redis-cluster.md (1 block each, 2-space list indent)
  • re-clusters/connect-to-admin-console.md, active-active/prepare-clusters.md, security/sso.md (1 block each, 4-space indent, body had redundant indentation baked in)
  • security/allow-resource-adjustment.md (1 block, 3-space header vs pre-existing 4-space closing-tag typo — standardized to the header's 3-space)
  • deployment/quick-start.md (3 blocks, 4-space indent)
  • deployment/openshift/openshift-cli.md (6 blocks, 4-space indent — including one multi-paragraph note with an embedded fenced code block, fixed by prefixing every line, including the blank lines and code fence delimiters, with the header's indent)
  • active-active/create-reaadb.md (1 single-line block, 3-space list indent)

Also found and fixed:

  • re-clusters/connect-prometheus-operator.md — the non-list-nested stray-indent variant (4-space indent NOT inside a list), dedented to 0 to avoid a CommonMark code-block misparse. Present in every prior snapshot checked.
  • upgrade/openshift-cli.md (a second, separate instance from the one above, top-level not list-nested) — a pre-existing 1-space typo in the original shortcode body/closing tag produced a double-space-after-> plus a stray whitespace-only blockquote line; cleaned up.

logs/collect-logs.md — checked closely per the task's flag; 0 list-nested instances in this snapshot (its 2 callouts are both top-level, no fix needed), consistent with the 8.0/ snapshot's finding that it's not guaranteed to carry the bug.

security/vault.md alert conversion: the angle-bracket {{< alert title="Important notes" >}}...{{</alert>}} form converted to > [!NOTE] Important notes with its bulleted body intact, matching prior units (live tree unit 2, 8.0/ unit 8). This file also had 3 more list-nested note/warning blocks with the redundant-indentation variant of the bug (3-space list indent, body already carrying a matching 3-space indent that doubled up after the > prefix) — all 4 blocks fixed.

No no-slash relref concatenation or missing-close-paren relref instances found in this snapshot.

DEAD links: none found in this scope (0 from check_uncanonicalized_links.py).

Verification

  1. Built origin/main (before, commit 24289eecc7) and this branch (after) with Hugo in two separate directories, foreground, --minify dropped because of a pre-existing unrelated JS-minify build error on /commands/cf.reserve/ present on main itself (unrelated to this change). Both builds succeeded with identical page counts (19,645 pages each).
  2. build/diff_rendered_hrefs.py <before> <after> operate/kubernetes/8.0.18: compared 78 vs 78 pages, 0 href diffs (only-in-before / only-in-after / href-set-changed all 0).
  3. build/check_uncanonicalized_links.py scoped to content/operate/kubernetes/8.0.18/: 78 files scanned, FIXABLE=0, MOUNT_ONLY=0, DEAD=0.
  4. Manually confirmed indentation for every list-nested callout instance found (13 fixed blocks + the 2 non-list stray-indent fixes), and specifically confirmed the security/vault.md alert conversion, by diffing the rendered HTML of vault.md, upgrade-olm.md, quick-start.md, and openshift-cli.md between the before/after builds — every note/warning block's text content is byte-identical; the only diffs are cosmetic (an added <p> wrap from native blockquote rendering, and whitespace/indentation in the surrounding div markup).
  5. Final full-tree sanity check (end of ticket): ran build/check_uncanonicalized_links.py over the entire content/operate/kubernetes/ tree (all 9 units considered together) against a fresh origin/main checkout at the same base commit: 0 FIXABLE, 0 MOUNT_ONLY confirmed clean end-to-end once this PR is included (this PR's own 0/0/0 result above, combined with the already-merged units 1-8, completes the section).

Test plan

  • Review diff for the 13+2 hand-fixed indentation blocks listed above
  • Confirm security/vault.md's alert-to-note conversion renders as expected
  • Merge once approved (not merging this myself per team convention)

🤖 Generated with Claude Code


Note

Low Risk
Documentation-only mechanical shortcode-to-Markdown conversion in a version-frozen path; no runtime or security impact.

Overview
Completes DOC-7120 by migrating the frozen content/operate/kubernetes/8.0.18/ snapshot (~69 files) off Hugo relref and callout shortcodes (note, warning, alert, etc.) onto native Markdown render hooks.

Internal links now use explicit /content/... paths (including _index.md where needed) instead of {{< relref ... >}}. Admonitions become GitHub-style blockquotes (> [!NOTE], > [!WARNING], …), with hand fixes for list-nested and indented callouts so blockquotes parse correctly. {{<embed-yaml>}} and other non-relref shortcodes are left as-is.

No intentional changes to prose or operator behavior—this is markup-only so the whole operate/kubernetes/ tree can build without those shortcodes.

Reviewed by Cursor Bugbot for commit b29f30a. Bugbot is set up for automated code reviews on this repo. Configure here.

Mechanical conversion of content/operate/kubernetes/8.0.18/ off relref
and callout shortcodes onto native Markdown render hooks, using
build/migrate_shortcode_links.py's `all` stage. This is the final unit
(9 of 9) of DOC-7120, and completes content/operate/kubernetes/'s
migration off shortcodes.

Hand-fixed the recurring list-nested callout indentation-loss bug in
13 blocks across 12 files (the conversion script preserves indentation
only on a blockquote's header line, not continuation/closing lines),
plus one non-list stray-indent case and one stray-whitespace-artifact
case found independently in this snapshot. security/vault.md's
angle-bracket `alert` shortcode converted cleanly to `[!NOTE]
Important notes` with its bulleted body intact, matching prior units.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

DOC-7120

@github-actions

Copy link
Copy Markdown
Contributor

Staging links:
https://redis.io/docs/staging/DOC-7120-kubernetes-8.0.18/operate/kubernetes/8.0.18/
https://redis.io/docs/staging/DOC-7120-kubernetes-8.0.18/operate/kubernetes/8.0.18/active-active/
https://redis.io/docs/staging/DOC-7120-kubernetes-8.0.18/operate/kubernetes/8.0.18/active-active/create-aa-crdb-cli/
https://redis.io/docs/staging/DOC-7120-kubernetes-8.0.18/operate/kubernetes/8.0.18/active-active/create-reaadb/
https://redis.io/docs/staging/DOC-7120-kubernetes-8.0.18/operate/kubernetes/8.0.18/active-active/edit-clusters/
https://redis.io/docs/staging/DOC-7120-kubernetes-8.0.18/operate/kubernetes/8.0.18/active-active/edit-rerc/
https://redis.io/docs/staging/DOC-7120-kubernetes-8.0.18/operate/kubernetes/8.0.18/active-active/global-config/
https://redis.io/docs/staging/DOC-7120-kubernetes-8.0.18/operate/kubernetes/8.0.18/active-active/global-db-secret/
https://redis.io/docs/staging/DOC-7120-kubernetes-8.0.18/operate/kubernetes/8.0.18/active-active/prepare-clusters/
https://redis.io/docs/staging/DOC-7120-kubernetes-8.0.18/operate/kubernetes/8.0.18/architecture/
https://redis.io/docs/staging/DOC-7120-kubernetes-8.0.18/operate/kubernetes/8.0.18/architecture/deployment-options/
https://redis.io/docs/staging/DOC-7120-kubernetes-8.0.18/operate/kubernetes/8.0.18/deployment/
https://redis.io/docs/staging/DOC-7120-kubernetes-8.0.18/operate/kubernetes/8.0.18/deployment/container-images/
https://redis.io/docs/staging/DOC-7120-kubernetes-8.0.18/operate/kubernetes/8.0.18/deployment/helm/
https://redis.io/docs/staging/DOC-7120-kubernetes-8.0.18/operate/kubernetes/8.0.18/deployment/openshift/
https://redis.io/docs/staging/DOC-7120-kubernetes-8.0.18/operate/kubernetes/8.0.18/deployment/openshift/openshift-cli/
https://redis.io/docs/staging/DOC-7120-kubernetes-8.0.18/operate/kubernetes/8.0.18/deployment/openshift/openshift-operatorhub/
https://redis.io/docs/staging/DOC-7120-kubernetes-8.0.18/operate/kubernetes/8.0.18/deployment/quick-start/
https://redis.io/docs/staging/DOC-7120-kubernetes-8.0.18/operate/kubernetes/8.0.18/flex/
https://redis.io/docs/staging/DOC-7120-kubernetes-8.0.18/operate/kubernetes/8.0.18/flex/auto-tiering/
https://redis.io/docs/staging/DOC-7120-kubernetes-8.0.18/operate/kubernetes/8.0.18/flex/get-started/
https://redis.io/docs/staging/DOC-7120-kubernetes-8.0.18/operate/kubernetes/8.0.18/flex/plan/
https://redis.io/docs/staging/DOC-7120-kubernetes-8.0.18/operate/kubernetes/8.0.18/flex/scale/
https://redis.io/docs/staging/DOC-7120-kubernetes-8.0.18/operate/kubernetes/8.0.18/logs/
https://redis.io/docs/staging/DOC-7120-kubernetes-8.0.18/operate/kubernetes/8.0.18/logs/collect-logs/
https://redis.io/docs/staging/DOC-7120-kubernetes-8.0.18/operate/kubernetes/8.0.18/networking/
https://redis.io/docs/staging/DOC-7120-kubernetes-8.0.18/operate/kubernetes/8.0.18/networking/cluster-aware-clients/
https://redis.io/docs/staging/DOC-7120-kubernetes-8.0.18/operate/kubernetes/8.0.18/networking/database-connectivity/
https://redis.io/docs/staging/DOC-7120-kubernetes-8.0.18/operate/kubernetes/8.0.18/networking/ingress/
https://redis.io/docs/staging/DOC-7120-kubernetes-8.0.18/operate/kubernetes/8.0.18/networking/ingressorroutespec/

@github-actions

Copy link
Copy Markdown
Contributor

🧠 Redis Memory

Found 5 related items from repository history (5 new this commit):

Memory updated at b29f30a

@dwdougherty dwdougherty left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTC.

@andy-stark-redis
andy-stark-redis merged commit ddc0941 into main Sep 29, 2026
100 checks passed
@andy-stark-redis
andy-stark-redis deleted the DOC-7120-kubernetes-8.0.18 branch September 29, 2026 08:45
@andy-stark-redis

Copy link
Copy Markdown
Contributor Author

Thanks @dwdougherty (and @claude)!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants