Skip to content

DOC-7104: Migrate content/operate/rs/7.22/references/ (incl. rest-api) to render hooks - #4093

Open
andy-stark-redis wants to merge 1 commit into
mainfrom
DOC-7104-7.22-references
Open

andy-stark-redis wants to merge 1 commit into
mainfrom
DOC-7104-7.22-references

Conversation

@andy-stark-redis

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

Copy link
Copy Markdown
Contributor

Summary

Unit 8 of 15 in the DOC-7104 shortcode-to-render-hook migration (extending DOC-6909 into content/operate/rs/). This is the first of 8 units covering frozen version snapshots: converts every file under content/operate/rs/7.22/references/, including references/rest-api/ (in scope for this ticket, unlike unit 6's live-tree exclusion), per Andy's explicit decision that all frozen-version content is in scope.

  • {{< relref "..." >}} → plain markdown links resolved by render-link.html
  • {{< note >}} / {{< warning >}}> [!NOTE] / > [!WARNING] blockquotes resolved by render-blockquote.html
  • Purely mechanical syntax migration. No wording/facts touched (per content/operate/rs/AGENTS.md, this frozen tree still says "Redis Enterprise Software" deliberately).

My own counts (re-measured by grep, not the ticket's estimate)

  • 272 .md files under content/operate/rs/7.22/references/ (190 of them under rest-api/)
  • 189 files actually changed (carried at least one relref or callout)
  • 1176 {{< relref >}} shortcodes → 1176 plain links
  • 29 callout shortcodes → 29 blockquotes (19 note, 10 warning)
  • Post-conversion grep: 0 remaining shortcode-form relrefs/callouts; 1176 plain-link-resolved paths and 19+10 [!NOTE]/[!WARNING] blockquotes present

Gotchas checked

  • Indented callout in a list item: found one instance, cli-utilities/rladmin/_index.md — a {{<note>}} nested inside a numbered step, where the converter only indented the header line, leaving continuation/closing lines flush left plus a stray blank > artifact. Hand-fixed by re-indenting all blockquote lines to match the list item's nesting and removing the artifact line. Verified via rendered HTML that <li> nesting is identical before/after.
  • relref immediately followed by more path text with no separating slash: none found. The ?group= pattern present in 7 compatibility/commands pages is the already-handled house-style case (relref's own doc says this is expected), not this gotcha.
  • relref missing a paren: none found — all 1176 relrefs matched the well-formed ](relref...) pattern.

Build note

hugo --minify currently fails site-wide on this checkout with a pre-existing, unrelated esbuild syntax error minifying an inline script on /commands/cf.reserve (confirmed present before any change in this PR, on unmigrated content). Verification builds (before/after) therefore both ran without --minify, using identical flags on both sides — rendered href values aren't affected by minification, so the href-diff comparison is still valid. Flagging this separately since it blocks the standard --minify recipe for every unit until fixed.

Test plan

  • find content/operate/rs/7.22/references -name '*.md' | wc -l → 272 (190 under rest-api/)
  • Pre-flight relref/callout grep counts match post-conversion converted-form counts exactly
  • Full-site Hugo build before (pre-migration) and after (post-migration), both non-minified, both succeeded with identical page/alias counts (19626 pages, 1192 aliases)
  • build/diff_rendered_hrefs.py (patched version from DOC-7104: Fix diff_rendered_hrefs.py to catch unquoted href attributes #4087, used for verification only, not included in this diff) scoped to operate/rs/7.22/references: 270/270 pages compared, 0 href-set changes
  • Confirmed build/diff_rendered_hrefs.py is not part of this PR's diff
  • Hand-verified the one gotcha fix's rendered <li> nesting matches before/after

🤖 Generated with Claude Code


Note

Low Risk
Documentation-only mechanical shortcode-to-markdown migration with no runtime or product behavior changes.

Overview
Mechanically migrates the frozen content/operate/rs/7.22/references/ tree (CLI utilities, compatibility tables, client references, and rest-api/) off Hugo shortcodes so render-link.html and render-blockquote.html handle links and callouts instead.

{{< relref >}} cross-references become plain markdown paths under /content/... (including anchors and command links). {{< note >}} / {{< warning >}} become > [!NOTE] / > [!WARNING] blockquotes; the internal-utilities warning on the CLI index and nested rladmin shell note follow the same pattern.

No factual or wording edits—only syntax. Other shortcodes such as table-children and embed-md are unchanged.

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

…) to render hooks

Unit 8 of 15: converts the frozen 7.22 references tree (272 files, 189
carrying relref/callout shortcodes) from {{< relref >}} and
{{< note >}}/{{< warning >}} shortcodes to plain markdown links and
> [!NOTE]/> [!WARNING] blockquotes resolved by the DOC-6909 render hooks.
Unlike unit 6 (live tree), this unit's rest-api/ subtree is in scope per
Andy's explicit decision to include all frozen-version content.

Real counts (re-measured by grep, not taken from the ticket estimate):
1176 relref shortcodes, 29 callouts (19 note, 10 warning) across 189 files.
Post-conversion grep confirms 0 remaining shortcode-form instances and
1176+29 in the new forms.

One gotcha instance found and hand-fixed: cli-utilities/rladmin/_index.md
had a {{<note>}} indented inside a numbered list item, with only the
header line indented and the continuation/closing lines flush left (the
known converter limitation). Fixed by re-indenting all blockquote lines to
match the list item and dropping the stray blank `>` artifact line;
verified via rendered HTML that the <li> nesting is unchanged before/after.
No relref-missing-slash or missing-paren instances found in this unit.

Verification: full-site hugo builds before/after (non-minified -- see
below), diffed with the DOC-7104-diff-hrefs-fix build/diff_rendered_hrefs.py
scoped to operate/rs/7.22/references: 270/270 pages compared, 0 href-set
changes.

Build note: `hugo --minify` currently fails site-wide on this checkout with
an unrelated, pre-existing esbuild syntax error while minifying a script on
/commands/cf.reserve (nothing under this unit's path). Confirmed
pre-existing on unmigrated content too, so it isn't something introduced
here. Verification builds therefore ran without --minify; both before and
after used identical flags, and rendered hrefs are unaffected by
minification, so the comparison is still valid. Flagging so the underlying
build issue can be tracked separately.

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-7.22-references/operate/rs/7.22/references/cli-utilities/
https://redis.io/docs/staging/DOC-7104-7.22-references/operate/rs/7.22/references/cli-utilities/crdb-cli/
https://redis.io/docs/staging/DOC-7104-7.22-references/operate/rs/7.22/references/cli-utilities/crdb-cli/crdb/create/
https://redis.io/docs/staging/DOC-7104-7.22-references/operate/rs/7.22/references/cli-utilities/crdb-cli/crdb/purge-instance/
https://redis.io/docs/staging/DOC-7104-7.22-references/operate/rs/7.22/references/cli-utilities/crdb-cli/crdb/remove-instance/
https://redis.io/docs/staging/DOC-7104-7.22-references/operate/rs/7.22/references/cli-utilities/crdb-cli/crdb/update/
https://redis.io/docs/staging/DOC-7104-7.22-references/operate/rs/7.22/references/cli-utilities/crdb-cli/task/status/
https://redis.io/docs/staging/DOC-7104-7.22-references/operate/rs/7.22/references/cli-utilities/redis-cli/
https://redis.io/docs/staging/DOC-7104-7.22-references/operate/rs/7.22/references/cli-utilities/rladmin/
https://redis.io/docs/staging/DOC-7104-7.22-references/operate/rs/7.22/references/cli-utilities/rladmin/bind/
https://redis.io/docs/staging/DOC-7104-7.22-references/operate/rs/7.22/references/cli-utilities/rladmin/cluster/certificate/
https://redis.io/docs/staging/DOC-7104-7.22-references/operate/rs/7.22/references/cli-utilities/rladmin/cluster/config/
https://redis.io/docs/staging/DOC-7104-7.22-references/operate/rs/7.22/references/cli-utilities/rladmin/failover/
https://redis.io/docs/staging/DOC-7104-7.22-references/operate/rs/7.22/references/cli-utilities/rladmin/migrate/
https://redis.io/docs/staging/DOC-7104-7.22-references/operate/rs/7.22/references/cli-utilities/rladmin/node/addr/
https://redis.io/docs/staging/DOC-7104-7.22-references/operate/rs/7.22/references/cli-utilities/rladmin/node/enslave/
https://redis.io/docs/staging/DOC-7104-7.22-references/operate/rs/7.22/references/cli-utilities/rladmin/node/external-addr/
https://redis.io/docs/staging/DOC-7104-7.22-references/operate/rs/7.22/references/cli-utilities/rladmin/node/maintenance-mode/
https://redis.io/docs/staging/DOC-7104-7.22-references/operate/rs/7.22/references/cli-utilities/rladmin/node/recovery-path/
https://redis.io/docs/staging/DOC-7104-7.22-references/operate/rs/7.22/references/cli-utilities/rladmin/node/remove/
https://redis.io/docs/staging/DOC-7104-7.22-references/operate/rs/7.22/references/cli-utilities/rladmin/node/snapshot/
https://redis.io/docs/staging/DOC-7104-7.22-references/operate/rs/7.22/references/cli-utilities/rladmin/placement/
https://redis.io/docs/staging/DOC-7104-7.22-references/operate/rs/7.22/references/cli-utilities/rladmin/recover/
https://redis.io/docs/staging/DOC-7104-7.22-references/operate/rs/7.22/references/cli-utilities/rladmin/tune/
https://redis.io/docs/staging/DOC-7104-7.22-references/operate/rs/7.22/references/cli-utilities/rladmin/upgrade/
https://redis.io/docs/staging/DOC-7104-7.22-references/operate/rs/7.22/references/cli-utilities/rladmin/verify/
https://redis.io/docs/staging/DOC-7104-7.22-references/operate/rs/7.22/references/client_references/
https://redis.io/docs/staging/DOC-7104-7.22-references/operate/rs/7.22/references/clustering-redis/
https://redis.io/docs/staging/DOC-7104-7.22-references/operate/rs/7.22/references/compatibility/
https://redis.io/docs/staging/DOC-7104-7.22-references/operate/rs/7.22/references/compatibility/client-side-caching/

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.

1 participant