mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-12-22 16:47:13 +00:00
update docs build gradle to be able to put dokka where it is required
This commit is contained in:
parent
7375894645
commit
310a7e6e82
@ -67,7 +67,18 @@ String dokkaFolder = "$buildDir/dokka"
|
||||
|
||||
dokka {
|
||||
outputFormat = 'html'
|
||||
outputDirectory = dokkaFolder
|
||||
|
||||
switch (true) {
|
||||
case project.hasProperty("DOKKA_PATH"):
|
||||
outputDirectory = project.property("DOKKA_PATH").toString()
|
||||
break
|
||||
case System.getenv("DOKKA_PATH") != null:
|
||||
outputDirectory = System.getenv("DOKKA_PATH")
|
||||
break
|
||||
default:
|
||||
outputDirectory = dokkaFolder
|
||||
break
|
||||
}
|
||||
|
||||
multiplatform {
|
||||
global {
|
||||
|
Loading…
Reference in New Issue
Block a user