diff options
author | Błażej Kardyś <bkardys@virtuslab.com> | 2020-09-23 11:47:52 +0200 |
---|---|---|
committer | Kamil Doległo <9080183+kamildoleglo@users.noreply.github.com> | 2020-10-06 15:41:04 +0200 |
commit | be932e200951e5b043f2e04e18b60176ac876156 (patch) | |
tree | a3d78c8ccf719121e062809422e0b6e936f06bcf /plugins/base/src/main/kotlin/resolvers/external | |
parent | 94be25b8854fd6a02adcb1c8798c9afe633b5a20 (diff) | |
download | dokka-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')
-rw-r--r-- | plugins/base/src/main/kotlin/resolvers/external/DefaultExternalLocationProvider.kt | 4 |
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" } } |