diff options
author | Andrzej Ratajczak <andrzej.ratajczak98@gmail.com> | 2020-06-26 00:29:44 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-06-26 00:46:33 +0200 |
commit | eabba0aa02355d75acce1d7a5195103f26c68429 (patch) | |
tree | 0df834e31dce4886847fa39859178ea4f38a06f8 /plugins/base | |
parent | c0890130db52b22f36a32ae421e95e43ab5a55d1 (diff) | |
download | dokka-eabba0aa02355d75acce1d7a5195103f26c68429.tar.gz dokka-eabba0aa02355d75acce1d7a5195103f26c68429.tar.bz2 dokka-eabba0aa02355d75acce1d7a5195103f26c68429.zip |
Fix childrenless directories
Diffstat (limited to 'plugins/base')
-rw-r--r-- | plugins/base/src/main/kotlin/resolvers/local/DefaultLocationProvider.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/base/src/main/kotlin/resolvers/local/DefaultLocationProvider.kt b/plugins/base/src/main/kotlin/resolvers/local/DefaultLocationProvider.kt index e48aa926..34b570a9 100644 --- a/plugins/base/src/main/kotlin/resolvers/local/DefaultLocationProvider.kt +++ b/plugins/base/src/main/kotlin/resolvers/local/DefaultLocationProvider.kt @@ -56,7 +56,7 @@ open class DefaultLocationProvider( ) val contextNode = - if (context?.children?.isEmpty() == true && context.parent() != null) context.parent() else context + if (context !is ClasslikePageNode && context?.children?.isEmpty() == true && context.parent() != null) context.parent() else context val nodePath = pathFor(node) val contextPath = contextNode?.let { pathFor(it) }.orEmpty() |