aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin/translators/documentables
diff options
context:
space:
mode:
authorMarcin Aman <marcin.aman@gmail.com>2021-07-28 18:23:50 +0200
committerGitHub <noreply@github.com>2021-07-28 18:23:50 +0200
commitb2b542988d1523749ab3a881e3cd4cf502ccdd6d (patch)
tree5a68f6ada1df4c31ffad0597bb6b952f4791a407 /plugins/base/src/main/kotlin/translators/documentables
parentf03083d7534209ad94dc3c4d7afd17f58e58127d (diff)
downloaddokka-b2b542988d1523749ab3a881e3cd4cf502ccdd6d.tar.gz
dokka-b2b542988d1523749ab3a881e3cd4cf502ccdd6d.tar.bz2
dokka-b2b542988d1523749ab3a881e3cd4cf502ccdd6d.zip
Fix broken link in kotlinx.serialization (#2038)
* Fix broken link in kotlinx.serialization * Rename DRIWithSourceSet to DRIWithSourceSets
Diffstat (limited to 'plugins/base/src/main/kotlin/translators/documentables')
-rw-r--r--plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt8
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
index eaa4b6cd..081608d6 100644
--- a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
+++ b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
@@ -607,7 +607,13 @@ open class DefaultPageCreator(
styles = emptySet(),
extra = elementName?.let { name -> extra + SymbolAnchorHint(name, kind) } ?: extra
) {
- link(elementName.orEmpty(), elements.first().dri, kind = kind, styles = setOf(ContentStyle.RowTitle))
+ link(
+ text = elementName.orEmpty(),
+ address = elements.first().dri,
+ kind = kind,
+ styles = setOf(ContentStyle.RowTitle),
+ sourceSets = elements.sourceSets.toSet(),
+ )
divergentGroup(
ContentDivergentGroup.GroupID(name),
elements.map { it.dri }.toSet(),