Skip to content

Commit 43bbe34

Browse files
authored
Update Dokka to 2.2.0-Beta and fix unresolved links (#602)
1 parent ca44a2f commit 43bbe34

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

core/build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,5 +416,8 @@ apiValidation {
416416
}
417417

418418
dependencies {
419+
// make samples runnable via Kotlin playground
420+
dokkaHtmlPlugin("org.jetbrains.dokka:kotlin-playground-samples-plugin")
421+
419422
dokka(project)
420423
}

core/common/src/Clock.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ private class InstantTimeMark(private val instant: Instant, private val clock: C
8484
}
8585

8686
/**
87-
* Creates a [Clock] that uses the [time mark at the moment of creation][TimeMark.markNow] to determine how [far][TimeMark.elapsedNow]
87+
* Creates a [Clock] that uses the [time mark at the moment of creation][TimeSource.markNow] to determine how [far][TimeMark.elapsedNow]
8888
* the [current moment][Clock.now] is from the [origin].
8989
*
9090
* This clock stores the [TimeMark] at the moment of creation, so repeatedly creating [Clock]s from the same [TimeSource] results

core/common/src/serializers/InstantSerializers.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import kotlin.time.Instant
2929
* to avoid conflicts with serializers defined by other libraries and client code.
3030
*
3131
* When serializing, the [Instant] value is formatted as a string using the specified [format]
32-
* in the [ZERO][UtcOffset.ZERO] UTC offset.
32+
* in the [ZERO][kotlinx.datetime.UtcOffset.ZERO] UTC offset.
3333
*
3434
* This serializer is abstract and must be subclassed to provide a concrete serializer.
3535
* Example:

core/commonKotlin/src/internal/TimeZoneRules.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,10 @@ internal class RecurringZoneRules(
185185
}
186186

187187
/**
188-
* IMPORTANT: keep this implementation in sync with [TimeZoneRulesFoundation.infoAtDatetime].
188+
* IMPORTANT: keep this implementation in sync with [TimeZoneRulesCommon.infoAtDatetime].
189189
* The algorithms and corner-case handling should stay identical so that Darwin (Foundation-based)
190190
* and tzdb-based platforms compute the same results. When you change logic here, reflect the
191-
* same change in [TimeZoneRulesFoundation.infoAtDatetime].
191+
* same change in [TimeZoneRulesCommon.infoAtDatetime].
192192
*/
193193
fun infoAtLocalDateTime(localDateTime: LocalDateTime, offsetAtYearStart: UtcOffset): OffsetInfo {
194194
val year = localDateTime.year

core/darwin/src/Converters.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ internal fun NSDate.toKotlinInstant(): kotlinx.datetime.Instant =
5656
* Converts the [TimeZone] to [NSTimeZone].
5757
*
5858
* If the time zone is represented as a fixed number of seconds from UTC+0 (for example, if it is the result of a call
59-
* to [TimeZone.offset]) and the offset is not given in even minutes but also includes seconds, this method throws
59+
* to [FixedOffsetTimeZone.offset]) and the offset is not given in even minutes but also includes seconds, this method throws
6060
* [IllegalArgumentException] to denote that lossy conversion would happen, as Darwin internally rounds the offsets
6161
* to the nearest minute.
6262
*

gradle.properties

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ versionSuffix=SNAPSHOT
88
tzdbVersion=2025c
99

1010
defaultKotlinVersion=2.1.20
11-
dokkaVersion=2.0.0
11+
dokkaVersion=2.2.0-Beta
1212
serializationVersion=1.6.2
1313
benchmarksVersion=0.7.2
1414
bcvVersion=0.17.0
@@ -19,9 +19,6 @@ java.modularToolchainVersion=11
1919
kotlin.mpp.applyDefaultHierarchyTemplate=false
2020
kotlin.native.ignoreDisabledTargets=true
2121

22-
org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled
23-
org.jetbrains.dokka.experimental.gradle.pluginMode.nowarn=true
24-
2522
# stop using pre-HMPP IDEA import workaround in kotlinx.team.infra
2623
useNativeBuildInfraInIdea=true
2724

0 commit comments

Comments
 (0)