Open moreal opened 3 months ago
Now, it doesn't render @example JSDoc tag for classes' constructors. When to run deno doc --html ./mod.ts && open docs/~/A.html with mod.ts file:
@example
deno doc --html ./mod.ts && open docs/~/A.html
mod.ts
// mod.ts export class A { /** * @example Creates an instance. * ``` * new A(); * ``` */ constructor() {} /** * @example Call a method. * ``` * const a = new A(); * a.method(); * ``` */ method() {} }
It can see A.prototype.method's example but it cannot see A.prototype.constructor's example.
A.prototype.method
A.prototype.constructor
No route for A.prototype.constructor
It can see A.prototype.method's example at docs/~/A.prototype.method.html
docs/~/A.prototype.method.html
Now, it doesn't render
@example
JSDoc tag for classes' constructors. When to rundeno doc --html ./mod.ts && open docs/~/A.html
withmod.ts
file:It can see
A.prototype.method
's example but it cannot seeA.prototype.constructor
's example.