Skip to content

Commit a96ad45

Browse files
committed
AMMEND
1 parent 5d7bbd7 commit a96ad45

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gradle/dokka.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ import java.net.*
99
apply<DokkaPlugin>()
1010
//apply<JavaPlugin>()
1111

12-
fun GradleDokkaSourceSetBuilder.makeLinkMapping(projectDir: File, branch: String = "master") {
12+
fun GradleDokkaSourceSetBuilder.makeLinkMapping(projectDir: File) {
1313
sourceLink {
1414
val relPath = rootProject.projectDir.toPath().relativize(projectDir.toPath())
1515
localDirectory.set(projectDir.resolve("src"))
16-
remoteUrl.set(URL("https://github.com/kotlin/kotlinx.coroutines/tree/$branch/$relPath/src"))
16+
remoteUrl.set(URL("https://github.com/kotlin/kotlinx.coroutines/tree/master/$relPath/src"))
1717
remoteLineSuffix.set("#L")
1818
}
1919
}
@@ -70,11 +70,11 @@ if (project.name == "kotlinx-coroutines-core") {
7070
val isNewWasmTargetEnabled = isKotlinVersionAtLeast(kotlin_version, 1, 9, 20)
7171
if (isNewWasmTargetEnabled) {
7272
val wasmJsMain by getting {
73-
makeLinkMapping(project.file("wasm"), "wasm")
73+
makeLinkMapping(project.file("wasm"))
7474
}
7575
} else {
7676
val wasmMain by getting {
77-
makeLinkMapping(project.file("wasm"), "wasm")
77+
makeLinkMapping(project.file("wasm"))
7878
}
7979
}
8080
}

0 commit comments

Comments
 (0)