Skip to content

DOC-7128: make the RedisVL sync emit Markdown images, and convert its 19 copies - #4206

Merged
andy-stark-redis merged 1 commit into
mainfrom
DOC-7128-redisvl-images
Oct 5, 2026
Merged

andy-stark-redis merged 1 commit into
mainfrom
DOC-7128-redisvl-images

Conversation

@andy-stark-redis

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

Copy link
Copy Markdown
Contributor

Summary

The last image shortcodes on the site were the RedisVL architecture diagram, one copy per RedisVL version. They couldn't be hand-converted like the rest, because build/redisvl_docs_sync.py writes the shortcode itself. Upstream images arrive as ![alt](_static/x), and line 652 turned them into {{< image … >}}, so the next sync would have undone any hand edit. Part of DOC-7128.

  • Sync script: a one-line change, so it now emits ![alt](/images/redisvl/x).
  • Content: the 19 synced copies are converted to match. I checked that the script's new output, run with its own regex and replacement on the upstream form, is byte-identical to the converted lines, so the next sync regenerates them with no churn.

With this PR, no content file uses the image shortcode, and none render anywhere on the site. The shortcode template itself can be retired in a follow-up.

Verification

  • Built main and this branch under the production baseURL (/docs/latest/): both succeeded (19,673 pages), and the hook reported no missing images.
  • All 19 diagrams render with an identical src/width/alt/class. 0 image differences on any page.
  • Old-style sdata-lightbox shortcode wrappers left in the rendered site: 19 on main, 0 on this branch.
  • AI Markdown feed: the same 19 absolute image URLs, and no relative links.

🤖 Generated with Claude Code


Note

Low Risk
Docs-only markup change in the RedisVL sync pipeline and mirrored architecture pages; no runtime or security impact.

Overview
Switches RedisVL doc sync and synced content from Hugo {{< image >}} shortcodes to standard Markdown images for the architecture diagram.

build/redisvl_docs_sync.py now maps upstream ![alt](_static/...) to ![alt](/images/redisvl/...) instead of emitting the image shortcode, so future syncs won’t reintroduce shortcodes. The 19 concepts/architecture.md copies (latest + versioned paths) are updated to the same Markdown line, removing the last in-repo uses of the image shortcode (DOC-7128).

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

… 19 copies

build/redisvl_docs_sync.py turned upstream `![alt](_static/x)` images into the
image shortcode, so converting the synced files by hand would have been undone
by the next sync. It now emits `![alt](/images/redisvl/x)`, and the 19 copies
of the architecture diagram (one per RedisVL version) are converted to match.
The script's new output is byte-identical to the converted lines, so the next
sync regenerates them with no churn.

With this, no content file uses the image shortcode, and none render anywhere
on the site.

Verified under the production baseURL: all 19 diagrams render with an identical
src/width/alt/class at /docs/latest/images/redisvl/..., and the AI Markdown
feed keeps its 19 absolute image URLs.

Constraint: redisvl_docs_sync.py must emit Markdown images; reverting it to the shortcode would bring back a shortcode the site no longer defines once it's retired
Ticket: DOC-7128
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

DOC-7128

@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Staging links:
https://redis.io/docs/staging/DOC-7128-redisvl-images/develop/ai/redisvl/0.15.0/concepts/architecture/
https://redis.io/docs/staging/DOC-7128-redisvl-images/develop/ai/redisvl/0.16.0/concepts/architecture/
https://redis.io/docs/staging/DOC-7128-redisvl-images/develop/ai/redisvl/0.17.0/concepts/architecture/
https://redis.io/docs/staging/DOC-7128-redisvl-images/develop/ai/redisvl/0.17.1/concepts/architecture/
https://redis.io/docs/staging/DOC-7128-redisvl-images/develop/ai/redisvl/0.18.0/concepts/architecture/
https://redis.io/docs/staging/DOC-7128-redisvl-images/develop/ai/redisvl/0.18.1/concepts/architecture/
https://redis.io/docs/staging/DOC-7128-redisvl-images/develop/ai/redisvl/0.18.2/concepts/architecture/
https://redis.io/docs/staging/DOC-7128-redisvl-images/develop/ai/redisvl/0.19.0/concepts/architecture/
https://redis.io/docs/staging/DOC-7128-redisvl-images/develop/ai/redisvl/0.20.0/concepts/architecture/
https://redis.io/docs/staging/DOC-7128-redisvl-images/develop/ai/redisvl/0.20.1/concepts/architecture/
https://redis.io/docs/staging/DOC-7128-redisvl-images/develop/ai/redisvl/0.22.0/concepts/architecture/
https://redis.io/docs/staging/DOC-7128-redisvl-images/develop/ai/redisvl/0.23.0/concepts/architecture/
https://redis.io/docs/staging/DOC-7128-redisvl-images/develop/ai/redisvl/0.24.0/concepts/architecture/
https://redis.io/docs/staging/DOC-7128-redisvl-images/develop/ai/redisvl/0.25.0/concepts/architecture/
https://redis.io/docs/staging/DOC-7128-redisvl-images/develop/ai/redisvl/0.25.1/concepts/architecture/
https://redis.io/docs/staging/DOC-7128-redisvl-images/develop/ai/redisvl/0.26.0/concepts/architecture/
https://redis.io/docs/staging/DOC-7128-redisvl-images/develop/ai/redisvl/0.27.0/concepts/architecture/
https://redis.io/docs/staging/DOC-7128-redisvl-images/develop/ai/redisvl/0.27.1/concepts/architecture/
https://redis.io/docs/staging/DOC-7128-redisvl-images/develop/ai/redisvl/concepts/architecture/

@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

🧠 Redis Memory

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

Memory updated at 28d5ca1

@andy-stark-redis

Copy link
Copy Markdown
Contributor Author

Thanks @paoloredis !

@andy-stark-redis
andy-stark-redis merged commit 7a99d2c into main Oct 5, 2026
100 checks passed
@andy-stark-redis
andy-stark-redis deleted the DOC-7128-redisvl-images branch October 5, 2026 11:55
andy-stark-redis added a commit that referenced this pull request Oct 5, 2026
Every image on the site is now Markdown, rendered by
layouts/_default/_markup/render-image.html: 1,829 shortcodes converted across
#4151 to #4206. No content file calls {{< image >}}, so the shortcode is deleted,
along with the two process-markdown-content.html rules that rewrote it for the
AI Markdown/JSON feed (the Markdown-image rules stay).

It also deletes five embeds that nothing includes and that never rendered,
because content/embeds/ is build: render: never: account-role-table.html,
create-db.md, rc-create-db-use-cases.md, rc-version-upgrade.md, and
tls-configuration-procedure.md. README.md's Images section now shows the
Markdown forms (plain, with an attribute line, and inline icon), and
HUGO_DEPENDENCY_ASSESSMENT.md's link to the deleted template points at
render-image.html.

A throwaway site confirmed that Hugo fails the build on a call to a missing
shortcode (exit 1), so clean builds under the production baseURL, both normal
and with drafts, show that nothing still calls it. Against main: 0 image
differences, and the AI feed files are identical apart from Git dates that
come from the baseline build.

Learned: Hugo fails the build on a call to a missing shortcode, but --quiet plus a pipe hides both the error and the exit code; check $? directly
Constraint: write images as Markdown; the image shortcode no longer exists, and any {{< image >}} call fails the build
Ticket: DOC-7128
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
EliShteinman added a commit to EliShteinman/docs that referenced this pull request Oct 5, 2026
Makes the RedisVL sync emit Markdown images and converts its 19 architecture-diagram copies.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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