aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin/resolvers/external/DefaultExternalLocationProvider.kt
diff options
context:
space:
mode:
authorBłażej Kardyś <bkardys@virtuslab.com>2020-09-23 11:47:52 +0200
committerKamil Doległo <9080183+kamildoleglo@users.noreply.github.com>2020-10-06 15:41:04 +0200
commitbe932e200951e5b043f2e04e18b60176ac876156 (patch)
treea3d78c8ccf719121e062809422e0b6e936f06bcf /plugins/base/src/main/kotlin/resolvers/external/DefaultExternalLocationProvider.kt
parent94be25b8854fd6a02adcb1c8798c9afe633b5a20 (diff)
downloaddokka-be932e200951e5b043f2e04e18b60176ac876156.tar.gz
dokka-be932e200951e5b043f2e04e18b60176ac876156.tar.bz2
dokka-be932e200951e5b043f2e04e18b60176ac876156.zip
Addding separate pages for properties
Diffstat (limited to 'plugins/base/src/main/kotlin/resolvers/external/DefaultExternalLocationProvider.kt')
-rw-r--r--plugins/base/src/main/kotlin/resolvers/external/DefaultExternalLocationProvider.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/base/src/main/kotlin/resolvers/external/DefaultExternalLocationProvider.kt b/plugins/base/src/main/kotlin/resolvers/external/DefaultExternalLocationProvider.kt
index 2600884d..09eb7cc4 100644
--- a/plugins/base/src/main/kotlin/resolvers/external/DefaultExternalLocationProvider.kt
+++ b/plugins/base/src/main/kotlin/resolvers/external/DefaultExternalLocationProvider.kt
@@ -26,7 +26,7 @@ open class DefaultExternalLocationProvider(
val classLink = (listOfNotNull(packageName) + classNamesChecked.split('.'))
.joinToString("/", transform = ::identifierToFilename)
- val callableChecked = callable ?: return "$docURL$classLink/index$extension"
- return "$docURL$classLink/" + identifierToFilename(callableChecked.name) + extension
+ val fileName = callable?.let { identifierToFilename(it.name) } ?: "index"
+ return "$docURL$classLink/$fileName$extension"
}
}