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 {
|
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"*/))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1 +1,3 @@
|
|||||||
dokka_version=0.10.1
|
dokka_version=0.10.1
|
||||||
|
|
||||||
|
org.gradle.jvmargs=-Xmx1024m
|
||||||
|
Loading…
Reference in New Issue
Block a user