-
-
Notifications
You must be signed in to change notification settings - Fork 35.2k
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
Feature request: Types of arguments in documentation #12580
Comments
/ping @mrdoob So what is your opinion ? |
This was already discussed a number of times: #2869, #4725, #11550 I think the approach of the project is clear: #3445 (comment) |
Ah my apologies, I wasn't aware. |
No problem |
@haroldiedema Thanks for your suggestion, anyway. |
Another issue of JSDocs I've recently realised is that it doesn't scale to docs localisation (not that our docs have been localised yet anyway... 😛) |
@Itee can you point me to a docs page were that change is applicable? |
@mrdoob Almost everywhere in the doc ?! But if you want some listing:
Maybe this could be normalized during doc generation ? |
far: Camera frustum far plane. Default is 2000. The valid range is between the current value of the near plane and infinity. near: Camera frustum near plane. Default is 0.1. The valid range is greater than 0 and less than the current value of the far plane. I don't see how this one could be much clearer. Agreed that some of the others need work though.
Docs are written by hand, not generated. Automatically generated docs tend to be pretty horrible to read. |
Ok I thought there was some helpers or templates somewhere. |
Next to #12574 part 1
Currently we was have access to the variable type using hovering in the documentation. But it is maybe unusable on mobile. And is not guess to know !
The proposal is to add the type and when possible the range of the parameters.
Example:
fooParam - The fooParam of the bar class. A Floating point number, in the range 0.0 - 1.0 with default to null
instead of
fooParam - The fooParam of the bar class. Default to null
The text was updated successfully, but these errors were encountered: