Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tagging / generating a method link in typedoc?

What markup should we use to tag that something is a method in typedoc. For example I have the following comment:

  /**
   * The index for all of the ValidationContext instances.
   * Not meant to be accessed directly.  Only decorators should
   * be modifying the state of the cache by using the addValidationContext() method.
   */

How do I tell typedoc that addValidationContext is a method on the class?

like image 286
Ole Avatar asked Sep 02 '25 09:09

Ole


1 Answers

TypeDoc has two methods for setting links. For methods and properties, you should be able to write [[ClassName.methodName]] or {@link ClassName.methodName} and have that converted to a link.

If you look at the doc comment for the Renderer class you can see an example which is rendered in the api documentation site.

like image 155
Chic Avatar answered Sep 04 '25 22:09

Chic