aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin/translators/documentables
diff options
context:
space:
mode:
authorMarcin Aman <maman@virtuslab.com>2020-09-01 17:03:53 +0200
committerKamil Doległo <9080183+kamildoleglo@users.noreply.github.com>2020-10-08 19:05:41 +0200
commit4331d1b816c30731842ab36827bbc1a4a9b292b3 (patch)
treeb48a7443f22bfb0dd8b8fe0f6ec72b0aae1144b9 /plugins/base/src/main/kotlin/translators/documentables
parentaae7623bb459d2bcd1e1b492aadf5c3858a3e657 (diff)
downloaddokka-4331d1b816c30731842ab36827bbc1a4a9b292b3.tar.gz
dokka-4331d1b816c30731842ab36827bbc1a4a9b292b3.tar.bz2
dokka-4331d1b816c30731842ab36827bbc1a4a9b292b3.zip
Fixes to multimodule page anchoring
Diffstat (limited to 'plugins/base/src/main/kotlin/translators/documentables')
-rw-r--r--plugins/base/src/main/kotlin/translators/documentables/PageContentBuilder.kt8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/base/src/main/kotlin/translators/documentables/PageContentBuilder.kt b/plugins/base/src/main/kotlin/translators/documentables/PageContentBuilder.kt
index 2fc0c7b2..c67fe4b0 100644
--- a/plugins/base/src/main/kotlin/translators/documentables/PageContentBuilder.kt
+++ b/plugins/base/src/main/kotlin/translators/documentables/PageContentBuilder.kt
@@ -223,20 +223,20 @@ open class PageContentBuilder(
styles: Set<Style> = mainStyles,
extra: PropertyContainer<ContentNode> = mainExtra
) {
- contents += linkNode(text, address, kind, sourceSets, styles, extra)
+ contents += linkNode(text, address, DCI(mainDRI, kind), sourceSets, styles, extra)
}
fun linkNode(
text: String,
address: DRI,
- kind: Kind = ContentKind.Main,
+ dci: DCI = DCI(mainDRI, ContentKind.Main),
sourceSets: Set<DokkaSourceSet> = mainSourcesetData,
styles: Set<Style> = mainStyles,
extra: PropertyContainer<ContentNode> = mainExtra
) = ContentDRILink(
- listOf(createText(text, kind, sourceSets, styles, extra)),
+ listOf(createText(text, dci.kind, sourceSets, styles, extra)),
address,
- DCI(mainDRI, kind),
+ dci,
sourceSets.toDisplaySourceSets(),
extra = extra
)