Skip to content

Commit

Permalink
Fix dokka generatation on Windows (file paths)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdvrieze committed Dec 14, 2023
1 parent da5fee6 commit 7df6df3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion buildSrc/src/main/kotlin/dokka.kt
Expand Up @@ -76,7 +76,9 @@ private fun Project.configureDokkaSourceSet(
logger.lifecycle("Adding source link for root: $relativeRoot")
sourceLink {
localDirectory = sourceRoot
remoteUrl = url("https://github.com/pdvrieze/xmlutil/tree/master/${relativeRoot}")
val relURI = relativeRoot.toURI()
val absUrl = URI.create("https://github.com/pdvrieze/xmlutil/tree/master/").resolve(relURI)
remoteUrl = absUrl.toURL()
}
}

Expand Down

0 comments on commit 7df6df3

Please sign in to comment.