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")
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 {
configureEach {
skipDeprecated.set(true)
includeNonPublic.set(true)
reportUndocumented.set(true)
sourceLink {
localDirectory.set(file("./"))
@ -30,7 +38,7 @@ dokkaHtml {
}
named("commonMain") {
sourceRoot { path = "src/commonMain" }
sourceRoots.setFrom(findSourcesWithName("commonMain"))
}
//
@ -43,3 +51,4 @@ dokkaHtml {
// }
}
}
}