Skip to content

docs: fix broken relative links in docs site pages#5585

Open
ZayanKhan-12 wants to merge 1 commit into
nodejs:mainfrom
ZayanKhan-12:docs/fix-broken-relative-links
Open

docs: fix broken relative links in docs site pages#5585
ZayanKhan-12 wants to merge 1 commit into
nodejs:mainfrom
ZayanKhan-12:docs/fix-broken-relative-links

Conversation

@ZayanKhan-12

Copy link
Copy Markdown

What

Fixes 16 broken relative links across three docs files:

docs/docs/index.md (adapted from the root README.md) — several links were left written relative to the repo root, so they resolve to nonexistent paths from the file's location:

  • 10× ./docs/docs/api/Dispatcher.md#…./api/Dispatcher.md#… (matches how sibling pages like best-practices/*.md link to API docs)
  • ./CONTRIBUTING.md and ./docs/examples/README.md → canonical GitHub URLs, since those files live outside the docs site root
  • ./docs/ → GitHub URL for the docs directory

docs/README.md — links to ./site.json and ./type-map.json, but both files live in docs/docs/./docs/site.json, ./docs/type-map.json

docs/docs/getting-started.md[Examples](/examples/) → GitHub URL for docs/examples (the absolute path resolves nowhere on GitHub, and the examples directory is not part of the built site)

Verification

Ran a link checker over every markdown file in the repo that resolves each relative link target against the filesystem: 16 broken before, 0 after. No prose changes — link targets only.

🤖 Generated with Claude Code

docs/docs/index.md is adapted from the root README.md, but several
links were left written relative to the repo root, so they resolve to
nonexistent paths from the file's actual location. Rewrite the
Dispatcher API links to ./api/Dispatcher.md, matching how sibling
pages link to API docs, and point targets that live outside the docs
site root (CONTRIBUTING.md, docs/examples) at their canonical GitHub
URLs. Also fix docs/README.md links to site.json and type-map.json,
which live in docs/docs/, and the /examples/ link in
getting-started.md.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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