Skip to content

fix(docs): correct profile README diagram image paths - #5

Merged
MrStarktastic merged 2 commits into
mainfrom
fix/profile-diagram-image-paths
Jun 23, 2026
Merged

fix(docs): correct profile README diagram image paths#5
MrStarktastic merged 2 commits into
mainfrom
fix/profile-diagram-image-paths

Conversation

@MrStarktastic

Copy link
Copy Markdown
Contributor

Summary

The org profile README is at profile/README.md, but the rendered diagrams live at the repository root under docs/diagrams/. GitHub resolves relative image paths against the README's own directory, so the merged docs/diagrams/*.png paths resolved to profile/docs/diagrams/*.png and 404'd (diagrams didn't render on the org profile).

Fix: prefix the four <picture> paths with ../ so they resolve to the repository root.

Verification

  • GitHub rewrites the relative src to …/raw/main/profile/<path>; …/raw/main/profile/../docs/diagrams/pipeline.png returns 200 (GitHub normalizes ..).
  • …/raw/main/docs/diagrams/pipeline.png (the actual file location) returns 200; the previous …/profile/docs/diagrams/… returned 404.

Test Plan

  • After merge, the Pipeline and Architecture Overview diagrams render on the org profile in both light and dark mode

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

Ben Faingold and others added 2 commits June 24, 2026 00:36
The profile README lives in profile/ but the rendered diagrams are at the
repository root under docs/diagrams/. GitHub resolves relative image paths
against the README's directory, so the previous docs/diagrams/* paths
resolved to profile/docs/diagrams/* and 404'd. Prefix ../ so they resolve
to the repository root.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add scripts/check-readme-images.py, run from the diagrams workflow after
rendering. It resolves every local image path the way GitHub does (relative
to the Markdown file's directory) and fails when a target is missing —
catching broken README diagram links before they 404 on the rendered page.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@MrStarktastic
MrStarktastic merged commit 732a819 into main Jun 23, 2026
1 check passed
@MrStarktastic
MrStarktastic deleted the fix/profile-diagram-image-paths branch June 23, 2026 22:16
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.

1 participant