aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin/translators/documentables
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@interia.pl>2020-03-11 22:01:04 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-03-12 09:03:22 +0100
commit18bada290ab8ebdbf6f5e43d9c3415dd5225227d (patch)
tree65d0d775fdb180740fc3c3660b2d563a0e9a613c /plugins/base/src/main/kotlin/translators/documentables
parentf60a499f6242411e191c60dd5ca1578155594103 (diff)
downloaddokka-18bada290ab8ebdbf6f5e43d9c3415dd5225227d.tar.gz
dokka-18bada290ab8ebdbf6f5e43d9c3415dd5225227d.tar.bz2
dokka-18bada290ab8ebdbf6f5e43d9c3415dd5225227d.zip
Fix nested monospace spans in signature
Diffstat (limited to 'plugins/base/src/main/kotlin/translators/documentables')
-rw-r--r--plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt19
1 files changed, 7 insertions, 12 deletions
diff --git a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
index 401802eb..79f876bf 100644
--- a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
+++ b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
@@ -61,9 +61,7 @@ open class DefaultPageCreator(
block("Types", 2, ContentKind.Classlikes, s.classlikes, platformData.toSet()) {
link(it.name.orEmpty(), it.dri)
group {
- group(kind = ContentKind.Symbol) {
- +buildSignature(it)
- }
+ +buildSignature(it)
group(kind = ContentKind.BriefComment) {
text(it.briefDocumentation())
}
@@ -72,9 +70,8 @@ open class DefaultPageCreator(
block("Functions", 2, ContentKind.Functions, s.functions, platformData.toSet()) {
link(it.name, it.dri)
group {
- group(kind = ContentKind.Symbol) {
- +buildSignature(it)
- }
+ +buildSignature(it)
+
group(kind = ContentKind.BriefComment) {
text(it.briefDocumentation())
}
@@ -91,18 +88,16 @@ open class DefaultPageCreator(
protected open fun contentForClasslike(c: Classlike) = contentBuilder.contentFor(c) {
header(1) { text(c.name.orEmpty()) }
- group(kind = ContentKind.Symbol) {
- +buildSignature(c)
- }
+ +buildSignature(c)
+
+contentForComments(c) { it !is Property }
if (c is WithConstructors) {
block("Constructors", 2, ContentKind.Constructors, c.constructors, c.platformData.toSet()) {
link(it.name, it.dri)
group {
- group(kind = ContentKind.Symbol) {
- +buildSignature(it)
- }
+ +buildSignature(it)
+
group(kind = ContentKind.BriefComment) {
text(it.briefDocumentation())
}