-
Notifications
You must be signed in to change notification settings - Fork 408
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
Apply the same style to all KDoc tags, including throws/see/parameters #2587
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -537,7 537,7 @@ open class DefaultPageCreator( | |||
val params = tags.withTypeNamed<Param>() | |||
val availablePlatforms = params.values.flatMap { it.keys }.toSet() | |||
|
|||
header(2, "Parameters", kind = ContentKind.Parameters, sourceSets = availablePlatforms) | |||
header(4, "Parameters", kind = ContentKind.Parameters, sourceSets = availablePlatforms) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is better to make a constant to avoid magic number.
@@ -555,7 555,9 @@ open class DefaultPageCreator( | |||
kind = ContentKind.Parameters, | |||
styles = mainStyles ContentStyle.RowTitle | |||
) | |||
comment(it.root) | |||
if (it.root.children.isNotEmpty()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would create a helper like TagWrapper.isEmpty() = children.isEmpty()
(Law of Demeter)
I've fixed |
See #2576
Now all KDoc tag sections should look the same, including throws/see/parameters
Decreased space between tag header and values
Fixed a problem where longer link text had many word breaks: