Skip to content

DOC-7128: convert the last odd-case image shortcodes outside RedisVL - #4198

Open
andy-stark-redis wants to merge 1 commit into
mainfrom
DOC-7128-image-cleanup
Open

andy-stark-redis wants to merge 1 commit into
mainfrom
DOC-7128-image-cleanup

Conversation

@andy-stark-redis

@andy-stark-redis andy-stark-redis commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes the source quirks that stopped the codemod on the last 10 image shortcodes outside RedisVL, then converts them. Part of DOC-7128. Together with #4197, this leaves the RedisVL diagrams (which need a sync-script change) as the only image shortcodes on the site.

File Problem Fix
rc/api/get-started/manage-api-keys.md (3) Each screenshot ended with a <br/> spacer, so it wasn't alone in its paragraph Removed the <br/>, then converted
kubernetes/7.4.6/architecture/_index.md (2) Two diagrams on one line Put each on its own line, then converted. They already rendered stacked.
oss_and_stack/stack-with-enterprise/timeseries/_index.md (2) Two images in table cells, which the codemod skips Converted by hand to ![](…). An image alone in a cell reaches the hook as a block image, so it renders the same unclassed <img>.
rc/databases/connect/_index.md width=50%" typo, rendered as width="50%&quot;" Fixed to width="50%", then converted
rc/databases/migrate-databases.md, rc/subscriptions/upgrade-essentials-pro.md Backticks in the alt text (`Synced`), which Markdown would parse as a code span Dropped the backticks, then converted

One visible change: removing the <br/> spacers shrinks the gap below those three manage-api-keys screenshots from 56–76px to 32px, the same gap standalone screenshots get elsewhere. The page is 112px shorter.

Verification

  • Built main and this branch under the production baseURL (/docs/latest/): both succeeded (19,664 pages), and the hook reported no missing images.
  • Compared src/width/alt/class for every image on every page. The only changes are the intended ones: 2 alts lose their backticks, the connect width loses the stray quote, and 3 manage-api-keys alts lose literal ** markers. No image gained the icon class.
  • Measured in a browser on both builds: every one of the 10 images renders at exactly its old size, and browsers had already been treating the typo as 50%. The only spacing change is the one described above.

🤖 Generated with Claude Code


Note

Low Risk
Documentation-only Markdown/image markup changes with no runtime, auth, or data impact; the only user-visible effect is slightly tighter spacing below a few API key screenshots.

Overview
Completes DOC-7128 by replacing the last ten non-RedisVL Hugo {{< image >}} shortcodes with standard Markdown ![](…) images (plus {width=…} attribute lines where needed) across six operate docs pages.

Each conversion was preceded by a small source fix the codemod could not handle alone: splitting two inline K8s performance diagrams onto separate lines, hand-converting table-cell Time Series downsampling images, removing trailing <br/> after API key screenshots, correcting a broken width=50%" on the Essentials connect screenshot, and simplifying alt text that used backticks (e.g. `Synced`) so Markdown parses cleanly.

Visible layout change: dropping the <br/> spacers under three manage-api-keys screenshots tightens vertical gap (~56–76px → ~32px); image sizes and most alts stay the same aside from the noted alt/width cleanups.

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

Fixes the source quirks that stopped the codemod on 10 image shortcodes, then
converts them:
- manage-api-keys.md: three screenshots ended with a <br/> spacer, so they
  weren't alone in their paragraph. The <br/> is removed. In a browser this
  shrinks the gap below each from 56-76px to the 32px gap standalone
  screenshots get elsewhere.
- kubernetes 7.4.6 architecture: two diagrams shared one line (they already
  rendered stacked), so they're now on separate lines.
- oss_and_stack timeseries: two images in table cells, converted by hand to
  inline Markdown. An image alone in a table cell reaches the hook as a block
  image, so it renders the same unclassed <img>.
- connect/_index.md: the width=50%" typo is fixed. It had rendered as
  width="50%&quot;", which browsers tolerated as 50%.
- migrate-databases.md, upgrade-essentials-pro.md: backticks are dropped from
  an alt text, because Markdown would have parsed them as a code span.

Built main and this branch under the production baseURL and compared every
image: the only changes are those alt and width values, plus 3 alts losing
literal ** markers. In a browser every image renders at its old size.

Ticket: DOC-7128
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

DOC-7128

@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

🧠 Redis Memory

Found 5 related items from repository history (5 new this commit):

Memory updated at f5180f9

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

LGTC.

@andy-stark-redis

Copy link
Copy Markdown
Contributor Author

Thanks for all your reviews @dwdougherty ! Have a nice weekend :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants