diff options
author | Ilya Gorbunov <ilya.gorbunov@jetbrains.com> | 2023-01-26 23:46:27 +0100 |
---|---|---|
committer | ilya-g <ilya.gorbunov@jetbrains.com> | 2023-02-07 20:23:52 +0100 |
commit | 683f6bb418bada9c90d2ffbd5040b3968e1c3522 (patch) | |
tree | c6e7b6b9e7a4f3660354c2d22797b54ca3509d09 /plugins/base/src/main/kotlin/transformers | |
parent | 1a45f4ccf71101979a5988838df714bd5852cac5 (diff) | |
download | dokka-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/src/main/kotlin/transformers')
-rw-r--r-- | plugins/base/src/main/kotlin/transformers/pages/annotations/SinceKotlinTransformer.kt | 2 |
1 files changed, 1 insertions, 1 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") |