Skip to content

DOC-7104: Migrate content/operate/rs/references/ (excl. rest-api) to render hooks - #4091

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

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

Conversation

@andy-stark-redis

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

Copy link
Copy Markdown
Contributor

Summary

Unit 6 of 15 for the DOC-7104 (RS references/) render-hook migration. Converts relref link shortcodes to plain Markdown links, and note/tip/warning/alert callout shortcodes to > [!NOTE]-style blockquotes, across all 85 files under content/operate/rs/references/ except references/rest-api/ (generated from an engineering-owned OpenAPI spec, explicitly out of scope and untouched).

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

Profile flag: this unit inverted the ticket's expectation. The ticket described this unit as callout-heavy (~663 callouts) and nearly relref-free (~7 calls). The actual content is the opposite: 685 relref calls across 55 files, and only 9 callouts across 8 files (8 note, 1 warning; no tip or alert shortcodes present). Verification effort was reallocated toward relref gotchas accordingly, though both known indentation and relref issues were checked.

Hand-fixes beyond the mechanical script run

  • 1 indentation fixcli-utilities/rladmin/_index.md had a {{<note>}} shortcode indented 4 spaces inside a numbered list item (1. Run: \rladmin`). The converter preserved the 4-space indent only on the blockquote's > [!NOTE]header line, leaving the continuation/closing lines unindented and detached from the
  • . Fixed by hand; verified via rendered HTML that the closing
  • ` structure is byte-identical to the pre-conversion build.
  • 7 relref trailing-slash fixescompatibility/commands/{cluster,connection,generic,pub-sub,scripting,server,transactions}.md each had one {{< relref "/commands" >}}?group=<x> link. Hugo's relref implicitly appends a trailing slash before the query string (/commands/?group=x), matching the established convention already live in content/develop/data-types/_index.md. The converter's stage-1 unwrap concatenated without that slash (/commands?group=x). Fixed by hand to restore /commands/?group=x.
  • No missing/unmatched relref parens found (0 instances).
  • No custom title= attributes on callouts found (0 instances) — nothing to verify there.

Verification

  • Built Hugo before and after (hugo --minify) into separate output dirs. Both builds hit the same 4 pre-existing, unrelated errors (jupyter-example readFile on develop/clients/* and a JS-minify failure on commands/cf.reserve, both reproducible on unmodified main under this sandbox — not caused by this change). All 289 pages under operate/rs/references rendered in both builds.
  • Ran the patched build/diff_rendered_hrefs.py (from DOC-7104-diff-hrefs-fix / PR DOC-7104: Fix diff_rendered_hrefs.py to catch unquoted href attributes #4087, pulled in for verification only and not included in this branch) comparing before/after: 0 href diffs across all 289 pages, after both hand-fixes above.
  • Spot-checked rendered HTML directly for all 9 callouts (alert-div count and structure match before/after) and for the fixed list-nesting case, since an href diff alone can't catch a callout-structure regression.

Test plan

  • Confirm references/rest-api/ is untouched (git diff --stat shows no files under that path)
  • Spot-check a few converted pages in a live Hugo preview for correct rendering of links and callouts
  • Confirm the rladmin/_index.md note still renders nested under its list item
  • Confirm the 7 compatibility/commands/*.md command-reference links still filter the commands index page correctly

🤖 Generated with Claude Code


Note

Low Risk
Documentation-only mechanical shortcode-to-Markdown migration with Hugo build and href parity verification; no runtime or API changes.

Overview
Migrates Redis Software references/ docs (excluding rest-api/) from Hugo shortcodes to render-hook–friendly Markdown: {{< relref >}}/content/... links across alerts, CLI utilities (crdb-cli, redis-cli, rladmin), compatibility pages, and related reference topics, plus {{< note >}} / {{<warning>}}> [!NOTE] / > [!WARNING] blockquotes.

No product or prose changes—syntax only. Follow-up fixes restore list-nested callout indentation in rladmin/_index.md and /commands/?group= trailing slashes in seven compatibility command pages so links match prior Hugo behavior.

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

…render hooks

Converts relref link shortcodes to plain Markdown links and note/tip/warning/
alert callout shortcodes to blockquote-form render hooks across the 85 files
under content/operate/rs/references/, excluding references/rest-api/ (OpenAPI-
generated, out of scope for this ticket).

Unusual profile for this unit: unlike prior units in this ticket, this
directory is relref-heavy (685 relref calls across 55 files) and callout-light
(9 callouts across 8 files) -- the reverse of what the ticket anticipated.

Hand-fixes beyond the mechanical script run:
- 1 indentation fix: cli-utilities/rladmin/_index.md had a `{{<note>}}`
  shortcode indented inside a numbered list item. The converter preserved the
  4-space indent only on the blockquote's `> [!NOTE]` header line, leaving the
  continuation and closing lines unindented and detached from the `<li>`.
  Verified via rendered HTML that the fix restores identical <li> nesting
  to the pre-conversion build.
- 7 relref trailing-slash fixes: compatibility/commands/{cluster,connection,
  generic,pub-sub,scripting,server,transactions}.md each had one
  `{{< relref "/commands" >}}?group=<x>` link. Relref implicitly appends a
  trailing slash before the query string (`/commands/?group=x`, matching the
  established convention in content/develop/data-types/_index.md), but the
  converter concatenated without it (`/commands?group=x`). Fixed by hand.

Verified with the patched build/diff_rendered_hrefs.py (from
DOC-7104-diff-hrefs-fix, not merged into this branch) plus manual rendered-
HTML spot checks of callout nesting: 0 href diffs across all 289 pages under
operate/rs/references after both hand-fixes.

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

Staging links:
https://redis.io/docs/staging/DOC-7104-references/operate/rs/references/alerts/
https://redis.io/docs/staging/DOC-7104-references/operate/rs/references/alerts/alerts-v1-to-v2/
https://redis.io/docs/staging/DOC-7104-references/operate/rs/references/cli-utilities/
https://redis.io/docs/staging/DOC-7104-references/operate/rs/references/cli-utilities/crdb-cli/
https://redis.io/docs/staging/DOC-7104-references/operate/rs/references/cli-utilities/crdb-cli/crdb/add-instance/
https://redis.io/docs/staging/DOC-7104-references/operate/rs/references/cli-utilities/crdb-cli/crdb/create/
https://redis.io/docs/staging/DOC-7104-references/operate/rs/references/cli-utilities/crdb-cli/crdb/purge-instance/
https://redis.io/docs/staging/DOC-7104-references/operate/rs/references/cli-utilities/crdb-cli/crdb/remove-instance/
https://redis.io/docs/staging/DOC-7104-references/operate/rs/references/cli-utilities/crdb-cli/crdb/update/
https://redis.io/docs/staging/DOC-7104-references/operate/rs/references/cli-utilities/crdb-cli/task/status/
https://redis.io/docs/staging/DOC-7104-references/operate/rs/references/cli-utilities/redis-cli/
https://redis.io/docs/staging/DOC-7104-references/operate/rs/references/cli-utilities/rladmin/
https://redis.io/docs/staging/DOC-7104-references/operate/rs/references/cli-utilities/rladmin/bind/
https://redis.io/docs/staging/DOC-7104-references/operate/rs/references/cli-utilities/rladmin/cluster/certificate/
https://redis.io/docs/staging/DOC-7104-references/operate/rs/references/cli-utilities/rladmin/cluster/config/
https://redis.io/docs/staging/DOC-7104-references/operate/rs/references/cli-utilities/rladmin/cluster/join/
https://redis.io/docs/staging/DOC-7104-references/operate/rs/references/cli-utilities/rladmin/failover/
https://redis.io/docs/staging/DOC-7104-references/operate/rs/references/cli-utilities/rladmin/info/
https://redis.io/docs/staging/DOC-7104-references/operate/rs/references/cli-utilities/rladmin/metrics/
https://redis.io/docs/staging/DOC-7104-references/operate/rs/references/cli-utilities/rladmin/migrate/
https://redis.io/docs/staging/DOC-7104-references/operate/rs/references/cli-utilities/rladmin/node/addr/
https://redis.io/docs/staging/DOC-7104-references/operate/rs/references/cli-utilities/rladmin/node/enslave/
https://redis.io/docs/staging/DOC-7104-references/operate/rs/references/cli-utilities/rladmin/node/external-addr/
https://redis.io/docs/staging/DOC-7104-references/operate/rs/references/cli-utilities/rladmin/node/maintenance-mode/
https://redis.io/docs/staging/DOC-7104-references/operate/rs/references/cli-utilities/rladmin/node/recovery-path/
https://redis.io/docs/staging/DOC-7104-references/operate/rs/references/cli-utilities/rladmin/node/remove/
https://redis.io/docs/staging/DOC-7104-references/operate/rs/references/cli-utilities/rladmin/node/snapshot/
https://redis.io/docs/staging/DOC-7104-references/operate/rs/references/cli-utilities/rladmin/placement/
https://redis.io/docs/staging/DOC-7104-references/operate/rs/references/cli-utilities/rladmin/recover/
https://redis.io/docs/staging/DOC-7104-references/operate/rs/references/cli-utilities/rladmin/tune/

@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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants