diff options
author | Vadim Mishenev <vad-mishenev@yandex.ru> | 2021-12-09 19:37:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-09 19:37:32 +0300 |
commit | d219894b95e1eed7f85ad232cf4f64d5a8ab0d31 (patch) | |
tree | a09c4f6cefafd2e3bb392cc3e1c3fffe2c8f80d4 /plugins/base/src/main/kotlin/translators/documentables | |
parent | 4dc0654ee951722d61087f1cf2e8c3cc9a341780 (diff) | |
download | dokka-d219894b95e1eed7f85ad232cf4f64d5a8ab0d31.tar.gz dokka-d219894b95e1eed7f85ad232cf4f64d5a8ab0d31.tar.bz2 dokka-d219894b95e1eed7f85ad232cf4f64d5a8ab0d31.zip |
Make breakable text into See also block (#2267)
Diffstat (limited to 'plugins/base/src/main/kotlin/translators/documentables')
-rw-r--r-- | plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt | 14 |
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) } } |