Skip to content

DOC-7055: Migrate develop/data-types/probabilistic to render hooks - #3966

Merged
andy-stark-redis merged 3 commits into
mainfrom
DOC-7055-probabilistic
Sep 10, 2026
Merged

andy-stark-redis merged 3 commits into
mainfrom
DOC-7055-probabilistic

Conversation

@andy-stark-redis

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

Copy link
Copy Markdown
Contributor

Summary

  • Migrates content/develop/data-types/probabilistic/ (unit B of DOC-7055) from Hugo shortcodes to native-Markdown render hooks, using build/migrate_shortcode_links.py all.
  • {{< relref "..." >}} links converted to plain ](/content/...) links; {{< note >}}/{{< warning >}}/{{% alert title="Note" color="warning" %}} converted to > [!NOTE] / > [!WARNING] blockquote alerts.
  • bloom-filter.md had no shortcodes to convert, so it's unchanged.

Stacked on #3965 (percent-form/attributed-callout support in the migration script) — base is that branch, not main, so this doesn't have to wait for it to merge. GitHub will retarget automatically once #3965 merges.

Test plan

  • Reviewed the full diff; spot-checked configuration.md (2 notes + 1 warning, bare angle-bracket) and hyperloglogs.md ({{% alert title="Note" color="warning" %}} → bare > [!NOTE], redundant title dropped, color= silently dropped as expected).
  • hugo --minify build before/after; python3 build/diff_rendered_hrefs.py scoped to develop/data-types/probabilistic reports zero href differences (8 vs 8 pages, 0 changed).
  • Diffed full build warning/error output before vs after — no new warnings; the single pre-existing site-wide render error (/commands/cf.reserve/index.html JS minification) and one unrelated warning (clients/go/vecsets.md, from concurrent parallel-unit activity) appear on both sides.
  • Checked rendered HTML for the converted alert in hyperloglogs.md — it sits between a <ul> and a <p>, not adjacent to the page's clients-example widget, so no &nbsp; spacer fix was needed.

Note

Low Risk
Documentation-only link and callout rewrites in one content subtree; PR validation reports unchanged rendered hrefs for that scope.

Overview
Migrates content/develop/data-types/probabilistic/ from Hugo shortcodes to native Markdown render hooks: internal {{< relref ... >}} links become canonical /content/... paths, and {{< note >}} / {{< warning >}} / {{% alert ... %}} callouts become > [!NOTE] / > [!WARNING] blockquotes (including the percent-form alert in hyperloglogs.md, with redundant default titles dropped).

build/migrate_shortcode_links.py is extended so the callout stage accepts {{< and {{% delimiters, optional attributes such as title=, maps alert to the note alert type, and documents that behavior—supporting the automated all migration used on this section.

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

andy-stark-redis and others added 2 commits September 10, 2026 10:10
…ed callouts

The DOC-6909 note/warning/tip/info/alert -> `> [!TYPE]` blockquote converter
only matched the angle-bracket `{{< note >}}` form. The percent-delimited
`{{% note %}}` form, and a `title=` attribute on any of them, went
unconverted -- previously an accepted gap (rare: ~3 known instances in the
whole develop/clients/ rollout). data-types alone has 3 in one section
(timeseries/configuration.md's bare `{{% warning %}}`,
probabilistic/hyperloglogs.md's `{{% alert title="Note" color="warning" %}}`,
vector-sets/_index.md's `{{< alert title="Try it out" >}}`), so it's now
worth generalizing rather than hand-fixing per unit.

Verified against the three real target cases (converted exactly as
expected, color= silently dropped since the render hook has no color
concept) plus five already-known bare-angle cases (byte-identical output,
no regression).

Not in scope here: content/develop/clients/redis-py and lettuce each carry
1-2 of the same unconverted percent-alert leftovers from DOC-7047 -- this
fix would also resolve those, but that's a separate, already-merged
section's cleanup, not this ticket's.
Ticket: DOC-7055
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Convert relref-wrapped links to plain markdown links and note/warning/alert
callout shortcodes to GitHub-style blockquote alerts, using
build/migrate_shortcode_links.py (all stage: relref-to-plain, callouts, then
linkify). bloom-filter.md had no shortcodes to convert.

Ticket: DOC-7055
@github-actions

github-actions Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

DOC-7055

@github-actions

github-actions Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor


Redis is also able to perform the union of HLLs, please check the
[full documentation]({{< relref "/commands#hyperloglog" >}}) for more information.
[full documentation](/commands#hyperloglog) for more information.

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.

I didn't expect this link to work, but it did. 👏🏻

@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.

Base automatically changed from DOC-7055-callout-percent-form-support to main September 10, 2026 14:03
Review on #3967 flagged two coexisting ways to select a group on the
commands index page. The `?group=` query string is the mechanism the
page's filter JS actually reads (url.searchParams); a bare `#anchor` only
works via a one-time compat shim that rewrites hash to query on load. It's
also the dominant form site-wide (46 files vs. 4). Standardizing on
?group= here.
Ticket: DOC-7055
Co-Authored-By: Claude Sonnet 5 <[email protected]>
@andy-stark-redis
andy-stark-redis merged commit 924d84e into main Sep 10, 2026
97 checks passed
@andy-stark-redis
andy-stark-redis deleted the DOC-7055-probabilistic branch September 10, 2026 14:45
@andy-stark-redis

Copy link
Copy Markdown
Contributor Author

Thanks @dwdougherty !

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