Skip to content

DOC-7104: Migrate content/operate/rs/flex/, monitoring/, and networking/ to render hooks - #4092

Open
andy-stark-redis wants to merge 1 commit into
mainfrom
DOC-7104-flex-monitoring-networking
Open

andy-stark-redis wants to merge 1 commit into
mainfrom
DOC-7104-flex-monitoring-networking

Conversation

@andy-stark-redis

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

Copy link
Copy Markdown
Contributor

Summary

Unit 7 of 15 in the shortcode-to-render-hook migration (DOC-6909/DOC-7104) — and the last unit for the live/unversioned tree (units 8–15 cover frozen version snapshots).

Converts every file under content/operate/rs/flex/ (4 files), content/operate/rs/monitoring/ (12 files), and content/operate/rs/networking/ (8 files) — 24 files total, 22 of which had a shortcode to convert:

  • relref link shortcodes → plain Markdown links (/content/<path>.md[#anchor]), resolved by layouts/_default/_markup/render-link.html
  • note/tip/warning/alert callout shortcodes → > [!NOTE]-style blockquotes, resolved by layouts/_default/_markup/render-blockquote.html

Purely mechanical syntax migration. No prose, terminology, or facts were touched.

Real counts (measured directly by grep before converting, not from the ticket's rough estimate): 132 relref shortcodes and 17 callout shortcodes. These matched the ticket's rough estimate (~130 relref, ~17 callouts) for this particular unit.

Gotcha instances found

  • List-indented callouts (4 instances): content/operate/rs/flex/get-started.md, content/operate/rs/monitoring/get-started.md (×2), content/operate/rs/monitoring/metrics_stream_engine/_index.md. The converter only preserves indentation on a blockquote's header line, leaving continuation/closing lines unindented and a stray whitespace-only > artifact line, which detaches the blockquote from its <li> nesting. Hand-fixed by re-indenting continuation lines and removing the stray line. Verified via rendered HTML that <li> nesting is unchanged before/after in each case.
  • No-slash relref concatenation: none found.
  • relref missing a paren: none found.

Verification

  • Built Hugo before and after the conversion (hugo --minify).
  • Ran the patched build/diff_rendered_hrefs.py (from PR DOC-7104: Fix diff_rendered_hrefs.py to catch unquoted href attributes #4087, fixing a regex that only matched double-quoted href attributes) for each of the three subdirectory prefixes: 0 href diffs in operate/rs/flex, operate/rs/monitoring, and operate/rs/networking.
  • Confirmed build/diff_rendered_hrefs.py itself is not part of this diff (git diff --stat origin/main -- build/ is empty).

Test plan

  • Review rendered pages for content/operate/rs/flex/, content/operate/rs/monitoring/, and content/operate/rs/networking/ on preview
  • Spot check the 4 hand-fixed list-indented callouts render correctly nested inside their list items

🤖 Generated with Claude Code


Note

Low Risk
Documentation-only syntax migration with no product or runtime changes; risk is limited to broken links or callout rendering on preview.

Overview
This PR continues the shortcode-to-render-hook migration (DOC-7104) for 24 live docs under content/operate/rs/flex/, monitoring/, and networking/.

Internal links: Hugo {{< relref "..." >}} shortcodes are replaced with plain Markdown links using /content/... paths (and anchors where needed), which render-link.html resolves like relref.

Callouts: {{< note >}}, {{< warning >}}, and similar shortcodes become GitHub-style alert blockquotes (> [!NOTE], > [!WARNING], etc.), handled by render-blockquote.html.

A few list-nested callouts were hand-fixed so blockquotes stay indented under their list items. Prose and facts are unchanged; verification reported zero rendered href diffs for these trees.

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

…ng/ to render hooks

Converts relref link shortcodes to plain Markdown links and note/tip/warning/alert
callout shortcodes to `> [!NOTE]`-style blockquotes across all 24 files in
content/operate/rs/flex/ (4), content/operate/rs/monitoring/ (12), and
content/operate/rs/networking/ (8) — resolved by render-link.html and
render-blockquote.html per the DOC-6909 render-hook migration. Purely mechanical;
no prose, terminology, or facts changed. This is unit 7 of 15 and the last unit
for the live/unversioned tree.

132 relref shortcodes and 17 callout shortcodes converted (measured directly by
grep, not from the ticket's rough estimate). 22 of 24 files changed; flex/scale.md's
sibling observability.md and networking/_index.md had none to convert.

Hand-fixed 4 instances of the known list-indented-callout gotcha (the converter
only preserves indentation on a blockquote's header line, leaving continuation
lines unindented and a stray whitespace-only `>` line): flex/get-started.md,
monitoring/get-started.md (x2), monitoring/metrics_stream_engine/_index.md.
Verified via rendered HTML that <li> nesting is unchanged before/after in each case.

No instances found of the other two known gotchas (relref with no separating
slash before trailing path text; relref missing a paren).

diff_rendered_hrefs.py (patched version from PR #4087, not part of this commit)
reports 0 href diffs across all three subdirectory prefixes.

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-flex-monitoring-networking/operate/rs/flex/
https://redis.io/docs/staging/DOC-7104-flex-monitoring-networking/operate/rs/flex/get-started/
https://redis.io/docs/staging/DOC-7104-flex-monitoring-networking/operate/rs/flex/plan/
https://redis.io/docs/staging/DOC-7104-flex-monitoring-networking/operate/rs/flex/scale/
https://redis.io/docs/staging/DOC-7104-flex-monitoring-networking/operate/rs/monitoring/
https://redis.io/docs/staging/DOC-7104-flex-monitoring-networking/operate/rs/monitoring/db-availability/
https://redis.io/docs/staging/DOC-7104-flex-monitoring-networking/operate/rs/monitoring/get-started/
https://redis.io/docs/staging/DOC-7104-flex-monitoring-networking/operate/rs/monitoring/health-report/
https://redis.io/docs/staging/DOC-7104-flex-monitoring-networking/operate/rs/monitoring/metrics_stream_engine/
https://redis.io/docs/staging/DOC-7104-flex-monitoring-networking/operate/rs/monitoring/metrics_stream_engine/alerts-v1-to-v2/
https://redis.io/docs/staging/DOC-7104-flex-monitoring-networking/operate/rs/monitoring/metrics_stream_engine/db-tags-in-metrics/
https://redis.io/docs/staging/DOC-7104-flex-monitoring-networking/operate/rs/monitoring/metrics_stream_engine/metrics-configuration/
https://redis.io/docs/staging/DOC-7104-flex-monitoring-networking/operate/rs/monitoring/metrics_stream_engine/prometheus-metrics-v1-to-v2/
https://redis.io/docs/staging/DOC-7104-flex-monitoring-networking/operate/rs/monitoring/metrics_stream_engine/prometheus-metrics-v2/
https://redis.io/docs/staging/DOC-7104-flex-monitoring-networking/operate/rs/monitoring/v1_monitoring/
https://redis.io/docs/staging/DOC-7104-flex-monitoring-networking/operate/rs/networking/cluster-dns/
https://redis.io/docs/staging/DOC-7104-flex-monitoring-networking/operate/rs/networking/cluster-lba-setup/
https://redis.io/docs/staging/DOC-7104-flex-monitoring-networking/operate/rs/networking/configuring-aws-route53-dns-redis-enterprise/
https://redis.io/docs/staging/DOC-7104-flex-monitoring-networking/operate/rs/networking/mdns/
https://redis.io/docs/staging/DOC-7104-flex-monitoring-networking/operate/rs/networking/multi-ip-ipv6/
https://redis.io/docs/staging/DOC-7104-flex-monitoring-networking/operate/rs/networking/port-configurations/
https://redis.io/docs/staging/DOC-7104-flex-monitoring-networking/operate/rs/networking/private-public-endpoints/

@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