aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin/resolvers/external/DefaultExternalLocationProvider.kt
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@interia.pl>2020-08-14 13:42:12 +0200
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-08-19 13:34:10 +0200
commit116fc3e188c89cc0386a97cd149da67fd695e37b (patch)
treeb711b80108f4240ba6a8f85aa62c0461e9a7dbe1 /plugins/base/src/main/kotlin/resolvers/external/DefaultExternalLocationProvider.kt
parenta547235b41cb3c5d8a2dfb50923bf1ec2d3cd620 (diff)
downloaddokka-116fc3e188c89cc0386a97cd149da67fd695e37b.tar.gz
dokka-116fc3e188c89cc0386a97cd149da67fd695e37b.tar.bz2
dokka-116fc3e188c89cc0386a97cd149da67fd695e37b.zip
Rename `ExternalDocumentationInfo` to `ExternalDocumentation`
Diffstat (limited to 'plugins/base/src/main/kotlin/resolvers/external/DefaultExternalLocationProvider.kt')
-rw-r--r--plugins/base/src/main/kotlin/resolvers/external/DefaultExternalLocationProvider.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/base/src/main/kotlin/resolvers/external/DefaultExternalLocationProvider.kt b/plugins/base/src/main/kotlin/resolvers/external/DefaultExternalLocationProvider.kt
index 5e22206b..18f52cce 100644
--- a/plugins/base/src/main/kotlin/resolvers/external/DefaultExternalLocationProvider.kt
+++ b/plugins/base/src/main/kotlin/resolvers/external/DefaultExternalLocationProvider.kt
@@ -1,17 +1,17 @@
package org.jetbrains.dokka.base.resolvers.external
import org.jetbrains.dokka.base.resolvers.local.DokkaLocationProvider.Companion.identifierToFilename
-import org.jetbrains.dokka.base.resolvers.shared.ExternalDocumentationInfo
+import org.jetbrains.dokka.base.resolvers.shared.ExternalDocumentation
import org.jetbrains.dokka.links.DRI
import org.jetbrains.dokka.plugability.DokkaContext
open class DefaultExternalLocationProvider(
- val externalDocumentationInfo: ExternalDocumentationInfo,
+ val externalDocumentation: ExternalDocumentation,
val extension: String,
val dokkaContext: DokkaContext
) : ExternalLocationProvider {
override fun resolve(dri: DRI): String? { // TODO: classes without packages?
- val docURL = externalDocumentationInfo.documentationURL.toString().removeSuffix("/") + "/"
+ val docURL = externalDocumentation.documentationURL.toString().removeSuffix("/") + "/"
val classNamesChecked = dri.classNames ?: return "$docURL${dri.packageName ?: ""}/index$extension"
val classLink = (listOfNotNull(dri.packageName) + classNamesChecked.split('.'))
.joinToString("/", transform = ::identifierToFilename)