Skip to content

DOC-7120 unit 3: convert kubernetes networking/deployment/recommendations/re-databases/flex/upgrade/logs/architecture/top-level to render hooks - #4132

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

Conversation

@andy-stark-redis

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

Copy link
Copy Markdown
Contributor

Summary

Unit 3 of DOC-7120 (continuing the DOC-6909 render-hook migration series). Converts relref and callout shortcodes to native Markdown render-hook syntax across the following content/operate/kubernetes/ directories plus two top-level files (40 files in scope):

  • networking/ (7), deployment/ (7, incl. openshift/ subdir), recommendations/ (6), re-databases/ (5), flex/ (5), upgrade/ (4), logs/ (2), architecture/ (2), plus _index.md and kubernetes-archive.md.

Ran build/migrate_shortcode_links.py all <file>... (all 3 stages: relref-to-plain, callouts-to-blockquote, linkify) over all 40 files.

Results

  • 37/40 files changed. 3 files (networking/routes.md, recommendations/pod-stability.md, kubernetes-archive.md) had zero relref/callout occurrences and are no-ops, confirmed by hand grep before conversion.
  • 280 relref links converted to canonical /content/<path>.md[#anchor] form.
  • 76 callout shortcodes (note/warning/tip/info, both {{< >}} and unspaced {{<>}} forms) converted to > [!TYPE] blockquotes.

Gotchas found and hand-fixed

List-nested callout indentation loss (gotcha 1): the conversion script only preserves indentation on the blockquote header line, not on continuation/closing lines, which detaches the callout from its enclosing list item. Found and hand-fixed 12 instances across 5 files:

  • content/operate/kubernetes/deployment/openshift/openshift-cli.md (6 instances)
  • content/operate/kubernetes/deployment/quick-start.md (3 instances)
  • content/operate/kubernetes/upgrade/openshift-cli.md (1 instance)
  • content/operate/kubernetes/upgrade/upgrade-olm.md (1 instance)
  • content/operate/kubernetes/upgrade/upgrade-redis-cluster.md (1 instance)

Each was fixed by re-indenting every > continuation line to match its header's leading whitespace (verified against the existing corpus style in e.g. content/operate/rs/databases/create.md), and normalizing the script's > trailing-whitespace artifact (produced when a source callout's closing tag itself had leading indentation) to a clean >.

Also cleaned one related whitespace artifact in content/operate/kubernetes/upgrade/openshift-cli.md: a non-list-nested warning whose closing tag had a single leading space, producing a doubled leading space (> text) and a trailing blank > line with trailing whitespace. Not caught by the indentation-mismatch detector (it's top-level, not list-nested), but same root cause — cleaned to match the single-line-callout style used elsewhere in this batch.

No-slash relref concatenation, missing-close-paren relrefs: none found in this batch (checked by hand before and after conversion).

Dead links: none found — build/check_uncanonicalized_links.py reports 0 DEAD (see verification below).

Verification

  1. Built origin/main (before, at 24289eecc) and this branch (after) with Hugo in two separate directories, foreground. Both builds succeeded with identical page counts (19645 pages). Required dangerouslyDisableSandbox for the external-json shortcode's raw.githubusercontent.com fetch on an unrelated page (operate/rc/subscriptions/bring-your-own-cloud/iam-resources/aws-console.md), per the known sandbox-network gotcha — unrelated to this migration.

  2. build/diff_rendered_hrefs.py run once per touched directory, plus once unscoped to operate/kubernetes (686 pages, covers the top-level _index.md and kubernetes-archive.md): 0 href diffs everywhere.

    Prefix Pages Diffs
    operate/kubernetes/networking 7 0
    operate/kubernetes/deployment 8 0
    operate/kubernetes/recommendations 6 0
    operate/kubernetes/re-databases 5 0
    operate/kubernetes/flex 5 0
    operate/kubernetes/upgrade 4 0
    operate/kubernetes/logs 2 0
    operate/kubernetes/architecture 4 0
    operate/kubernetes (whole tree, incl. top-level) 686 0
  3. build/check_uncanonicalized_links.py scoped to all 40 files: 40 files scanned. FIXABLE=0 MOUNT_ONLY=0 DEAD=0.

  4. Manually confirmed indentation preservation for all 12 list-nested callout instances via a script that walks every > [! blockquote header and checks each subsequent > continuation line carries the same leading whitespace — 0 mismatches after fixes.

Notes

  • Followed content/operate/kubernetes/AGENTS.md: no legacy-name ("Redis Enterprise for Kubernetes") renames, no custom-resource-identifier changes. This is purely a shortcode-syntax conversion; no prose, terminology, or identifier was touched.

Test plan

  • Both before/after Hugo builds succeed
  • diff_rendered_hrefs.py reports 0 diffs for every touched directory and the whole operate/kubernetes tree
  • check_uncanonicalized_links.py reports 0 FIXABLE / 0 MOUNT_ONLY / 0 DEAD
  • All list-nested callout indentation instances manually verified

🤖 Generated with Claude Code


Note

Low Risk
Documentation-only shortcode-to-Markdown conversion; PR verification reports zero href diffs and no dead links in the touched files.

Overview
Continues the DOC-6909 render-hook migration for Redis Enterprise on Kubernetes docs (~40 files under content/operate/kubernetes/): networking, deployment (incl. OpenShift), recommendations, re-databases, flex, upgrade, logs, architecture, and the section _index.md.

Internal links: Hugo {{< relref "..." >}} shortcodes are replaced with canonical Markdown paths (/content/.../*.md, including # anchors). Callouts: {{< note >}}, {{< warning >}}, etc. become GitHub-flavored > [!NOTE] / > [!WARNING] blockquotes (including list-nested cases where indentation was corrected).

No product or operator behavior changes—only source syntax so links and admonitions render via Markdown hooks instead of shortcodes.

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

…ions/re-databases/flex/upgrade/logs/architecture/top-level to render hooks

Converts relref and callout shortcodes to native Markdown render-hook
syntax across 37 files (of 40 in scope; 3 -- networking/routes.md,
recommendations/pod-stability.md, kubernetes-archive.md -- had zero
occurrences and are no-ops) using build/migrate_shortcode_links.py's
all-stages pipeline.

280 relref links and 76 callout shortcodes converted mechanically.

Hand-fixed 12 list-nested callout indentation-loss instances (the
known gotcha where the script preserves the blockquote header's
leading whitespace but drops it on continuation/closing lines,
detaching the callout from its enclosing list item) across 5 files:
deployment/openshift/openshift-cli.md (6), deployment/quick-start.md
(3), upgrade/openshift-cli.md (1), upgrade/upgrade-olm.md (1),
upgrade/upgrade-redis-cluster.md (1). Also cleaned one related
whitespace artifact in upgrade/openshift-cli.md (a doubled leading
space and a trailing blank blockquote line) left by a source callout
whose closing tag had a single leading space before it -- same root
cause, non-list-nested so it slipped past the indentation-mismatch
detector; fixed to match the corpus's existing single-line-callout
style.

No no-slash relref concatenations, no missing-close-paren relrefs,
and no dead links found in this batch.

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-unit3/operate/kubernetes/
https://redis.io/docs/staging/DOC-7120-kubernetes-unit3/operate/kubernetes/architecture/
https://redis.io/docs/staging/DOC-7120-kubernetes-unit3/operate/kubernetes/architecture/deployment-options/
https://redis.io/docs/staging/DOC-7120-kubernetes-unit3/operate/kubernetes/deployment/
https://redis.io/docs/staging/DOC-7120-kubernetes-unit3/operate/kubernetes/deployment/container-images/
https://redis.io/docs/staging/DOC-7120-kubernetes-unit3/operate/kubernetes/deployment/helm/
https://redis.io/docs/staging/DOC-7120-kubernetes-unit3/operate/kubernetes/deployment/openshift/
https://redis.io/docs/staging/DOC-7120-kubernetes-unit3/operate/kubernetes/deployment/openshift/openshift-cli/
https://redis.io/docs/staging/DOC-7120-kubernetes-unit3/operate/kubernetes/deployment/openshift/openshift-operatorhub/
https://redis.io/docs/staging/DOC-7120-kubernetes-unit3/operate/kubernetes/deployment/quick-start/
https://redis.io/docs/staging/DOC-7120-kubernetes-unit3/operate/kubernetes/flex/
https://redis.io/docs/staging/DOC-7120-kubernetes-unit3/operate/kubernetes/flex/auto-tiering/
https://redis.io/docs/staging/DOC-7120-kubernetes-unit3/operate/kubernetes/flex/get-started/
https://redis.io/docs/staging/DOC-7120-kubernetes-unit3/operate/kubernetes/flex/plan/
https://redis.io/docs/staging/DOC-7120-kubernetes-unit3/operate/kubernetes/flex/scale/
https://redis.io/docs/staging/DOC-7120-kubernetes-unit3/operate/kubernetes/logs/
https://redis.io/docs/staging/DOC-7120-kubernetes-unit3/operate/kubernetes/logs/collect-logs/
https://redis.io/docs/staging/DOC-7120-kubernetes-unit3/operate/kubernetes/networking/
https://redis.io/docs/staging/DOC-7120-kubernetes-unit3/operate/kubernetes/networking/cluster-aware-clients/
https://redis.io/docs/staging/DOC-7120-kubernetes-unit3/operate/kubernetes/networking/database-connectivity/
https://redis.io/docs/staging/DOC-7120-kubernetes-unit3/operate/kubernetes/networking/ingress/
https://redis.io/docs/staging/DOC-7120-kubernetes-unit3/operate/kubernetes/networking/ingressorroutespec/
https://redis.io/docs/staging/DOC-7120-kubernetes-unit3/operate/kubernetes/networking/istio-ingress/
https://redis.io/docs/staging/DOC-7120-kubernetes-unit3/operate/kubernetes/re-databases/
https://redis.io/docs/staging/DOC-7120-kubernetes-unit3/operate/kubernetes/re-databases/db-controller/
https://redis.io/docs/staging/DOC-7120-kubernetes-unit3/operate/kubernetes/re-databases/enrich-metrics-with-tags/
https://redis.io/docs/staging/DOC-7120-kubernetes-unit3/operate/kubernetes/re-databases/modules/
https://redis.io/docs/staging/DOC-7120-kubernetes-unit3/operate/kubernetes/re-databases/replica-redb/
https://redis.io/docs/staging/DOC-7120-kubernetes-unit3/operate/kubernetes/recommendations/
https://redis.io/docs/staging/DOC-7120-kubernetes-unit3/operate/kubernetes/recommendations/node-resources/

@github-actions

Copy link
Copy Markdown
Contributor

@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.

LGTM.

@andy-stark-redis
andy-stark-redis merged commit 3915e0a into main Sep 28, 2026
100 checks passed
@andy-stark-redis
andy-stark-redis deleted the DOC-7120-kubernetes-unit3 branch September 28, 2026 15:14
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