Skip to content

[docs-infra] JSDoc links are broken #42361

@aarongarciah

Description

@aarongarciah

Steps to reproduce

Link to live example: https://codesandbox.io/p/sandbox/focused-bardeen-6cw9nz?file=%2Fsrc%2FApp.tsx

Steps:

  1. In the code pane of the CodeSandbox linked above, hover the disabled prop in <ListItem disabled />.
  2. In the info tooltip, click the ListItemButton link in the @deprecated message.
Screenshot 2024-05-23 at 17 59 52

Current behavior

The link points to "/material-ui/api/list-item-button/" i.e. the link is broken.

Expected behavior

The link should point to "https://mui.com/material-ui/api/list-item-button/".

Context

The docs infra uses JSDoc comments to generate documentation and relative URLs are used for links. The correct URLs are generated in the docs by appending the correct base URL but devs end up with broken links in their IDEs because of the relative URLs.

Your environment

No response

Search keywords: jsdoc, urls

Metadata

Metadata

Assignees

Labels

scope: docs-infraInvolves the docs-infra product (https://www.notion.so/mui-org/b9f676062eb94747b6768209f7751305).type: bugIt doesn't behave as expected.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions