Skip to content

DOC-7120 unit 1: convert kubernetes/release-notes/ to render hooks - #4125

Open
andy-stark-redis wants to merge 1 commit into
mainfrom
DOC-7120-kubernetes-release-notes
Open

andy-stark-redis wants to merge 1 commit into
mainfrom
DOC-7120-kubernetes-release-notes

Conversation

@andy-stark-redis

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

Copy link
Copy Markdown
Contributor

Summary

Unit 1 of DOC-7120 (https://redislabs.atlassian.net/browse/DOC-7120), continuing the DOC-6909 render-hook migration series. Runs build/migrate_shortcode_links.py all over every file under content/operate/kubernetes/release-notes/ (122 files) to replace relref and callout shortcodes with native Markdown render-hook equivalents.

  • Files changed: 115 of 122 (7 had no shortcodes to convert)
  • relref links converted: 390 (389 already inside ]( ) markdown links + 1 pre-existing broken/bare relref, hand-fixed — see below)
  • callouts converted: 27 (note/warning, both {{< >}} and unspaced {{<>}} delimiter forms)

Hand-fixed gotchas

  • Pre-existing broken relref (gotcha 3 — fix trivially in this PR):
    content/operate/kubernetes/release-notes/7-2-4-releases/7-2-4-12-jan25.md had
    (7.2.4-12 release notes){{<relref "...">}}. — a bare shortcode call glued onto plain
    parenthesized text instead of a markdown link, so it rendered as literal text with no
    href. Rewrote as [7.2.4-12 release notes]({{< relref "..." >}}). before running the
    converter; it now converts and canonicalizes normally. Confirmed via href diff that
    this is the only page whose rendered href set changed (a new href appears where
    there was none before — an intentional fix, not a regression).

  • List-nested callout indentation loss (gotcha 1): two files had a callout nested
    inside a list item, with all lines (header, body, close) indented to match. The
    mechanical converter only preserves indentation on the blockquote header line, losing
    it on continuation/closing lines and detaching the blockquote from its <li>. Hand-restored
    the original indentation on the blockquote body:

    • content/operate/kubernetes/release-notes/previous-releases/k8s-5-4-10-8.md (4-space nested {{< note >}})
    • content/operate/kubernetes/release-notes/previous-releases/k8s-6-2-10-34-2022-05.md (2-space nested {{<warning>}})

    Verified by diffing rendered HTML for both pages: the </li><li> boundaries around the
    callout are identical before/after (list nesting unaffected).

  • No-slash relref concatenation (gotcha 2): checked programmatically for
    ]({{< relref "X" >}}literal) with no /, #, or ? separator across all 389
    in-link relrefs in this tree — none found.

  • Angle-bracket alert shortcode form: not present in this tree (only note/warning
    callouts occur here); no special handling was needed.

Known pre-existing issue (not fixed, out of scope for this ticket)

content/operate/kubernetes/release-notes/previous-releases/k8s-5-4-10-8.md has two
{{< embed-md "force-delete-pods.md" >}} shortcode calls pointing at a file that does
not exist in this tree. This is an embed-md shortcode, not a relref/callout, so it's
outside this ticket's scope — flagging per house style rather than silently fixing.

Verification

  1. Hugo build diff: Built origin/main and this branch in separate worktrees/directories,
    ran build/diff_rendered_hrefs.py <before> <after> operate/kubernetes/release-notes:
    158 vs 158 pages compared, 0 only-in-before, 0 only-in-after, 1 href-set change
    (the intentional broken-relref fix above; every other page's href set is byte-identical).
    Note: both before/after builds hit a pre-existing, unrelated Hugo error on
    content/develop/clients/* (jupyter-example shortcode readFile failure) — identical
    in both builds, confirmed environment/sandbox-related and not caused by this change; the
    full operate/kubernetes/release-notes/ output rendered successfully in both regardless.
  2. Uncanonicalized-link check: build/check_uncanonicalized_links.py content/operate/kubernetes/release-notes/
    → 122 files scanned. FIXABLE=0 MOUNT_ONLY=0 DEAD=0.
  3. Manual spot-check: confirmed rendered <li> nesting is unchanged for both
    list-nested-callout fixes (see above), and spot-checked several other converted files'
    diffs for clean, correct link/callout conversion.

Test plan

  • build/diff_rendered_hrefs.py — 0 unexpected href diffs
  • build/check_uncanonicalized_links.py — 0 FIXABLE, 0 MOUNT_ONLY
  • Manual spot-check of list-nested callout HTML nesting (2 files)
  • No renaming of legacy "Redis Enterprise for Kubernetes" product name or custom resource identifiers (mechanical shortcode conversion only, per content/operate/kubernetes/AGENTS.md)

🤖 Generated with Claude Code


Note

Low Risk
Documentation-only link and callout syntax changes with href verification; no runtime or product behavior changes.

Overview
Migrates ~115 files under content/operate/kubernetes/release-notes/ from Hugo relref shortcodes to canonical /content/operate/... Markdown paths (including _index.md where needed), and replaces {{< warning >}} / {{< note >}} callouts with > [!WARNING] / > [!NOTE] blockquotes.

One pre-existing broken link in 7-2-4-12-jan25.md is corrected so the “previous release notes” reference is a real markdown link instead of plain text glued to a shortcode. {{< table-children >}} and other non-link shortcodes in these pages are unchanged.

This is a render-hook / DOC-6909 mechanical pass only; release-note wording and product naming are not edited.

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

Run build/migrate_shortcode_links.py all over content/operate/kubernetes/release-notes/
(122 files) to replace relref and callout shortcodes with native Markdown render-hook
equivalents (DOC-6909 series).

Hand-fixes beyond the mechanical conversion:
- 7-2-4-releases/7-2-4-12-jan25.md: pre-existing broken relref syntax
  ((text){{<relref ...>}} instead of a markdown link) rendered as literal text with no
  href; rewrote as a proper [text]({{< relref ... >}}) link before conversion.
- previous-releases/k8s-5-4-10-8.md and previous-releases/k8s-6-2-10-34-2022-05.md:
  list-nested callouts lost their continuation-line indentation during the mechanical
  callout-to-blockquote conversion, detaching the blockquote from its enclosing <li>;
  restored the original list-item indentation on the blockquote body/closing lines.

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

github-actions Bot commented Sep 25, 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-release-notes/operate/kubernetes/release-notes/7-2-4-releases/
https://redis.io/docs/staging/DOC-7120-kubernetes-release-notes/operate/kubernetes/release-notes/7-2-4-releases/7-2-4-12-03-24/
https://redis.io/docs/staging/DOC-7120-kubernetes-release-notes/operate/kubernetes/release-notes/7-2-4-releases/7-2-4-12-08-2024/
https://redis.io/docs/staging/DOC-7120-kubernetes-release-notes/operate/kubernetes/release-notes/7-2-4-releases/7-2-4-12-10-24/
https://redis.io/docs/staging/DOC-7120-kubernetes-release-notes/operate/kubernetes/release-notes/7-2-4-releases/7-2-4-12-jan25/
https://redis.io/docs/staging/DOC-7120-kubernetes-release-notes/operate/kubernetes/release-notes/7-2-4-releases/7-2-4-12-june25/
https://redis.io/docs/staging/DOC-7120-kubernetes-release-notes/operate/kubernetes/release-notes/7-2-4-releases/7-2-4-12-mar25/
https://redis.io/docs/staging/DOC-7120-kubernetes-release-notes/operate/kubernetes/release-notes/7-2-4-releases/7-2-4-12/
https://redis.io/docs/staging/DOC-7120-kubernetes-release-notes/operate/kubernetes/release-notes/7-2-4-releases/7-2-4-15-october2025/
https://redis.io/docs/staging/DOC-7120-kubernetes-release-notes/operate/kubernetes/release-notes/7-2-4-releases/7-2-4-15-sep25/
https://redis.io/docs/staging/DOC-7120-kubernetes-release-notes/operate/kubernetes/release-notes/7-2-4-releases/7-2-4-16-feb26/
https://redis.io/docs/staging/DOC-7120-kubernetes-release-notes/operate/kubernetes/release-notes/7-2-4-releases/7-2-4-2/
https://redis.io/docs/staging/DOC-7120-kubernetes-release-notes/operate/kubernetes/release-notes/7-2-4-releases/7-2-4-7/
https://redis.io/docs/staging/DOC-7120-kubernetes-release-notes/operate/kubernetes/release-notes/7-22-0-releases/
https://redis.io/docs/staging/DOC-7120-kubernetes-release-notes/operate/kubernetes/release-notes/7-22-0-releases/7-22-0-11-june2025/
https://redis.io/docs/staging/DOC-7120-kubernetes-release-notes/operate/kubernetes/release-notes/7-22-0-releases/7-22-0-15-july2025/
https://redis.io/docs/staging/DOC-7120-kubernetes-release-notes/operate/kubernetes/release-notes/7-22-0-releases/7-22-0-16-august2025/
https://redis.io/docs/staging/DOC-7120-kubernetes-release-notes/operate/kubernetes/release-notes/7-22-0-releases/7-22-0-17-september2025/
https://redis.io/docs/staging/DOC-7120-kubernetes-release-notes/operate/kubernetes/release-notes/7-22-0-releases/7-22-0-7-april2025/
https://redis.io/docs/staging/DOC-7120-kubernetes-release-notes/operate/kubernetes/release-notes/7-22-2-releases/7-22-2-21-october2025/
https://redis.io/docs/staging/DOC-7120-kubernetes-release-notes/operate/kubernetes/release-notes/7-22-2-releases/7-22-2-22-october2025/
https://redis.io/docs/staging/DOC-7120-kubernetes-release-notes/operate/kubernetes/release-notes/7-22-2-releases/7-22-2-31-december2025/
https://redis.io/docs/staging/DOC-7120-kubernetes-release-notes/operate/kubernetes/release-notes/7-22-2-releases/7-22-2-32-january2026/
https://redis.io/docs/staging/DOC-7120-kubernetes-release-notes/operate/kubernetes/release-notes/7-22-2-releases/7-22-2-37-feb2026/
https://redis.io/docs/staging/DOC-7120-kubernetes-release-notes/operate/kubernetes/release-notes/7-22-2-releases/7-22-2-38-march2026/
https://redis.io/docs/staging/DOC-7120-kubernetes-release-notes/operate/kubernetes/release-notes/7-22-2-releases/7-22-2-39-april2026/
https://redis.io/docs/staging/DOC-7120-kubernetes-release-notes/operate/kubernetes/release-notes/7-22-2-releases/7-22-2-40-may2026/
https://redis.io/docs/staging/DOC-7120-kubernetes-release-notes/operate/kubernetes/release-notes/7-22-2-releases/7-22-2-42-july2026/
https://redis.io/docs/staging/DOC-7120-kubernetes-release-notes/operate/kubernetes/release-notes/7-22-2-releases/7-22-2-43-august2026/
https://redis.io/docs/staging/DOC-7120-kubernetes-release-notes/operate/kubernetes/release-notes/7-22-2-releases/7-22-2-45-september2026/

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

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants