mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 08:13:47 +00:00
update docs generation
This commit is contained in:
parent
aa78d99179
commit
a58aad1198
@ -43,16 +43,15 @@ kotlin {
|
||||
}
|
||||
}
|
||||
|
||||
private Closure includeSourcesInDokka(String approximateName) {
|
||||
private Closure includeSourcesInDokka(String... approximateNames) {
|
||||
return {
|
||||
parent.subprojects.forEach {
|
||||
if (it != project) {
|
||||
File srcDir = new File(it.projectDir.absolutePath, "src")
|
||||
if (srcDir.exists() && srcDir.isDirectory()) {
|
||||
srcDir.eachFile {
|
||||
println(it.absolutePath)
|
||||
if (it.name.contains(approximateName) && it.isDirectory()) {
|
||||
String pathToSrc = it.absolutePath
|
||||
srcDir.eachFile { file ->
|
||||
if (approximateNames.any { file.name.contains(it) } && file.isDirectory()) {
|
||||
String pathToSrc = file.absolutePath
|
||||
sourceRoot {
|
||||
path = pathToSrc
|
||||
}
|
||||
@ -67,7 +66,6 @@ private Closure includeSourcesInDokka(String approximateName) {
|
||||
dokka {
|
||||
outputFormat = 'html'
|
||||
outputDirectory = "$buildDir/dokka"
|
||||
disableAutoconfiguration = true
|
||||
|
||||
multiplatform {
|
||||
global {
|
||||
@ -81,7 +79,7 @@ dokka {
|
||||
}
|
||||
|
||||
common(includeSourcesInDokka("commonMain"))
|
||||
js(includeSourcesInDokka("jsMain"))
|
||||
jvm(includeSourcesInDokka("jvmMain"))
|
||||
js(includeSourcesInDokka("jsMain"/*, "commonMain"*/))
|
||||
jvm(includeSourcesInDokka("jvmMain"/*, "commonMain"*/))
|
||||
}
|
||||
}
|
||||
|
@ -1 +1,3 @@
|
||||
dokka_version=0.10.1
|
||||
|
||||
org.gradle.jvmargs=-Xmx1024m
|
||||
|
Loading…
Reference in New Issue
Block a user