Skip to content

DOC-7104: Migrate content/operate/rs/installing-upgrading/ to render hooks - #4089

Merged
andy-stark-redis merged 1 commit into
mainfrom
DOC-7104-installing-upgrading
Sep 24, 2026
Merged

andy-stark-redis merged 1 commit into
mainfrom
DOC-7104-installing-upgrading

Conversation

@andy-stark-redis

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

Copy link
Copy Markdown
Contributor

Summary

Unit 4 of 15 in the DOC-7104 shortcode-to-render-hook migration (extending DOC-6909 into Redis Software docs). Converts every file under content/operate/rs/installing-upgrading/ from the relref link shortcode and note/tip/warning/alert callout shortcodes to their 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.

Purely mechanical syntax migration — no prose, terminology, or fact changes.

  • Files changed: 31 of the section's 33 files (configuring/_index.md and install/plan-deployment/supported-platforms.md had no relref/callout shortcodes to convert)
  • Shortcodes converted: 281 relref, 24 callouts
  • Verification: before/after hugo --minify build, diffed with the patched build/diff_rendered_hrefs.py (see DOC-7104-diff-hrefs-fix / DOC-7104: Fix diff_rendered_hrefs.py to catch unquoted href attributes #4087) scoped to operate/rs/installing-upgrading — 0 href diffs. Build warning/error logs diffed too: no new warnings or errors (only WARN-ordering/tempfile-name nondeterminism, and the same pre-existing unrelated commands/cf.reserve fatal build error present in both the before and after builds — not caused by this change).

Findings

  • 8 indented/list-nested callouts (known gotcha from earlier units of this ticket) needed a hand-fix: the mechanical converter only preserves list-item indentation on the callout's opening > [!TYPE] line, dropping it on every continuation line and leaving a stray trailing > line of pure whitespace. Fixed in 6 files (2 had two instances each): configuring/change-location-socket-files.md, install/_index.md, install/install-on-linux.md, quickstarts/redis-enterprise-software-quickstart.md, upgrading/upgrade-active-active.md, upgrading/upgrade-cluster.md. Verified by comparing rendered <li> nesting before/after for each instance, not just the href set — nesting is identical in every case, and 3 of the 6 files render byte-identical HTML pre- and post-fix.
  • No missing-paren relrefs, no-slash-concatenation relrefs, or literal HTML callout wrappers were found in this unit.
  • A distinct pattern showed up but turned out harmless: several relref paths end in .md (e.g. file-locations.md, manage-installation-questions.md), which the linkify stage can't canonicalize to /content/... form and leaves as a plain link with the .md suffix intact. render-link.html strips a trailing .md before its own page lookup, so these resolve identically pre- and post-conversion — confirmed by the 0-diff href comparison.

Test plan

  • Pre-flight scan for known gotcha patterns (missing-paren relref, no-slash-concatenation relref, literal HTML callout wrappers, indented/list-nested callouts, unquoted title=) — only the indented-callout pattern hit, hand-fixed as above.
  • build/migrate_shortcode_links.py all run once over the full 33-file list.
  • Before/after hugo --minify build, diff_rendered_hrefs.py scoped to operate/rs/installing-upgrading — 0 diffs.
  • <li> nesting verified structurally (not just hrefs) for every indented-callout fix.
  • Build warning/error logs diffed before vs. after — no new issues.

🤖 Generated with Claude Code


Note

Low Risk
Documentation-only syntax migration with verified equivalent link rendering; no product or runtime behavior changes.

Overview
Migrates the Redis Software install and upgrade docs (content/operate/rs/installing-upgrading/) from Hugo relref shortcodes to plain Markdown internal links (resolved by render-link.html) and from note / warning / similar callout shortcodes to > [!NOTE]-style blockquotes (resolved by render-blockquote.html).

Across 31 files, internal cross-links now use /content/... paths instead of {{< relref ... >}}, and callouts use GitHub-flavored alert syntax. Eight list-nested callouts in six files were hand-adjusted so continuation lines keep correct list indentation after conversion. multitabs, embed-md, and other shortcodes are unchanged.

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

…hooks

Converts the relref and note/tip/warning/alert callout shortcodes under
content/operate/rs/installing-upgrading/ (unit 4 of 15) to the DOC-6909
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.
Purely mechanical -- no prose, terminology, or fact changes.

281 relref shortcodes and 24 callout shortcodes converted across 31 of
the section's 33 files (configuring/_index.md and
install/plan-deployment/supported-platforms.md had none to convert).
Ran build/migrate_shortcode_links.py all over the full file list in one
invocation, then verified with a before/after `hugo --minify` build and
the DOC-7104-diff-hrefs-fix patched build/diff_rendered_hrefs.py, scoped
to operate/rs/installing-upgrading: 0 href diffs, and no new build
warnings/errors (the log diff was pure WARN-ordering/tempfile-name
nondeterminism, plus the same pre-existing unrelated commands/cf.reserve
fatal error in both builds).

Found and hand-fixed 8 indented/list-nested callouts (a known gotcha from
the earlier units of this ticket): the mechanical converter preserves
indentation only on the callout's opening `> [!TYPE]` line, dropping it
on every continuation line and leaving a stray trailing `>` line of pure
whitespace. Verified by comparing rendered `<li>` nesting before/after
(not just the href set) for each of the 6 affected files
(configuring/change-location-socket-files.md, install/_index.md,
install/install-on-linux.md [2 instances],
quickstarts/redis-enterprise-software-quickstart.md,
upgrading/upgrade-active-active.md, upgrading/upgrade-cluster.md [2
instances]): nesting is identical, and in 3 of the 6 files the fixed
markup renders byte-identical HTML to the pre-conversion shortcode.

Also confirmed a distinct pre-existing pattern is harmless here: several
relref paths end in `.md` (e.g. file-locations.md,
manage-installation-questions.md), which the linkify stage can't
canonicalize to /content/... form, but render-link.html strips a
trailing `.md` before its own GetPage lookup, so these resolve
identically pre- and post-conversion (confirmed via the 0-diff href
comparison). No missing-paren relrefs, no no-slash-concatenation
relrefs, and no literal HTML callout wrappers were found in this unit.

build/diff_rendered_hrefs.py's own unquoted-href-attribute fix
(DOC-7104-diff-hrefs-fix, PR #4087) was pulled into the worktree to run
verification but is not part of this change and is excluded from this
commit.

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-installing-upgrading/operate/rs/installing-upgrading/
https://redis.io/docs/staging/DOC-7104-installing-upgrading/operate/rs/installing-upgrading/configuring/centos-rhel-firewall/
https://redis.io/docs/staging/DOC-7104-installing-upgrading/operate/rs/installing-upgrading/configuring/change-location-socket-files/
https://redis.io/docs/staging/DOC-7104-installing-upgrading/operate/rs/installing-upgrading/configuring/linux-swap/
https://redis.io/docs/staging/DOC-7104-installing-upgrading/operate/rs/installing-upgrading/creating-support-package/
https://redis.io/docs/staging/DOC-7104-installing-upgrading/operate/rs/installing-upgrading/install/
https://redis.io/docs/staging/DOC-7104-installing-upgrading/operate/rs/installing-upgrading/install/customize-install-directories/
https://redis.io/docs/staging/DOC-7104-installing-upgrading/operate/rs/installing-upgrading/install/customize-user-and-group/
https://redis.io/docs/staging/DOC-7104-installing-upgrading/operate/rs/installing-upgrading/install/install-on-linux/
https://redis.io/docs/staging/DOC-7104-installing-upgrading/operate/rs/installing-upgrading/install/install-script/
https://redis.io/docs/staging/DOC-7104-installing-upgrading/operate/rs/installing-upgrading/install/manage-installation-questions/
https://redis.io/docs/staging/DOC-7104-installing-upgrading/operate/rs/installing-upgrading/install/offline-installation/
https://redis.io/docs/staging/DOC-7104-installing-upgrading/operate/rs/installing-upgrading/install/plan-deployment/
https://redis.io/docs/staging/DOC-7104-installing-upgrading/operate/rs/installing-upgrading/install/plan-deployment/configuring-aws-instances/
https://redis.io/docs/staging/DOC-7104-installing-upgrading/operate/rs/installing-upgrading/install/plan-deployment/file-locations/
https://redis.io/docs/staging/DOC-7104-installing-upgrading/operate/rs/installing-upgrading/install/plan-deployment/hardware-requirements/
https://redis.io/docs/staging/DOC-7104-installing-upgrading/operate/rs/installing-upgrading/install/plan-deployment/persistent-ephemeral-storage/
https://redis.io/docs/staging/DOC-7104-installing-upgrading/operate/rs/installing-upgrading/install/prepare-install/
https://redis.io/docs/staging/DOC-7104-installing-upgrading/operate/rs/installing-upgrading/install/prepare-install/download-install-package/
https://redis.io/docs/staging/DOC-7104-installing-upgrading/operate/rs/installing-upgrading/install/prepare-install/port-availability/
https://redis.io/docs/staging/DOC-7104-installing-upgrading/operate/rs/installing-upgrading/move-from-open-source/
https://redis.io/docs/staging/DOC-7104-installing-upgrading/operate/rs/installing-upgrading/product-lifecycle/
https://redis.io/docs/staging/DOC-7104-installing-upgrading/operate/rs/installing-upgrading/quickstarts/
https://redis.io/docs/staging/DOC-7104-installing-upgrading/operate/rs/installing-upgrading/quickstarts/docker-quickstart/
https://redis.io/docs/staging/DOC-7104-installing-upgrading/operate/rs/installing-upgrading/quickstarts/redis-enterprise-software-quickstart/
https://redis.io/docs/staging/DOC-7104-installing-upgrading/operate/rs/installing-upgrading/uninstalling/
https://redis.io/docs/staging/DOC-7104-installing-upgrading/operate/rs/installing-upgrading/upgrading/
https://redis.io/docs/staging/DOC-7104-installing-upgrading/operate/rs/installing-upgrading/upgrading/upgrade-active-active/
https://redis.io/docs/staging/DOC-7104-installing-upgrading/operate/rs/installing-upgrading/upgrading/upgrade-cluster/
https://redis.io/docs/staging/DOC-7104-installing-upgrading/operate/rs/installing-upgrading/upgrading/upgrade-database/

@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 bacd8cf into main Sep 24, 2026
100 checks passed
@andy-stark-redis
andy-stark-redis deleted the DOC-7104-installing-upgrading branch September 24, 2026 08:16
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