diff options
author | KrystianUjma <kujma@virtuslab.com> | 2019-05-23 16:26:28 +0200 |
---|---|---|
committer | KrystianUjma <kujma@virtuslab.com> | 2019-05-23 16:26:28 +0200 |
commit | 6dedccb91b4bb3018b32159551b3862fedb7f230 (patch) | |
tree | 1d62604607abe7339a48235d23371d8ce8554403 /core/src | |
parent | 9d7f9fec41d33a636b19125b582c2aeb24a8b6e5 (diff) | |
parent | 45efbde5bb37c52d08106450a14ebbd54a23c928 (diff) | |
download | dokka-6dedccb91b4bb3018b32159551b3862fedb7f230.tar.gz dokka-6dedccb91b4bb3018b32159551b3862fedb7f230.tar.bz2 dokka-6dedccb91b4bb3018b32159551b3862fedb7f230.zip |
Merge branch 'multiplatform-support' of github.com:KrystianUjma/dokka into multiplatform-support
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/main/kotlin/Kotlin/DeclarationLinkResolver.kt | 7 | ||||
-rw-r--r-- | core/src/main/kotlin/Model/DocumentationReference.kt | 3 |
2 files changed, 6 insertions, 4 deletions
diff --git a/core/src/main/kotlin/Kotlin/DeclarationLinkResolver.kt b/core/src/main/kotlin/Kotlin/DeclarationLinkResolver.kt index c3a84e57..32084eea 100644 --- a/core/src/main/kotlin/Kotlin/DeclarationLinkResolver.kt +++ b/core/src/main/kotlin/Kotlin/DeclarationLinkResolver.kt @@ -34,14 +34,15 @@ class DeclarationLinkResolver val signature = elementSignatureProvider.signature(symbol) val referencedAt = fromDescriptor.signatureWithSourceLocation() - return ContentNodeLazyLink(href, { -> + return ContentNodeLazyLink(href) { -> val target = refGraph.lookup(signature) if (target == null) { - logger.warn("Can't find node by signature `$signature`, referenced at $referencedAt") + logger.warn("Can't find node by signature `$signature`, referenced at $referencedAt. " + + "This is probably caused by invalid configuration of cross-module dependencies") } target - }) + } } if ("/" in href) { return ContentExternalLink(href) diff --git a/core/src/main/kotlin/Model/DocumentationReference.kt b/core/src/main/kotlin/Model/DocumentationReference.kt index 1f2fc0c9..0b890a78 100644 --- a/core/src/main/kotlin/Model/DocumentationReference.kt +++ b/core/src/main/kotlin/Model/DocumentationReference.kt @@ -103,7 +103,8 @@ class NodeReferenceGraph { fun lookupOrWarn(signature: String, logger: DokkaLogger): DocumentationNode? { val result = nodeMap[signature] if (result == null) { - logger.warn("Can't find node by signature `$signature`") + logger.warn("Can't find node by signature `$signature`." + + "This is probably caused by invalid configuration of cross-module dependencies") } return result } |