Workaroud Dokka issue on Windows

This commit is contained in:
Erik C. Thauvin 2019-09-23 14:07:56 -07:00
parent 7e3c7c1190
commit 2c49a88df4

View file

@ -145,8 +145,14 @@ tasks {
jdkVersion = 8 jdkVersion = 8
linkMapping { linkMapping {
dir = "src/main/kotlin" // See https://github.com/Kotlin/dokka/issues/289
url = "https://github.com/ethauvin/${project.name}/blob/master/src/main/kotlin" val f = if (System.getProperty("os.name").contains("windows", true)) {
file("${projectDir}/src/main/kotlin").toURI().toString().replace("file:", "")
} else {
"src/main/kotlin"
}
dir = f
url = "https://github.com/ethauvin/${project.name}/tree/master/src/main/kotlin"
suffix = "#L" suffix = "#L"
} }