Skip to content

docs(readme): use absolute URLs for logo images#20

Closed
nh13 wants to merge 1 commit into
fix/clippy-1.95-warningsfrom
fix-crates-io-readme-logos
Closed

docs(readme): use absolute URLs for logo images#20
nh13 wants to merge 1 commit into
fix/clippy-1.95-warningsfrom
fix-crates-io-readme-logos

Conversation

@nh13

@nh13 nh13 commented Apr 30, 2026

Copy link
Copy Markdown
Member

Why

crates.io strips relative image paths from rendered READMEs, so the logo at the top of this crate's page on crates.io is broken. Switching to absolute raw.githubusercontent.com URLs renders correctly on both GitHub and crates.io.

What changed

  • Replaced relative srcset/src paths with absolute raw URLs pinned to main.
  • GitHub continues to honor <picture> dark/light switching; crates.io ignores <source> and falls back to the <img> (light variant), which is the same behavior as before, just no longer broken.

Note

The crate page itself only updates on the next published version — this PR prevents future releases from being broken, but doesn't refresh the existing crate page.


Stacked on top of #19 (clippy fixes for rust-1.95). When #19 merges, this PR will auto-retarget to main and the diff will be the README change only.

Use https://raw.githubusercontent.com/<org>/<repo>/main/... for logo
references so they render on crates.io. Relative paths render correctly
on GitHub but are dropped by the crates.io README sanitizer, leaving a
broken image at the top of every crate page.
@nh13 nh13 deleted the branch fix/clippy-1.95-warnings April 30, 2026 21:53
@nh13 nh13 closed this Apr 30, 2026
@nh13 nh13 deleted the fix-crates-io-readme-logos branch April 30, 2026 22:28
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