diff options
author | Marcin Aman <maman@virtuslab.com> | 2020-09-01 17:03:53 +0200 |
---|---|---|
committer | Kamil Doległo <9080183+kamildoleglo@users.noreply.github.com> | 2020-10-08 19:05:41 +0200 |
commit | 4331d1b816c30731842ab36827bbc1a4a9b292b3 (patch) | |
tree | b48a7443f22bfb0dd8b8fe0f6ec72b0aae1144b9 /plugins/base/src/main/kotlin/translators/documentables | |
parent | aae7623bb459d2bcd1e1b492aadf5c3858a3e657 (diff) | |
download | dokka-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.kt | 8 |
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 ) |