add dokka config

This commit is contained in:
2020-06-03 20:10:06 +06:00
parent 69e2e10d29
commit 0178ac140a
3 changed files with 33 additions and 0 deletions

28
dokka.gradle Normal file
View File

@@ -0,0 +1,28 @@
dokka {
outputFormat = 'html'
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
}
multiplatform {
global {
skipDeprecated = true
sourceLink {
path = "./"
url = "https://github.com/InsanusMokrassar/krontab/blob/master/"
lineSuffix = "#L"
}
}
common { sourceRoot { path = "src/commonMain" } }
js { sourceRoot { path = "src/jsMain" } }
jvm { sourceRoot { path = "src/jvmMain" } }
}
}