1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-06-26 03:28:10 +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 { return {
parent.subprojects.forEach { parent.subprojects.forEach {
if (it != project) { if (it != project) {
File srcDir = new File(it.projectDir.absolutePath, "src") File srcDir = new File(it.projectDir.absolutePath, "src")
if (srcDir.exists() && srcDir.isDirectory()) { if (srcDir.exists() && srcDir.isDirectory()) {
srcDir.eachFile { srcDir.eachFile { file ->
println(it.absolutePath) if (approximateNames.any { file.name.contains(it) } && file.isDirectory()) {
if (it.name.contains(approximateName) && it.isDirectory()) { String pathToSrc = file.absolutePath
String pathToSrc = it.absolutePath
sourceRoot { sourceRoot {
path = pathToSrc path = pathToSrc
} }
@ -67,7 +66,6 @@ private Closure includeSourcesInDokka(String approximateName) {
dokka { dokka {
outputFormat = 'html' outputFormat = 'html'
outputDirectory = "$buildDir/dokka" outputDirectory = "$buildDir/dokka"
disableAutoconfiguration = true
multiplatform { multiplatform {
global { global {
@ -81,7 +79,7 @@ dokka {
} }
common(includeSourcesInDokka("commonMain")) common(includeSourcesInDokka("commonMain"))
js(includeSourcesInDokka("jsMain")) js(includeSourcesInDokka("jsMain"/*, "commonMain"*/))
jvm(includeSourcesInDokka("jvmMain")) jvm(includeSourcesInDokka("jvmMain"/*, "commonMain"*/))
} }
} }

View File

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