- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 735
Customize the order of doc comment block tag rendering #2285
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
Comments
This is unimplementable given TypeDoc's current reflection architecture. Comments on parameters are not contained within the comment for the signature, but on each parameter. That said, TypeDoc really should render the comment summary, then parameters + return type, then the remaining block tags, which would make this better. |
If it's possible to change the default rendering order, why is it not possible to make that rendering order depend on some literal array in the global options? |
It's possible for everything except parameters + returns -- unless an incredible amount of hackery is done, the parameters and returns sections aren't kept in the same collection as the block tags. |
Changelog entry:
|
@Gerrit0 anyway we can render examples above Parameters ? |
You could do it with a custom theme. There's no builtin support. |
really glad to see this make it in - thanks! |
Search Terms
block tags
@remarks
@example
@param
Problem
Currently there seems to be no way to force the "parameters" block to render above the "examples" block. This is troublesome if the
@example
block is lengthy.Suggested Solution
Add an option to mandate the rendering order (top-to-bottom) of the existing block tag sections. This could be represented by a simple string array.
The text was updated successfully, but these errors were encountered: