aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/main/kotlin')
-rw-r--r--core/src/main/kotlin/Generation/DocumentationMerger.kt8
1 files changed, 7 insertions, 1 deletions
diff --git a/core/src/main/kotlin/Generation/DocumentationMerger.kt b/core/src/main/kotlin/Generation/DocumentationMerger.kt
index 942688d4..53dc23a9 100644
--- a/core/src/main/kotlin/Generation/DocumentationMerger.kt
+++ b/core/src/main/kotlin/Generation/DocumentationMerger.kt
@@ -164,7 +164,13 @@ class DocumentationMerger(
if (groupNode.kind == NodeKind.ExternalClass){
val refs = nodes.flatMap { it.allReferences() }.filter { it.kind != RefKind.Owner && it.kind != RefKind.TopLevelPage }
- refs.forEach { groupNode.append(it.to, RefKind.Member) }
+ refs.forEach {
+ if (it.kind != RefKind.Link) {
+ it.to.dropReferences { ref -> ref.kind == RefKind.Owner }
+ it.to.append(groupNode, RefKind.Owner)
+ }
+ groupNode.append(it.to, it.kind)
+ }
}
// if nodes are classes, nested members should be also merged and