How to resolve links without writing full path #2992
Replies: 2 comments 1 reply
-
Heyy Also, make sure Feel free to mark this as the answer if it helps! |
Beta Was this translation helpful? Give feedback.
-
If possible, I highly recommend turning this option back on. When you turn it off, TypeDoc no longer uses TypeScript to attempt to resolve links, which is what's causing this problem in the first place.
If you want to leave |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
In my project to resolve links I have to write a full path like
{@link src/../../get-resources.getResources getResources}
but i want to be able to just write name of the function to resolve it. I tried to manually find these paths and insert them into links using custom-typedoc-theme. And I can insert a file path usingapp.converter.on("resolveBegin")
, but I need the path to the reflection, which generates later, not a path to the original file. If I've read correctly, typedoc generates a path if I return a Reflection, but it does not work.Is this not the correct way to get a path to generated reflection? Is there some way to resolve links without writing the whole path each time?
Here's code of the functions in custom-typedoc-theme:
typedoc.json:
Versions:
Beta Was this translation helpful? Give feedback.
All reactions