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)