Skip to content

Commit

Permalink
remove external link workaround, as fixed in tutteli-gradle plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
robstoll committed Aug 6, 2023
1 parent 820a2a2 commit 6ebe883
Showing 1 changed file with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import ch.tutteli.gradle.plugins.dokka.DokkaPluginExtension
import org.jetbrains.dokka.gradle.AbstractDokkaLeafTask
import org.jetbrains.dokka.gradle.DokkaTask
import java.net.URL

plugins {
id("build-logic.gradle-conventions")
Expand All @@ -24,20 +22,6 @@ tasks.configureEach<AbstractDokkaLeafTask> {
suppress.set(true)
}
includes.from(kdocDir.resolve("packages.md"))

//TODO 1.1.0 remove with update to tutteli-gradle 4.10.0
externalDocumentationLink {
val extension = rootProject.the<DokkaPluginExtension>()
url.set(extension.githubUser.flatMap { githubUser ->
extension.modeSimple.map { usesSimpleDocs ->
if (usesSimpleDocs) {
URL("https://$githubUser.github.io/${rootProject.name}/kdoc/${rootProject.name}/")
} else {
URL("https://$githubUser.github.io/${rootProject.name}/${rootProject.version}/kdoc/")
}
}
})
}
}
configurePlugins()
}

0 comments on commit 6ebe883

Please sign in to comment.