Repository navigation
Sync SDK docs/images so Agent Forge screenshots render - #23
Merged
Merged
Conversation
scripts/sync-sdk-docs.mjs now mirrors the SDK's docs/images/ to images/ (replaced on every run) and rewrites links that resolve into docs/images/ to /images/... instead of GitHub blob URLs. It fails the run if a page links an image the SDK does not have. Includes agent-forge.mdx and the 12 Studio screenshots synced from LinuxDevil/agent-sdk@91fd2236 (PR #765). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
scripts/sync-sdk-docs.mjsnow copies the SDK'sdocs/images/toimages/on every run (the folder is replaced, so images removed upstream disappear here too).docs/images/are rewritten to/images/...instead of falling through to a GitHubblob/URL, which would not render as an image.agent-forge.mdxand the 12 Studio screenshots from docs(studio): document the new navigation and screens agent-sdk#765. Other pages that drifted since the last sync were left for the scheduledsync/sdk-docsPR.The scheduled sync workflow already commits with
git add -A, so future image changes flow through it.Verification
node scripts/sync-sdk-docs.mjs <sdk@origin/main>:wrote 72 pages and 12 images, exit 0.mint dev: all 12<img>on/agent-forgeload (naturalWidth1280);/images/studio-agents.pngserves 200image/png.mint broken-links: no new broken links (the 6 it reports are pre-existing/ar/examples/*links).🤖 Generated with Claude Code