aboutsummaryrefslogtreecommitdiff
path: root/plugins/base
diff options
context:
space:
mode:
authorVadim Mishenev <vad-mishenev@yandex.ru>2021-12-09 19:37:32 +0300
committerGitHub <noreply@github.com>2021-12-09 19:37:32 +0300
commitd219894b95e1eed7f85ad232cf4f64d5a8ab0d31 (patch)
treea09c4f6cefafd2e3bb392cc3e1c3fffe2c8f80d4 /plugins/base
parent4dc0654ee951722d61087f1cf2e8c3cc9a341780 (diff)
downloaddokka-d219894b95e1eed7f85ad232cf4f64d5a8ab0d31.tar.gz
dokka-d219894b95e1eed7f85ad232cf4f64d5a8ab0d31.tar.bz2
dokka-d219894b95e1eed7f85ad232cf4f64d5a8ab0d31.zip
Make breakable text into See also block (#2267)
Diffstat (limited to 'plugins/base')
-rw-r--r--plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt14
1 files changed, 10 insertions, 4 deletions
diff --git a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
index b33351ac..1b581355 100644
--- a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
+++ b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
@@ -442,12 +442,18 @@ open class DefaultPageCreator(
kind = ContentKind.Comment,
styles = this@group.mainStyles,
) {
- if (it.address != null) link(
+ it.address?.let { dri ->
+ link(
+ it.name,
+ dri,
+ kind = ContentKind.Comment,
+ styles = mainStyles + ContentStyle.RowTitle
+ )
+ } ?: text(
it.name,
- it.address!!,
- kind = ContentKind.Comment
+ kind = ContentKind.Comment,
+ styles = mainStyles + ContentStyle.RowTitle
)
- else text(it.name, kind = ContentKind.Comment)
comment(it.root)
}
}