-
Notifications
You must be signed in to change notification settings - Fork 210
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
Support documentation of items within collections #145
Comments
And the output would be something like:
? I am just using {Array of String} as is with
being an output. A bit more PITA, but works. |
I have tried simply using a fake type as you suggested (like I would prefer something like |
I'm not sure I like that. The type is an Array, the description can |
You can mention the sub-type in the description but you can't easily describe it in a way that your readers can track down the type. |
For comparison purposes:
|
I also believe it would be great if this could be supported somehow. |
+1 |
@KylePDavis you can include explicit cross references as described in http://yui.github.io/yuidoc/syntax/index.html#cross-referencing-modules-and-classes E.g.
produces output like:
|
Thanks @lexander for the work around. |
I would also like to see this. I often have methods returning a Promise and it would be really nice if it could documented for example with the angle bracket syntax The cross link feature is a reasonable alternative but I feel it has a way too verbose syntax. Why not just render strings like |
Should talk to a VB guy .. while the following won't "link" the nested types, it will actually be processed, score +1 point.
But really, I feel 😧 for YUIDoc and that it is stuck back in the Java 1.4 era which was over a decade ago. I must say I'm glad I'm only "passing through" YUIDoc and the above solution at least gives a little sense of consistency for tool processing .. |
Only if they convert < to <. |
@shinout Is there a reproducible example? |
@okuryu ###*
@class FooBar
###
###*
@method doSomething
@return {Promise<Object>}
### the "return" part is converted to <span class="type">Promise<Object></span> the version of yuidocjs is v0.5.0, via grunt-contrib-yuidoc v0.7.0 Is the version old? Latest grunt-contrib-yuidoc still uses v0.5.0. |
Sorry for delay. It occurs in all YUIDoc versions, it seems not to be a regression. However, I'd like to work on this in the future. |
I'm looking for a way to document the types within an
Array
(or any other collection types, for that matter).Possible implementations could be:
{Array{type}}
- nesting with curly braces -- seems the most consistent but that's my 2c{Array<type>}
- nesting with angle brackets -- not bad, expected by C++ folks{type[]}
- special handling to denote a collection -- okay, but loose the ability to say what kind of collectionThoughts?
The text was updated successfully, but these errors were encountered: