Update dokka.gradle

This commit is contained in:
InsanusMokrassar 2021-08-07 16:10:59 +06:00 committed by GitHub
parent 92ae81d7a7
commit 6d055739fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,11 +16,19 @@ dokkaHtml {
moduleName.set("kdocs") moduleName.set("kdocs")
dokkaSourceSets {
switch (true) {
case project.hasProperty("DOKKA_PATH"):
outputDirectory = project.property("DOKKA_PATH").toString()
break
case System.getenv("DOKKA_PATH") != null:
outputDirectory = System.getenv("DOKKA_PATH")
break
}
dokkaSourceSets { dokkaSourceSets {
configureEach { configureEach {
skipDeprecated.set(true) skipDeprecated.set(true)
includeNonPublic.set(true)
reportUndocumented.set(true)
sourceLink { sourceLink {
localDirectory.set(file("./")) localDirectory.set(file("./"))
@ -30,7 +38,7 @@ dokkaHtml {
} }
named("commonMain") { named("commonMain") {
sourceRoot { path = "src/commonMain" } sourceRoots.setFrom(findSourcesWithName("commonMain"))
} }
// //
@ -42,4 +50,5 @@ dokkaHtml {
// sourceRoot { path = "src/jvmMain" } // sourceRoot { path = "src/jvmMain" }
// } // }
} }
}
} }