Skip to content

Commit

Permalink
Update Gradle Dokka configuration to make sure "source" button is vis…
Browse files Browse the repository at this point in the history
…ible in all API docs (#516)
  • Loading branch information
whyoleg authored Dec 5, 2023
1 parent 00d0451 commit e8ffbda
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ out/
# Gradle files
build/
.gradle/

# generated dokka documentation
/docs/gradle-plugin/dokka/
6 changes: 6 additions & 0 deletions kover-gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
import org.jetbrains.kotlin.gradle.plugin.KotlinCompilation
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import java.net.*

plugins {
kotlin("jvm")
Expand Down Expand Up @@ -156,6 +157,11 @@ tasks.dokkaHtml {
perPackageOption {
skipDeprecated.set(true)
}
sourceLink {
localDirectory.set(rootDir)
remoteUrl.set(URL("https://github.com/kotlin/kotlinx-kover/tree/main"))
remoteLineSuffix.set("#L")
}
}
}

Expand Down

0 comments on commit e8ffbda

Please sign in to comment.