From 732d181e4908ed0ddc513e305addc71560c0e109 Mon Sep 17 00:00:00 2001 From: "sebastian.sellmair" Date: Wed, 26 Aug 2020 16:56:39 +0200 Subject: Let root package be represented as [root] to the user --- .../base/src/main/kotlin/resolvers/local/DokkaLocationProvider.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'plugins/base/src/main/kotlin/resolvers') diff --git a/plugins/base/src/main/kotlin/resolvers/local/DokkaLocationProvider.kt b/plugins/base/src/main/kotlin/resolvers/local/DokkaLocationProvider.kt index f25f85a6..096104cc 100644 --- a/plugins/base/src/main/kotlin/resolvers/local/DokkaLocationProvider.kt +++ b/plugins/base/src/main/kotlin/resolvers/local/DokkaLocationProvider.kt @@ -89,10 +89,7 @@ open class DokkaLocationProvider( private fun PageNode.parent() = pageGraphRoot.parentMap[this] private val PageNode.pathName: String - get() = when (this) { - is PackagePageNode -> if (name.isBlank()) "[root]" else name - else -> identifierToFilename(name) - } + get() = if (this is PackagePageNode) name else identifierToFilename(name) companion object { internal val reservedFilenames = setOf("index", "con", "aux", "lst", "prn", "nul", "eof", "inp", "out") -- cgit