diff options
author | Szymon Świstun <sswistun@virtuslab.com> | 2019-12-17 17:13:25 +0100 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-01-08 10:45:08 +0100 |
commit | a0a5fc5e362c38ee0592ce5332bbec02131ebbd2 (patch) | |
tree | b4f5ab63d6f32ae318d2badbe9249a93104b2e79 /core/src/main/kotlin/resolvers/DefaultLocationProvider.kt | |
parent | fc1baea0b6c44ebc84a33918c3dfa13244ebf46f (diff) | |
download | dokka-a0a5fc5e362c38ee0592ce5332bbec02131ebbd2.tar.gz dokka-a0a5fc5e362c38ee0592ce5332bbec02131ebbd2.tar.bz2 dokka-a0a5fc5e362c38ee0592ce5332bbec02131ebbd2.zip |
module name fix
Diffstat (limited to 'core/src/main/kotlin/resolvers/DefaultLocationProvider.kt')
-rw-r--r-- | core/src/main/kotlin/resolvers/DefaultLocationProvider.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/kotlin/resolvers/DefaultLocationProvider.kt b/core/src/main/kotlin/resolvers/DefaultLocationProvider.kt index 0020b18d..7442f449 100644 --- a/core/src/main/kotlin/resolvers/DefaultLocationProvider.kt +++ b/core/src/main/kotlin/resolvers/DefaultLocationProvider.kt @@ -50,7 +50,7 @@ open class DefaultLocationProvider( fun getPath(pathNode: PageNode?, path: List<String> = mutableListOf()): List<String> = when (pathNode) { null -> path - else -> getPath(pathNode.parent(), path + pathNode.pathName()) + else -> getPath(pathNode.parent(), path + pathNode.pathName().ifEmpty { "root" }) } val contextNode = if (context?.children?.isEmpty() == true) context.parent() else context |