aboutsummaryrefslogtreecommitdiff
path: root/runners/cli
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@interia.pl>2020-02-10 15:02:26 +0100
committerKamil Doległo <kamilok1965@interia.pl>2020-02-10 15:02:26 +0100
commit0d0d41f594f1095b4ccc999cffe01a6ef9a22dbb (patch)
tree32b09319400677750af154034e09d82d4706a396 /runners/cli
parent23fbfa0e8e793314cea8d96ac1584d72ec70bb60 (diff)
parent465ea3d23be40d0d21df7f7cab51ec2d42e3237f (diff)
downloaddokka-0d0d41f594f1095b4ccc999cffe01a6ef9a22dbb.tar.gz
dokka-0d0d41f594f1095b4ccc999cffe01a6ef9a22dbb.tar.bz2
dokka-0d0d41f594f1095b4ccc999cffe01a6ef9a22dbb.zip
Merge dev-0.10.1 into master
Diffstat (limited to 'runners/cli')
-rw-r--r--runners/cli/src/main/kotlin/cli/main.kt6
1 files changed, 4 insertions, 2 deletions
diff --git a/runners/cli/src/main/kotlin/cli/main.kt b/runners/cli/src/main/kotlin/cli/main.kt
index 52815e75..55601b21 100644
--- a/runners/cli/src/main/kotlin/cli/main.kt
+++ b/runners/cli/src/main/kotlin/cli/main.kt
@@ -1,6 +1,7 @@
package org.jetbrains.dokka
import org.jetbrains.dokka.DokkaConfiguration.ExternalDocumentationLink
+import org.jetbrains.dokka.Utilities.defaultLinks
import java.io.File
import java.net.MalformedURLException
import java.net.URL
@@ -261,10 +262,11 @@ object MainKt {
return configuration
}
+ fun GlobalArguments.addDefaultLinks() = passesConfigurations.forEach { it.externalDocumentationLinks += it.defaultLinks() }
+
@JvmStatic
fun main(args: Array<String>) {
- val configuration = createConfiguration(args)
-
+ val configuration = createConfiguration(args).apply { addDefaultLinks() }
if (configuration.format.toLowerCase() == "javadoc")
startWithToolsJar(configuration)
else