From 7df6df3283fd0e7290b2103d2ede6f87809bbcd4 Mon Sep 17 00:00:00 2001 From: Paul de Vrieze Date: Thu, 14 Dec 2023 12:37:09 +0000 Subject: [PATCH] Fix dokka generatation on Windows (file paths) --- buildSrc/src/main/kotlin/dokka.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/buildSrc/src/main/kotlin/dokka.kt b/buildSrc/src/main/kotlin/dokka.kt index 58292a8fe..1db8a4db1 100644 --- a/buildSrc/src/main/kotlin/dokka.kt +++ b/buildSrc/src/main/kotlin/dokka.kt @@ -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() } }