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

@ -15,31 +15,40 @@ dokkaHtml {
} }
moduleName.set("kdocs") moduleName.set("kdocs")
dokkaSourceSets { dokkaSourceSets {
configureEach { switch (true) {
skipDeprecated.set(true) case project.hasProperty("DOKKA_PATH"):
includeNonPublic.set(true) outputDirectory = project.property("DOKKA_PATH").toString()
reportUndocumented.set(true) break
case System.getenv("DOKKA_PATH") != null:
outputDirectory = System.getenv("DOKKA_PATH")
break
}
sourceLink { dokkaSourceSets {
localDirectory.set(file("./")) configureEach {
remoteUrl.set(new URL("https://github.com/InsanusMokrassar/krontab/blob/master/")) skipDeprecated.set(true)
remoteLineSuffix.set("#L")
sourceLink {
localDirectory.set(file("./"))
remoteUrl.set(new URL("https://github.com/InsanusMokrassar/krontab/blob/master/"))
remoteLineSuffix.set("#L")
}
} }
}
named("commonMain") { named("commonMain") {
sourceRoot { path = "src/commonMain" } sourceRoots.setFrom(findSourcesWithName("commonMain"))
} }
// //
// named("jsMain") { // named("jsMain") {
// sourceRoot { path = "src/jsMain" } // sourceRoot { path = "src/jsMain" }
// } // }
// //
// named("jvmMain") { // named("jvmMain") {
// sourceRoot { path = "src/jvmMain" } // sourceRoot { path = "src/jvmMain" }
// } // }
}
} }
} }