Skip to content

DOC-7128 unit 1: convert develop/ image shortcodes to Markdown images - #4152

Merged
andy-stark-redis merged 1 commit into
mainfrom
DOC-7128-unit1-develop
Sep 29, 2026
Merged

andy-stark-redis merged 1 commit into
mainfrom
DOC-7128-unit1-develop

Conversation

@andy-stark-redis

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

Copy link
Copy Markdown
Contributor

Summary

Converts the image shortcodes in content/develop/ to Markdown images, using the render hook and codemod from #4151 (merged). Unit 1 of DOC-7128.

Counts: 23 files, 104 images converted, 0 image shortcodes left in scope. Of the 104, 78 bare paths (images/...) and 1 dot-relative path were rewritten to site-root /images/....

Moved image: polygons.png, the only image query_syntax.md uses, moves from content/develop/ai/search-and-query/img/ to static/images/dev/rqe/, next to the geo page's geoshapes.jpg. No other page referenced it. Its old URL is no longer published.

Not included: content/develop/ai/redisvl/ (19 copies of one architecture diagram). build/redisvl_docs_sync.py writes that shortcode itself, so converting the files by hand would be undone on the next sync. That needs a change to the sync script instead.

Verification

  • Built DOC-7128 unit 0: add image render hook and migration codemod #4151's branch and this branch under the production baseURL (/docs/latest/): both succeeded, 19,661 pages each, with no missing-image warnings from the hook.
  • Compared src/width/alt/class for every image on every page. Only 2 images change, both intended:
    • develop/tools/insight/insight-stream-consumer: /docs/images/ri/ri-streams-cg.png becomes /docs/latest/images/ri/ri-streams-cg.png. The old path is broken in production today.
    • query_syntax: polygons.png at its new location.
  • The codemod deleted exactly one line per converted shortcode, so nothing else in these files changed.
  • AI Markdown feed for develop/: no attribute lines and no relative /images/ links remain.

🤖 Generated with Claude Code


Note

Low Risk
Documentation-only markup and static asset path changes; intended URL fixes with no application or security impact.

Overview
Unit 1 of DOC-7128 replaces Hugo {{< image >}} shortcodes with standard Markdown images across 23 files under content/develop/ (104 figures), so they render through the image render hook from #4151.

Each conversion uses ![alt](/images/...) with site-root paths (bare images/... and dot-relative URLs normalized). Where shortcodes had width, that moves to a separate {width="..."} line. Prose is unchanged aside from these embeds.

Asset fix: polygons.png moves from content/develop/ai/search-and-query/img/ to static/images/dev/rqe/ (alongside geoshapes.jpg). insight-stream-consumer fixes a broken ri-streams-cg.png URL for production /docs/latest/.

Out of scope: content/develop/ai/redisvl/ still uses shortcodes because the sync script regenerates them.

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

@github-actions

github-actions Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

DOC-7128

@github-actions

github-actions Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Redis Memory

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

Memory updated at eeef765

@github-actions

Copy link
Copy Markdown
Contributor

Staging links:
https://redis.io/docs/staging/DOC-7128-unit1-develop/develop/ai/agent-builder/agent-concepts/
https://redis.io/docs/staging/DOC-7128-unit1-develop/develop/ai/context-engine/agent-memory/overview/
https://redis.io/docs/staging/DOC-7128-unit1-develop/develop/ai/context-engine/concepts/
https://redis.io/docs/staging/DOC-7128-unit1-develop/develop/ai/context-engine/context-retriever/concepts/
https://redis.io/docs/staging/DOC-7128-unit1-develop/develop/ai/context-engine/data-integration/
https://redis.io/docs/staging/DOC-7128-unit1-develop/develop/ai/context-engine/langcache/
https://redis.io/docs/staging/DOC-7128-unit1-develop/develop/ai/context-engine/langcache/concepts/
https://redis.io/docs/staging/DOC-7128-unit1-develop/develop/ai/search-and-query/advanced-concepts/geo/
https://redis.io/docs/staging/DOC-7128-unit1-develop/develop/ai/search-and-query/advanced-concepts/query_syntax
https://redis.io/docs/staging/DOC-7128-unit1-develop/develop/ai/search-and-query/advanced-concepts/query_syntax/
https://redis.io/docs/staging/DOC-7128-unit1-develop/develop/clients/client-side-caching/
https://redis.io/docs/staging/DOC-7128-unit1-develop/develop/clients/failover/
https://redis.io/docs/staging/DOC-7128-unit1-develop/develop/clients/pools-and-muxing/
https://redis.io/docs/staging/DOC-7128-unit1-develop/develop/data-types/streams/idempotency/
https://redis.io/docs/staging/DOC-7128-unit1-develop/develop/data-types/strings/bitmaps/
https://redis.io/docs/staging/DOC-7128-unit1-develop/develop/data-types/timeseries/out-of-order_performance_considerations/
https://redis.io/docs/staging/DOC-7128-unit1-develop/develop/data-types/vector-sets/
https://redis.io/docs/staging/DOC-7128-unit1-develop/develop/get-started/data-store/
https://redis.io/docs/staging/DOC-7128-unit1-develop/develop/tools/insight/
https://redis.io/docs/staging/DOC-7128-unit1-develop/develop/tools/insight/insight-stream-consumer/
https://redis.io/docs/staging/DOC-7128-unit1-develop/develop/tools/insight/rdi-connector/
https://redis.io/docs/staging/DOC-7128-unit1-develop/develop/tools/insight/search-workspace/
https://redis.io/docs/staging/DOC-7128-unit1-develop/develop/tools/redis-for-vscode/
https://redis.io/docs/staging/DOC-7128-unit1-develop/develop/using-commands/pipelining/

@andy-stark-redis
andy-stark-redis requested a review from a team September 29, 2026 15:07
@andy-stark-redis andy-stark-redis self-assigned this Sep 29, 2026

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

I tested a few random pages. All LGTM.

Base automatically changed from DOC-7128-image-render-hook to main September 29, 2026 15:10
Runs build/migrate_image_shortcodes.py over content/develop/ (23 files, 104
images, all of them convertible). Also moves polygons.png, the only image
query_syntax.md uses, from content/develop/ai/search-and-query/img/ to
static/images/dev/rqe/, next to the geo page's geoshapes.jpg. The codemod
only converts images that live in static/, and a page-relative path would not
resolve because query_syntax.md is not a page bundle. The old URL stops being
published; nothing else in the repo referenced it.

content/develop/ai/redisvl/ (19 copies of one architecture diagram) is left
out on purpose. build/redisvl_docs_sync.py writes that shortcode itself, so
converting the files by hand would be undone on the next sync.

Verified by building unit 0 and this branch under the production baseURL and
comparing img src/width/alt/class on every page: only two images change, both
intended (insight-stream-consumer's broken /docs/images path fixed, and
polygons.png at its new location).

Directive: convert redisvl/ images by changing the _IMAGE_STATIC replacement in build/redisvl_docs_sync.py, not by editing the synced files
Ticket: DOC-7128
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@andy-stark-redis
andy-stark-redis merged commit 998b50d into main Sep 29, 2026
99 checks passed
@andy-stark-redis
andy-stark-redis deleted the DOC-7128-unit1-develop branch September 29, 2026 15:29
EliShteinman added a commit to EliShteinman/docs that referenced this pull request Sep 29, 2026
Converts the image shortcodes in content/develop/ to Markdown images and moves polygons.png into static/images.
EliShteinman added a commit to EliShteinman/docs that referenced this pull request Sep 29, 2026
Converts the image shortcodes in content/develop/ to Markdown images and moves polygons.png into static/images.
@andy-stark-redis

Copy link
Copy Markdown
Contributor Author

Thanks @dwdougherty !

andy-stark-redis added a commit that referenced this pull request Oct 2, 2026
Runs build/migrate_image_shortcodes.py over content/embeds/ and
content/operate/oss_and_stack/, converting 89 image shortcodes to Markdown
images; 21 that the codemod can't convert safely stay as shortcodes. Embeds
render inside every page that includes them, archived version pages among
them, so the build comparison checked them through those pages: no image
attributes changed except the moved images.

The 7 Triggers and Functions screenshots used by Quick_Start_RI.md lived in a
content/ images/ folder, which the codemod won't convert. They move to
static/images/triggers-and-functions/, as polygons.png did in #4152; the files
are byte-identical, nothing else referenced them, and the old URLs stop being
published.

content/embeds/ never renders as pages (build: render: never), and four files
in it are included nowhere: account-role-table.html, rc-create-db-use-cases.md,
rc-version-upgrade.md, and tls-configuration-procedure.md. The three Markdown
ones are converted here but can't be render-verified. account-role-table.html's
36 raw <img> tags with ../ paths are left alone, because they never render.

Gaps: the converted dead embeds (rc-create-db-use-cases, rc-version-upgrade, tls-configuration-procedure) could not be render-verified
Ticket: DOC-7128
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