Skip to content

Relative link to classes contain unnecessary dot for current folder #2910

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
krisztianb opened this issue Mar 19, 2025 · 0 comments
Closed

Comments

@krisztianb
Copy link
Contributor

Search terms

current folder, dot, relative path

Expected Behavior

In the documentation of module a.ts the URL to the generated documentation of the class A used to be (in previous TypeDoc versions):

../classes/a.A.html

Actual Behavior

The URL to the generated documentation of the class A is with TypeDoc version 0.28.0 has changed to:

.././classes/a.A.html

While this is irrelevant for the behavior of the page the additional ./ was not there in previous versions of TypeDoc and could be removed as it serves no purpose in my opinion. I noticed this by coincidence because the change in the URLs break the tests of my plugin.

Steps to reproduce the bug

Check out this branch of my plugin repo:
https://github.com/krisztianb/typedoc-plugin-merge-modules/tree/GH-23-update-dependencies

Run:

npm i
npm run build
npm test

The very first test should generate the described documentation and fail.

Environment

  • Typedoc version: 0.28.0
  • TypeScript version: 5.8.2
  • Node.js version: 20.12.2
  • OS: Windows 10 Home
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

No branches or pull requests

1 participant