Skip to content

docs: fix broken links in undici webpage#3807

Merged
mcollina merged 2 commits intonodejs:mainfrom
dancastillo:fix-links-in-webpage
Nov 10, 2024
Merged

docs: fix broken links in undici webpage#3807
mcollina merged 2 commits intonodejs:mainfrom
dancastillo:fix-links-in-webpage

Conversation

@dancastillo
Copy link
Copy Markdown
Contributor

This relates to...

#3322
#3748

Rationale

Changes

Using renderer for links can format them to route to appropriate page and not break readmes in github repo.

Absolute links will need to be used updated them for links in docs/docs/api/ instead of relative links

fix-links-in-webpage.mov

Features

Bug Fixes

#3322
#3748

Breaking Changes and Deprecations

Status

Comment thread docs/index.html Outdated
Copy link
Copy Markdown
Contributor

@Uzlopak Uzlopak left a comment

Choose a reason for hiding this comment

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

imho needs to be stricter, see suggestion

@dancastillo dancastillo requested a review from Uzlopak November 8, 2024 13:20
Copy link
Copy Markdown
Contributor

@Uzlopak Uzlopak left a comment

Choose a reason for hiding this comment

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

LGTM

@mcollina mcollina merged commit d62731c into nodejs:main Nov 10, 2024
flakey5 pushed a commit to flakey5/undici that referenced this pull request Nov 14, 2024
@github-actions github-actions Bot mentioned this pull request Dec 3, 2024
This was referenced Dec 16, 2024
@github-actions github-actions Bot mentioned this pull request Mar 12, 2025
@github-actions github-actions Bot mentioned this pull request May 12, 2025
maruthang added a commit to maruthang/undici that referenced this pull request Apr 19, 2026
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
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.

3 participants