mirror of
https://github.com/InsanusMokrassar/KSLog.git
synced 2024-12-21 21:47:13 +00:00
dokka.gradle
This commit is contained in:
parent
db1feffbe0
commit
5e07bdbebf
@ -59,5 +59,6 @@ java {
|
||||
|
||||
apply from: "defaultAndroidSettings.gradle"
|
||||
|
||||
apply from: "./github_release.gradle"
|
||||
apply from: "./publish.gradle"
|
||||
apply from: "github_release.gradle"
|
||||
apply from: "publish.gradle"
|
||||
apply from: "dokka.gradle"
|
||||
|
25
dokka.gradle
Normal file
25
dokka.gradle
Normal file
@ -0,0 +1,25 @@
|
||||
Object callback = {
|
||||
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
|
||||
}
|
||||
|
||||
dokkaSourceSets {
|
||||
configureEach {
|
||||
skipDeprecated.set(true)
|
||||
|
||||
sourceLink {
|
||||
localDirectory.set(file("./"))
|
||||
remoteUrl.set(new URL("https://github.com/InsanusMokrassar/KSLog/blob/master/"))
|
||||
remoteLineSuffix.set("#L")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tasks.dokkaGfm(callback)
|
||||
tasks.dokkaHtml(callback)
|
Loading…
Reference in New Issue
Block a user