aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main
diff options
context:
space:
mode:
authorKamil Doległo <9080183+kamildoleglo@users.noreply.github.com>2021-02-19 11:49:28 +0100
committerGitHub <noreply@github.com>2021-02-19 11:49:28 +0100
commite07f411dc3c2e99acf18dfa428546804b80d30f9 (patch)
tree4c1c7f72473ebe1cc6a584a4903896d396598c87 /plugins/base/src/main
parent1c78ecebfb6fc2b24c64c13f7e85218b01a7a69b (diff)
downloaddokka-e07f411dc3c2e99acf18dfa428546804b80d30f9.tar.gz
dokka-e07f411dc3c2e99acf18dfa428546804b80d30f9.tar.bz2
dokka-e07f411dc3c2e99acf18dfa428546804b80d30f9.zip
Add legacy KotlinWebsite format to recognized link formats (#1750)
Diffstat (limited to 'plugins/base/src/main')
-rw-r--r--plugins/base/src/main/kotlin/resolvers/external/DefaultExternalLocationProviderFactory.kt1
-rw-r--r--plugins/base/src/main/kotlin/resolvers/shared/RecognizedLinkFormat.kt1
2 files changed, 2 insertions, 0 deletions
diff --git a/plugins/base/src/main/kotlin/resolvers/external/DefaultExternalLocationProviderFactory.kt b/plugins/base/src/main/kotlin/resolvers/external/DefaultExternalLocationProviderFactory.kt
index 9f8f62da..63db27be 100644
--- a/plugins/base/src/main/kotlin/resolvers/external/DefaultExternalLocationProviderFactory.kt
+++ b/plugins/base/src/main/kotlin/resolvers/external/DefaultExternalLocationProviderFactory.kt
@@ -9,6 +9,7 @@ class DefaultExternalLocationProviderFactory(val context: DokkaContext) :
object : ExternalLocationProviderFactory {
override fun getExternalLocationProvider(doc: ExternalDocumentation): ExternalLocationProvider? =
when (doc.packageList.linkFormat) {
+ RecognizedLinkFormat.KotlinWebsite,
RecognizedLinkFormat.KotlinWebsiteHtml,
RecognizedLinkFormat.DokkaOldHtml -> Dokka010ExternalLocationProvider(doc, ".html", context)
RecognizedLinkFormat.DokkaHtml -> DefaultExternalLocationProvider(doc, ".html", context)
diff --git a/plugins/base/src/main/kotlin/resolvers/shared/RecognizedLinkFormat.kt b/plugins/base/src/main/kotlin/resolvers/shared/RecognizedLinkFormat.kt
index 5dea3c86..8eeb5dfd 100644
--- a/plugins/base/src/main/kotlin/resolvers/shared/RecognizedLinkFormat.kt
+++ b/plugins/base/src/main/kotlin/resolvers/shared/RecognizedLinkFormat.kt
@@ -9,6 +9,7 @@ enum class RecognizedLinkFormat(override val formatName: String, override val li
Javadoc8("javadoc8", "html"),
Javadoc10("javadoc10", "html"),
DokkaOldHtml("html", "html"),
+ KotlinWebsite("kotlin-website", "html"),
KotlinWebsiteHtml("kotlin-website-html", "html");
companion object {