aboutsummaryrefslogtreecommitdiff
path: root/plugins/base
diff options
context:
space:
mode:
authorIlya Gorbunov <ilya.gorbunov@jetbrains.com>2023-01-26 23:46:27 +0100
committerilya-g <ilya.gorbunov@jetbrains.com>2023-02-07 20:23:52 +0100
commit683f6bb418bada9c90d2ffbd5040b3968e1c3522 (patch)
treec6e7b6b9e7a4f3660354c2d22797b54ca3509d09 /plugins/base
parent1a45f4ccf71101979a5988838df714bd5852cac5 (diff)
downloaddokka-683f6bb418bada9c90d2ffbd5040b3968e1c3522.tar.gz
dokka-683f6bb418bada9c90d2ffbd5040b3968e1c3522.tar.bz2
dokka-683f6bb418bada9c90d2ffbd5040b3968e1c3522.zip
Set default SinceKotlin version for Common to 1.0
Avoids the confusion when original 1.0 declarations can be thought of having since kotlin version 1.2 because their common documentation is shown on the first tab. Common declaration are removed from documentation versions < 1.2 with a different approach - by not configuring a common source set.
Diffstat (limited to 'plugins/base')
-rw-r--r--plugins/base/src/main/kotlin/transformers/pages/annotations/SinceKotlinTransformer.kt2
-rw-r--r--plugins/base/src/test/kotlin/content/annotations/SinceKotlinTest.kt2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/base/src/main/kotlin/transformers/pages/annotations/SinceKotlinTransformer.kt b/plugins/base/src/main/kotlin/transformers/pages/annotations/SinceKotlinTransformer.kt
index d81cca89..bd09f7b1 100644
--- a/plugins/base/src/main/kotlin/transformers/pages/annotations/SinceKotlinTransformer.kt
+++ b/plugins/base/src/main/kotlin/transformers/pages/annotations/SinceKotlinTransformer.kt
@@ -39,7 +39,7 @@ class SinceKotlinVersion constructor(str: String) : Comparable<SinceKotlinVersio
class SinceKotlinTransformer(val context: DokkaContext) : DocumentableTransformer {
private val minSinceKotlinVersionOfPlatform = mapOf(
- Platform.common to SinceKotlinVersion("1.2"),
+ Platform.common to SinceKotlinVersion("1.0"),
Platform.jvm to SinceKotlinVersion("1.0"),
Platform.js to SinceKotlinVersion("1.1"),
Platform.native to SinceKotlinVersion("1.3")
diff --git a/plugins/base/src/test/kotlin/content/annotations/SinceKotlinTest.kt b/plugins/base/src/test/kotlin/content/annotations/SinceKotlinTest.kt
index d4a17869..aec7e540 100644
--- a/plugins/base/src/test/kotlin/content/annotations/SinceKotlinTest.kt
+++ b/plugins/base/src/test/kotlin/content/annotations/SinceKotlinTest.kt
@@ -153,7 +153,7 @@ class SinceKotlinTest : AbstractRenderingTest() {
.children.filter { it.name == "ring" && it is DFunction } as List<DFunction>
with(funcs) {
val sinceKotlin = mapOf(
- Platform.common to SinceKotlinVersion("1.2"),
+ Platform.common to SinceKotlinVersion("1.0"),
Platform.jvm to SinceKotlinVersion("1.0"),
Platform.js to SinceKotlinVersion("1.1"),
Platform.native to SinceKotlinVersion("1.3")