-
Notifications
You must be signed in to change notification settings - Fork 5
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
Can the template handle @!group and @!endgroup directives ? #11
Comments
Never used the Does that default YARD template support that tag? (I've not had a chance to look at the dcutils.rb file. Very busy days when I'm here at Boulder so my time I very limited for the duration of this month.) |
Just noticed this PR in the YARD repo: "Enable groups for constants" Would that affect this topic? |
They currently work for grouping methods into separate summary groups at the top of the class pages. (So far I've been unable to get them to also group some descriptive text along inside the group.)
Yes, and again, I gave you an example of both the input "dcutils.rb" and the output "Group.html" from the "default" YARD template, in the zip attached to the referenced comment (above) in Issue 38.
I'll need to try this locally for constants first.
It might, ... I'll look into this. But my concern (and the question here) is with your "round trip" tools. Can your diff tool "see" So the first thing for YOU to try locally, is that special "dcutils.rb" which groups methods (which do work with groups,) just to test the "round trip". |
Currently the tool isn't doing anything with |
Okay, yes this is the basic feature I have always wanted re, Constants. That they are by default listed in a collapsible group just like the methods. (Not sure why this was not done from the start?) Then after this, it would be nice to be able to subgroup them into collapsible sublists with headings. I've subscribed to that YARD PR to see when it is merged. |
Okay, I confirm the current YARD "default" template will not honor |
Here is a very good example of separating methods into categorical summary groups. (Note that they are still listed in alpha order in the method details litings.) http://www.rubydoc.info/gems/yard/0.9.5/YARD/Templates/Helpers/HtmlHelper |
Looks like there is movement on the constant grouping PR in the YARD repo ... |
@thomthom Loren Segal has merged the constant grouping PR into master, but not since released a new YARD version. |
Can the template handle
@!group
and@!endgroup
directives, reading them in stubs, pulling them into C++, and then output again to stubs, html ?One of the files needing update is "_top_level.rb" and the constants need to be grouped into a collapsing section.
Did you get a chance to try the "dcutils.rb" file I had sent (in
"Group.zip.txt"
) or just view the"Group.html"
file in that zip ? SketchUp/ruby-api-docs#38 (comment)The text was updated successfully, but these errors were encountered: