Skip to content

docs: fix remaining broken links in API documentation#5342

Open
AliMahmoudDev wants to merge 1 commit into
nodejs:mainfrom
AliMahmoudDev:fix/broken-doc-links
Open

docs: fix remaining broken links in API documentation#5342
AliMahmoudDev wants to merge 1 commit into
nodejs:mainfrom
AliMahmoudDev:fix/broken-doc-links

Conversation

@AliMahmoudDev
Copy link
Copy Markdown

This relates to...

Fixes #3322

Changes

Bug Fixes

Several previous PRs (#3807, #3820, #5065) fixed many broken links in the Docsify-based documentation, but a number of relative links remained that resolve incorrectly on the live site at undici.nodejs.org.

The following broken links were fixed across 7 files:

File Broken Link Fixed Link
Pool.md [PoolStats](PoolStats.md) [PoolStats](/docs/docs/api/PoolStats.md)
RoundRobinPool.md [PoolStats](PoolStats.md) [PoolStats](/docs/docs/api/PoolStats.md)
MockCallHistory.md [see](./MockCallHistoryLog.md#to-string) [see](/docs/docs/api/MockCallHistoryLog.md#to-string)
SnapshotAgent.md [MockAgent](./MockAgent.md) [MockAgent](/docs/docs/api/MockAgent.md)
SnapshotAgent.md [MockCallHistory](./MockCallHistory.md) [MockCallHistory](/docs/docs/api/MockCallHistory.md)
SnapshotAgent.md [Testing](../best-practices/writing-tests.md) [Testing](/docs/docs/best-practices/writing-tests.md)
api-lifecycle.md 7x [Client.*](Client.md#...) [Client.*](/docs/docs/api/Client.md#...)
Dispatcher.md [Example 2](/docs/docs/api/Dispatch.md#...) [Example 2](/docs/docs/api/Dispatcher.md#...)
Fetch.md [install()](/docs/api/GlobalInstallation.md) [install()](/docs/docs/api/GlobalInstallation.md)

All links now use the consistent /docs/docs/api/ absolute path pattern established in the previously merged PRs.

Status

  • I have read and agree to the Developer Certificate of Origin 1.1
  • Documentation fix
  • Ready for review

Fixes nodejs#3322

Several previous PRs (nodejs#3807, nodejs#3820, nodejs#5065) fixed many broken links
in the Docsify-based documentation, but a number of relative links
remained that resolve incorrectly on the live site.

Changes:
- Pool.md: PoolStats.md -> /docs/docs/api/PoolStats.md
- RoundRobinPool.md: PoolStats.md -> /docs/docs/api/PoolStats.md
- MockCallHistory.md: ./MockCallHistoryLog.md#to-string -> /docs/docs/api/MockCallHistoryLog.md#to-string
- SnapshotAgent.md: 3 relative links -> absolute /docs/docs/api/ and /docs/docs/best-practices/ paths
- api-lifecycle.md: 7 Client.md relative links -> /docs/docs/api/Client.md
- Dispatcher.md: Dispatch.md -> /docs/docs/api/Dispatcher.md
- Fetch.md: /docs/api/ -> /docs/docs/api/

All links now use the consistent /docs/docs/api/ absolute path pattern
established in the previously merged PRs.

## Status
- [x] I agree to the Developer Certificate of Origin 1.1
- [x] Documentation fix
- [x] Ready for review
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 webpage

1 participant