diff options
author | Ignat Beresnev <ignat.beresnev@jetbrains.com> | 2022-08-03 13:51:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-03 13:51:50 +0200 |
commit | 3994c42f2f2366d2e551e62412518a210581cb3a (patch) | |
tree | 8f67a972f4ae055f8e6177cf43aaf4cc1f06e5d6 /plugins/base/src/main/kotlin/transformers/pages | |
parent | 018af7d18f50b0677a31714e29744ac2d8713c4f (diff) | |
download | dokka-3994c42f2f2366d2e551e62412518a210581cb3a.tar.gz dokka-3994c42f2f2366d2e551e62412518a210581cb3a.tar.bz2 dokka-3994c42f2f2366d2e551e62412518a210581cb3a.zip |
Apply the same style to all KDoc tags, including throws/see/parameters (#2587)
Diffstat (limited to 'plugins/base/src/main/kotlin/transformers/pages')
-rw-r--r-- | plugins/base/src/main/kotlin/transformers/pages/tags/SinceKotlinTagContentProvider.kt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/base/src/main/kotlin/transformers/pages/tags/SinceKotlinTagContentProvider.kt b/plugins/base/src/main/kotlin/transformers/pages/tags/SinceKotlinTagContentProvider.kt index c9010421..a1d30903 100644 --- a/plugins/base/src/main/kotlin/transformers/pages/tags/SinceKotlinTagContentProvider.kt +++ b/plugins/base/src/main/kotlin/transformers/pages/tags/SinceKotlinTagContentProvider.kt @@ -1,9 +1,9 @@ package org.jetbrains.dokka.base.transformers.pages.tags import org.jetbrains.dokka.DokkaConfiguration +import org.jetbrains.dokka.base.translators.documentables.KDOC_TAG_HEADER_LEVEL import org.jetbrains.dokka.base.translators.documentables.PageContentBuilder.DocumentableContentBuilder import org.jetbrains.dokka.model.doc.CustomTagWrapper -import org.jetbrains.dokka.pages.ContentKind import org.jetbrains.dokka.pages.TextStyle object SinceKotlinTagContentProvider : CustomTagContentProvider { @@ -16,8 +16,8 @@ object SinceKotlinTagContentProvider : CustomTagContentProvider { sourceSet: DokkaConfiguration.DokkaSourceSet, customTag: CustomTagWrapper ) { - group(sourceSets = setOf(sourceSet), kind = ContentKind.Comment, styles = setOf(TextStyle.Block)) { - header(4, customTag.name) + group(sourceSets = setOf(sourceSet), styles = emptySet()) { + header(KDOC_TAG_HEADER_LEVEL, customTag.name) comment(customTag.root) } } @@ -31,4 +31,4 @@ object SinceKotlinTagContentProvider : CustomTagContentProvider { comment(customTag.root, styles = emptySet()) } } -}
\ No newline at end of file +} |