Skip to content

Commit

Permalink
set template dir for dokka partial task
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentlauvlwj committed Aug 18, 2024
1 parent d7e7e3d commit af0a176
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions buildSrc/src/main/kotlin/ktorm.dokka.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ subprojects {
tasks.named<org.jetbrains.dokka.gradle.DokkaTaskPartial>("dokkaHtmlPartial") {
dependsOn("codegen")

val tmplDir = System.getProperty("dokka.templatesDir")
if (!tmplDir.isNullOrEmpty()) {
pluginConfiguration<org.jetbrains.dokka.base.DokkaBase, org.jetbrains.dokka.base.DokkaBaseConfiguration> {
templatesDir = File(tmplDir)
}
}

dokkaSourceSets.named("main") {
suppressGeneratedFiles.set(false)
sourceLink {
Expand Down

0 comments on commit af0a176

Please sign in to comment.