-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Inconsistent behaviour of @link
, @apiLink
and [[...]]
#66
Comments
@jan-molak Both With that said, TypeDoc resolves entities in a much different way than this plugin does, as they have full context into the parsed data, while this plugin only has access to the raw JSON files. Because of this, we added |
I believe typedoc produces different shape for |
I just ran into this as I was trying to do this: import { Actor } from "../Actor";
/**
* An example {@link Actor | `actors`} link
*/ And it only outputted the plain If I switch it to FWIW the JSON output of the original looks like this: {
"kind": "inline-tag",
"tag": "@link",
"text": "`actors`",
"target": 2828, // Actor class
"tsLinkText": "`actors`"
}, It's too bad the plugin can't just use that for the comments to render since that has all the info 🤔 |
Hey @milesj!
It seems like
@link
,@apiLink
and[[...]]
have a slightly inconsistent behaviour, so I thought I'd summarise it here.In short, using
@link
with descriptions works fine when linking to classes in other modules of my monorepo, but fails when used to link to classes in the same module.@link
@apiLink
[[...]]
MyClass
MyClass
MyClass|my descr
MyClass|my descr
MyClass.method
MyClass.method
MyClass.method|my descr
MyClass.method|my descr
Would you say it's fair to conclude that using
@apiLink
is preferable over@link
? Or am I missing something?Also, would you expect
{@apiLink MyClass}
to work when used in Docusaurus docs? Or should a regular markdown link be used instead?Thanks!
The text was updated successfully, but these errors were encountered: