diff options
author | Filip Zybała <fzybala@virtuslab.com> | 2020-07-09 16:19:45 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-07-10 15:54:14 +0200 |
commit | b4df6de11f8f23e69e57db55f2e05b81466f6d1f (patch) | |
tree | 304d89247ebfd403f681f706473a1c461154bbeb /plugins/base/src/main/kotlin/transformers | |
parent | 8ff94d7125f9ed68a1787494bec11b034b7e55aa (diff) | |
download | dokka-b4df6de11f8f23e69e57db55f2e05b81466f6d1f.tar.gz dokka-b4df6de11f8f23e69e57db55f2e05b81466f6d1f.tar.bz2 dokka-b4df6de11f8f23e69e57db55f2e05b81466f6d1f.zip |
Bugfix: links in documentation attached to module page should now be correct
Diffstat (limited to 'plugins/base/src/main/kotlin/transformers')
-rw-r--r-- | plugins/base/src/main/kotlin/transformers/documentables/ModuleAndPackageDocumentationTransformer.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/base/src/main/kotlin/transformers/documentables/ModuleAndPackageDocumentationTransformer.kt b/plugins/base/src/main/kotlin/transformers/documentables/ModuleAndPackageDocumentationTransformer.kt index a0800da8..4a98a5e0 100644 --- a/plugins/base/src/main/kotlin/transformers/documentables/ModuleAndPackageDocumentationTransformer.kt +++ b/plugins/base/src/main/kotlin/transformers/documentables/ModuleAndPackageDocumentationTransformer.kt @@ -8,6 +8,7 @@ import org.jetbrains.dokka.base.parsers.MarkdownParser import org.jetbrains.dokka.plugability.DokkaContext import org.jetbrains.dokka.transformers.documentation.PreMergeDocumentableTransformer import org.jetbrains.kotlin.name.FqName +import org.jetbrains.kotlin.name.Name import java.nio.file.Files import java.nio.file.Paths @@ -60,7 +61,7 @@ internal class ModuleAndPackageDocumentationTransformer( doc?.get("Module")?.get(module.name)?.run { pd to MarkdownParser( facade, - facade.moduleDescriptor, + facade.moduleDescriptor.getPackage(FqName.topLevel(Name.identifier(""))), context.logger ).parse(this) } |