Skip to content

docs: fix broken links in docsify sidebar#5065

Merged
mcollina merged 1 commit intonodejs:mainfrom
maruthang:docs/issue-4326-sidebar-links
Apr 19, 2026
Merged

docs: fix broken links in docsify sidebar#5065
mcollina merged 1 commit intonodejs:mainfrom
maruthang:docs/issue-4326-sidebar-links

Conversation

@maruthang
Copy link
Copy Markdown
Contributor

This relates to...

Fixes #4326. Refs #3322.

Rationale

The sidebar links in docs/docsify/sidebar.md use /docs/api/... paths, which work on the deployed docsify site but produce 404s in GitHub blob view because the actual files live at docs/docs/api/.... The custom marked renderer added in docs/index.html (PR #3807) already de-duplicates /docs/docs/ to /docs/ for the live site, so switching the sidebar to repo-relative form keeps both views working.

Changes

Bug Fixes

  • Update sidebar links in docs/docsify/sidebar.md to repo-relative paths (/docs/docs/api/...).
  • Fix /examples/ -> /docs/examples/ (the directory actually lives at docs/examples/).
  • Rename Socks5Agent entry to Socks5ProxyAgent.md to match the actual exported class.

Status

The sidebar links pointed to /docs/api/... which works on the deployed docsify
site but 404s in GitHub blob view because the actual files live at
/docs/docs/api/.... The custom renderer in docs/index.html added by PR nodejs#3807
already de-duplicates /docs/docs/ to /docs/ for the live site, so switching
sidebar links to repo-relative form (/docs/docs/api/...) keeps the live site
working and fixes GitHub blob view.

Also corrects two pre-existing broken sidebar entries: /examples/ now points
to /docs/examples/ where the directory actually lives, and the Socks5Agent
entry was renamed to Socks5ProxyAgent.md to match the actual exported class
and filename.

Fixes: nodejs#4326
Refs: nodejs#3322
Copy link
Copy Markdown
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Hope it works

@mcollina mcollina merged commit 2a07f01 into nodejs:main Apr 19, 2026
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.

Broken links in docs/docsify/sidebar.md – incorrect API doc URLs

2 participants