diff options
author | Andrzej Ratajczak <andrzej.ratajczak98@gmail.com> | 2020-06-10 12:00:44 +0200 |
---|---|---|
committer | Paweł Marks <pmarks@virtuslab.com> | 2020-06-12 14:15:24 +0200 |
commit | cacc5ec47759c9ea2b8edeec6b39d8d16e6c8860 (patch) | |
tree | be7bf825c22d08b75a87de8eb3ba65a34cc8a8c4 /plugins/base/src/main/kotlin/transformers | |
parent | ea03d377badb165869728ce6ecc9ad3c0fdbe70b (diff) | |
download | dokka-cacc5ec47759c9ea2b8edeec6b39d8d16e6c8860.tar.gz dokka-cacc5ec47759c9ea2b8edeec6b39d8d16e6c8860.tar.bz2 dokka-cacc5ec47759c9ea2b8edeec6b39d8d16e6c8860.zip |
Fix module and package descriptor for java only sources
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, 1 insertions, 2 deletions
diff --git a/plugins/base/src/main/kotlin/transformers/documentables/ModuleAndPackageDocumentationTransformer.kt b/plugins/base/src/main/kotlin/transformers/documentables/ModuleAndPackageDocumentationTransformer.kt index 1164fb77..04b2636c 100644 --- a/plugins/base/src/main/kotlin/transformers/documentables/ModuleAndPackageDocumentationTransformer.kt +++ b/plugins/base/src/main/kotlin/transformers/documentables/ModuleAndPackageDocumentationTransformer.kt @@ -73,8 +73,7 @@ internal class ModuleAndPackageDocumentationTransformer(val context: DokkaContex val doc = modulesAndPackagesDocumentation[Pair(module.name, pd)] val facade = context.platforms[pd]?.facade ?: return@mapNotNull null.also { context.logger.warn("Could not find platform data for ${pd.moduleName}/${pd.sourceSetName}") } - val descriptor = facade.resolveSession.getPackageFragment(FqName(it.name)) - ?: return@mapNotNull null.also { _ -> context.logger.warn("Could not find descriptor for ${it.name}") } + val descriptor = facade.moduleDescriptor.getPackage(FqName(it.name.let { if(it == "[JS root]") "" else it })) doc?.get("Package")?.get(it.name)?.run { pd to MarkdownParser( facade, |