Skip to content

fix: links viewed form extenal - #532

Open
aricart wants to merge 1 commit into
mainfrom
fix/readme-links
Open

aricart wants to merge 1 commit into
mainfrom
fix/readme-links

Conversation

@aricart

@aricart aricart commented Nov 23, 2026

Copy link
Copy Markdown
Member

the markdown links when viewed from embedded views (npm/etc) 404, changed to full URLs

Fixes #531

the markdown links when viewed from embedded views (npm/etc) 404, changed to full URLs
@synadia-claude-reviewer

synadia-claude-reviewer Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @aricart's task in 45s —— View job


Review: fix/readme-links (PR #532)

  • Fetch PR diff (gh pr diff 532)
  • Verify each relative→absolute link resolves to a real file/anchor
  • Check for related relative links left unconverted
  • Post review

Summary: Straightforward docs fix — converts relative markdown links (./LICENSE, ../runtimes.md, examples/*.js, etc.) in the seven published-module READMEs to absolute https://github.com/nats-io/nats.js/blob/main/... URLs so they render correctly when viewed on npm/JSR instead of 404ing.

Verified correctness:

  • Every rewritten LICENSE path resolves (core/LICENSE, jetstream/LICENSE, kv/LICENSE, obj/LICENSE, services/LICENSE, transport-deno/LICENSE, transport-node/LICENSE all exist).
  • runtimes.md and all referenced examples/*.js/*.ts files in jetstream/README.md and services/README.md exist at the new paths.
  • The core/README.md#connecting-to-a-nats-server anchor used in transport-deno/README.md and transport-node/README.md matches the actual heading (### Connecting to a nats-server).
  • No code changes — docs only, no security/correctness/performance concerns.

Minor, non-blocking observation: links are now hardcoded to blob/main, so a README published with an older package version will link to the current main docs rather than content pinned to that release — a known tradeoff of this approach, not a regression introduced here. Also note the root README.md and migration.md still use relative links (e.g. ./LICENSE, ./transport-deno/README.md), but those aren't shipped inside individual npm packages so they're out of scope for this fix.

No issues found that block merging.

This branch has not been deployed

No deployments
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.

README.md has most links returning 404

1 participant