1
0
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:
InsanusMokrassar 2020-05-11 13:56:09 +06:00
parent aa78d99179
commit a58aad1198
2 changed files with 8 additions and 8 deletions

View File

@ -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"*/))
}
}

View File

@ -1 +1,3 @@
dokka_version=0.10.1
org.gradle.jvmargs=-Xmx1024m