Skip to content

DOC-7104: Migrate content/operate/rs/clusters/ and top-level files to render hooks - #4090

Open
andy-stark-redis wants to merge 2 commits into
mainfrom
DOC-7104-clusters-top-level
Open

andy-stark-redis wants to merge 2 commits into
mainfrom
DOC-7104-clusters-top-level

Conversation

@andy-stark-redis

@andy-stark-redis andy-stark-redis commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Unit 5 of 15 in the DOC-7104 shortcode-to-render-hook migration: converts relref link shortcodes and note/tip/warning/alert callout shortcodes to plain Markdown links and > [!NOTE]-style blockquotes across all 29 files under content/operate/rs/clusters/ plus 4 top-level files (_index.md, troubleshooting.md, new-features-redis-enterprise.md, rs-archive.md).
  • Purely mechanical syntax migration via build/migrate_shortcode_links.py all — no prose, terminology, or facts touched.
  • 198 relref and 21 callout shortcodes converted. 3 of the 33 files (logging/alerts-events.md, optimize/_index.md, rs-archive.md) had no shortcodes and are unchanged.

Findings

  • Indented-callout gotcha, 10 instances across 8 files (add-node.md, cluster-recovery.md x3, configure/rack-zone-awareness.md, maintenance-mode.md, new-cluster-setup.md, remove-node.md, replace-node.md x2): the converter preserved indentation on the blockquote's header line only, not its continuation/closing lines, detaching the callout from its enclosing <li>. Hand-fixed by re-indenting every line of each blockquote to match its header and dropping a stray artifact line the converter emitted from the shortcode's indented closing tag. Verified via rendered HTML that <li> nesting is unchanged before/after.
  • No instances found of the other two known gotchas (relref-with-no-separating-slash, relref missing a paren).
  • content/operate/rs/new-features-redis-enterprise.md has draft: true, so Hugo never renders it and it's excluded from the href diff below. Manually confirmed its 6 relref targets (/operate/rs/developing/crdbs, /operate/modules/redisbloom, /operate/modules/redisjson, /operate/modules/redisearch, /operate/rs/installing-upgrading/get-started-docker.md, /operate/rs/security/passwords-users-roles.md#setting-up-ldap) resolve to non-existent pages both before and after this change — pre-existing broken relrefs that a draft page's build never warns about. This PR preserves them verbatim; flagging rather than fixing since it's a content/fact question, not a syntax one.

Verification

  • Built Hugo before/after with build/diff_rendered_hrefs.py patched with the unquoted-href regex fix from DOC-7104-diff-hrefs-fix (PR DOC-7104: Fix diff_rendered_hrefs.py to catch unquoted href attributes #4087, not included in this PR — pulled into the worktree for verification only).
  • operate/rs/clusters prefix: 34 vs 34 pages, 0 href diffs.
  • operate/rs prefix (covers the 4 top-level files and confirms no unrelated pages leaked in): 2404 vs 2404 pages, 0 href diffs.

Test plan

  • hugo --minify builds the target pages cleanly (pre-existing, unrelated build errors in content/develop/clients/* and /commands/cf.reserve/ occur identically before and after, confirming they're not introduced by this change)
  • build/diff_rendered_hrefs.py reports 0 diffs for both operate/rs/clusters and operate/rs prefixes
  • No relref or callout shortcode syntax remains in any of the 33 target files
  • Manual verification of new-features-redis-enterprise.md (draft page, excluded from href diff)

🤖 Generated with Claude Code


Note

Low Risk
Documentation-only syntax migration with verified equivalent rendered links; no runtime or product code changes.

Overview
This PR continues the DOC-7104 shortcode-to-render-hook migration for Redis Software docs under content/operate/rs/clusters/ plus a few top-level RS pages (_index.md, troubleshooting.md, new-features-redis-enterprise.md).

relref links are replaced with plain Markdown paths under /content/... (including anchors and _index.md where needed). Callout shortcodes (note, tip, warning) become GitHub-style alerts (> [!NOTE], etc.). In several procedure pages, indented callouts inside list items were re-indented so blockquotes stay nested correctly after conversion.

Prose and product behavior are unchanged; image, multitabs, embed-md, and similar shortcodes are left as-is. Hugo href diff checks reported 0 link changes for the affected sections.

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

andy-stark-redis and others added 2 commits September 23, 2026 13:30
… render hooks

Convert relref link shortcodes and note/tip/warning/alert callout
shortcodes to render-hook equivalents (plain Markdown links resolved by
layouts/_default/_markup/render-link.html, and > [!NOTE] etc. blockquotes
resolved by layouts/_default/_markup/render-blockquote.html) across all
29 files under content/operate/rs/clusters/ plus the 4 top-level files
_index.md, troubleshooting.md, new-features-redis-enterprise.md, and
rs-archive.md. Purely mechanical syntax migration; no prose, terminology,
or facts changed.

198 relref and 21 callout shortcodes converted. 3 of the 33 files
(logging/alerts-events.md, optimize/_index.md, rs-archive.md) had no
shortcodes to convert.

Hand-fixed 10 callout instances (8 files) where the callout was indented
inside a list item: the converter preserved indentation on the
blockquote's header line only, not its continuation/closing lines,
detaching it from the enclosing <li>. Re-indented every line of each
affected blockquote to match, and dropped a stray artifact line the
converter emitted from the shortcode's indented closing tag. Verified via
rendered HTML that list nesting is unchanged before/after.

new-features-redis-enterprise.md has draft: true, so Hugo never renders
it and it's excluded from the href diff. Manually confirmed its 6
relref targets (/operate/rs/developing/crdbs, /operate/modules/redisbloom,
/operate/modules/redisjson, /operate/modules/redisearch,
.../get-started-docker.md, .../passwords-users-roles.md#setting-up-ldap)
resolve to non-existent pages both before and after this change --
pre-existing broken relrefs the migration preserved verbatim, since a
draft page's broken relrefs never trigger Hugo's build-time warning.
Flagging rather than fixing, per this being a content/fact question, not
a syntax one.

diff_rendered_hrefs.py (with the unquoted-href regex fix from
DOC-7104-diff-hrefs-fix, not part of this PR) reports 0 href diffs across
both the operate/rs/clusters prefix (34 pages) and the full operate/rs
prefix (2404 pages), confirming no unrelated pages were touched.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
That file's regex fix lives on branch DOC-7104-diff-hrefs-fix (PR #4087)
and was pulled into this worktree for verification only, per the task
instructions. git checkout origin/DOC-7104-diff-hrefs-fix -- <path>
stages the file as a side effect, and it was swept into the previous
commit by a follow-on git add of the content/ directory. This commit
restores the file to its pre-existing (unfixed) state so this PR carries
only the content/operate/rs/ shortcode migration.

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

github-actions Bot commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

DOC-7104

@github-actions

Copy link
Copy Markdown
Contributor

@github-actions

Copy link
Copy Markdown
Contributor

Staging links:
https://redis.io/docs/staging/DOC-7104-clusters-top-level/operate/rs/
https://redis.io/docs/staging/DOC-7104-clusters-top-level/operate/rs/clusters/
https://redis.io/docs/staging/DOC-7104-clusters-top-level/operate/rs/clusters/add-node/
https://redis.io/docs/staging/DOC-7104-clusters-top-level/operate/rs/clusters/change-node-role/
https://redis.io/docs/staging/DOC-7104-clusters-top-level/operate/rs/clusters/cluster-recovery/
https://redis.io/docs/staging/DOC-7104-clusters-top-level/operate/rs/clusters/configure/
https://redis.io/docs/staging/DOC-7104-clusters-top-level/operate/rs/clusters/configure/call-home/
https://redis.io/docs/staging/DOC-7104-clusters-top-level/operate/rs/clusters/configure/cluster-settings/
https://redis.io/docs/staging/DOC-7104-clusters-top-level/operate/rs/clusters/configure/license-keys/
https://redis.io/docs/staging/DOC-7104-clusters-top-level/operate/rs/clusters/configure/rack-zone-awareness/
https://redis.io/docs/staging/DOC-7104-clusters-top-level/operate/rs/clusters/configure/sch/
https://redis.io/docs/staging/DOC-7104-clusters-top-level/operate/rs/clusters/configure/sync-clocks/
https://redis.io/docs/staging/DOC-7104-clusters-top-level/operate/rs/clusters/logging/
https://redis.io/docs/staging/DOC-7104-clusters-top-level/operate/rs/clusters/logging/diagnostic-logging/
https://redis.io/docs/staging/DOC-7104-clusters-top-level/operate/rs/clusters/logging/log-security/
https://redis.io/docs/staging/DOC-7104-clusters-top-level/operate/rs/clusters/logging/redis-slow-log/
https://redis.io/docs/staging/DOC-7104-clusters-top-level/operate/rs/clusters/logging/rsyslog-logging/
https://redis.io/docs/staging/DOC-7104-clusters-top-level/operate/rs/clusters/maintenance-mode/
https://redis.io/docs/staging/DOC-7104-clusters-top-level/operate/rs/clusters/new-cluster-setup/
https://redis.io/docs/staging/DOC-7104-clusters-top-level/operate/rs/clusters/optimize/disk-sizing-heavy-write-scenarios/
https://redis.io/docs/staging/DOC-7104-clusters-top-level/operate/rs/clusters/optimize/memtier-benchmark/
https://redis.io/docs/staging/DOC-7104-clusters-top-level/operate/rs/clusters/optimize/optimization/
https://redis.io/docs/staging/DOC-7104-clusters-top-level/operate/rs/clusters/optimize/oss-cluster-api/
https://redis.io/docs/staging/DOC-7104-clusters-top-level/operate/rs/clusters/optimize/turn-off-services/
https://redis.io/docs/staging/DOC-7104-clusters-top-level/operate/rs/clusters/optimize/wait/
https://redis.io/docs/staging/DOC-7104-clusters-top-level/operate/rs/clusters/quorum-node/
https://redis.io/docs/staging/DOC-7104-clusters-top-level/operate/rs/clusters/remove-node/
https://redis.io/docs/staging/DOC-7104-clusters-top-level/operate/rs/clusters/replace-node/
https://redis.io/docs/staging/DOC-7104-clusters-top-level/operate/rs/new-features-redis-enterprise/
https://redis.io/docs/staging/DOC-7104-clusters-top-level/operate/rs/troubleshooting/

@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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants