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
Scaladoc @groups only work if there is more than one group #10078
Labels
Milestone
Comments
Imported From: https://issues.scala-lang.org/browse/SI-10078?orig=1
|
I'll take a peek at this one! |
Lacaranian
added a commit
to Lacaranian/scala
that referenced
this issue
Oct 15, 2017
In the special case that every member of a package used the same group annotation, Scaladoc would ignore the group. This was due to filtering that checked the number of extant groups (including the default "Ungrouped" group), skipping groups if only one group was found. Unfortunately, the "Ungrouped" group could be missing if all templates used the same group! Fix this by filtering out the "Ungrouped" group entirely, and checking for the existence of any other groups. Make the solution a bit less fragile by referencing the default group constant defined in ModelFactory, rather than the default group's string directly.
Lacaranian
added a commit
to Lacaranian/scala
that referenced
this issue
Oct 15, 2017
In the special case that every member of a package used the same group annotation, Scaladoc would ignore the group. This was due to filtering that checked the number of extant groups (including the default "Ungrouped" group), skipping groups if only one group was found. Unfortunately, the "Ungrouped" group could be missing if all templates used the same group! Fix this by filtering out the "Ungrouped" group entirely, and checking for the existence of any other groups. Make the solution a bit less fragile by referencing the default group constant defined in ModelFactory, rather than the default group's string directly.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I put all members of a package in the same group, the
@group
is ignored.I expect that there is one group, "foo", that contains both "Bar" and "Baz". Instead, there are the default groups "Type Members" and "Value Members".
I did some more experiments: When I put the members in different groups, they are shown correctly:
When I put only one of them in a group, both are shown correctly:
The text was updated successfully, but these errors were encountered: