Skip to content

Commit e8ffbda

Browse files
authored
Update Gradle Dokka configuration to make sure "source" button is visible in all API docs (#516)
1 parent 00d0451 commit e8ffbda

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ out/
88
# Gradle files
99
build/
1010
.gradle/
11+
12+
# generated dokka documentation
13+
/docs/gradle-plugin/dokka/

kover-gradle-plugin/build.gradle.kts

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
22
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
33
import org.jetbrains.kotlin.gradle.plugin.KotlinCompilation
44
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
5+
import java.net.*
56

67
plugins {
78
kotlin("jvm")
@@ -156,6 +157,11 @@ tasks.dokkaHtml {
156157
perPackageOption {
157158
skipDeprecated.set(true)
158159
}
160+
sourceLink {
161+
localDirectory.set(rootDir)
162+
remoteUrl.set(URL("https://github.com/kotlin/kotlinx-kover/tree/main"))
163+
remoteLineSuffix.set("#L")
164+
}
159165
}
160166
}
161167

0 commit comments

Comments
 (0)