diff options
author | Kamil Doległo <kamilok1965@interia.pl> | 2020-07-10 15:18:40 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-07-10 15:57:24 +0200 |
commit | 9a3600e7e8a2aa13a046547c24926b107dc63dd1 (patch) | |
tree | 30ba1234a6baf3c5065d490a4c23fa861fd1cf6b /plugins/base/src/main/kotlin | |
parent | b4df6de11f8f23e69e57db55f2e05b81466f6d1f (diff) | |
download | dokka-9a3600e7e8a2aa13a046547c24926b107dc63dd1.tar.gz dokka-9a3600e7e8a2aa13a046547c24926b107dc63dd1.tar.bz2 dokka-9a3600e7e8a2aa13a046547c24926b107dc63dd1.zip |
Fix bug with multimodule links to subprojects
Diffstat (limited to 'plugins/base/src/main/kotlin')
-rw-r--r-- | plugins/base/src/main/kotlin/resolvers/local/MultimoduleLocationProvider.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/base/src/main/kotlin/resolvers/local/MultimoduleLocationProvider.kt b/plugins/base/src/main/kotlin/resolvers/local/MultimoduleLocationProvider.kt index 1d41bce0..368e5e5b 100644 --- a/plugins/base/src/main/kotlin/resolvers/local/MultimoduleLocationProvider.kt +++ b/plugins/base/src/main/kotlin/resolvers/local/MultimoduleLocationProvider.kt @@ -8,7 +8,7 @@ import org.jetbrains.dokka.plugability.DokkaContext class MultimoduleLocationProvider(private val root: RootPageNode, context: DokkaContext) : LocationProvider { - val defaultLocationProvider = DefaultLocationProvider(root, context) + private val defaultLocationProvider = DefaultLocationProvider(root, context) val paths = context.configuration.modules.map { it.name to it.path @@ -16,7 +16,7 @@ class MultimoduleLocationProvider(private val root: RootPageNode, context: Dokka override fun resolve(dri: DRI, sourceSets: Set<DokkaSourceSet>, context: PageNode?): String = dri.takeIf { it.packageName == MULTIMODULE_PACKAGE_PLACEHOLDER }?.classNames?.let { paths[it] }?.let { - "$it/${dri.classNames}/index.html" + "$it/${identifierToFilename(dri.classNames.orEmpty())}/index.html" } ?: defaultLocationProvider.resolve(dri, sourceSets, context) override fun resolve(node: PageNode, context: PageNode?, skipExtension: Boolean): String = |