diff options
author | Kamil Doległo <kamilok1965@interia.pl> | 2019-05-22 15:13:46 +0200 |
---|---|---|
committer | Kamil Doległo <kamilok1965@interia.pl> | 2019-05-30 18:26:25 +0200 |
commit | 24d590574bb19a8063b1afefd0243353c34644fa (patch) | |
tree | 2a90476c0e6e8778cb472bf679b54238f9051b63 /integration/src/main/kotlin/org/jetbrains | |
parent | 551a5a83e5e88afcfa584d213951c6e42a3b2109 (diff) | |
download | dokka-24d590574bb19a8063b1afefd0243353c34644fa.tar.gz dokka-24d590574bb19a8063b1afefd0243353c34644fa.tar.bz2 dokka-24d590574bb19a8063b1afefd0243353c34644fa.zip |
Add autoconfiguration, probably needs refactoring
Diffstat (limited to 'integration/src/main/kotlin/org/jetbrains')
-rw-r--r-- | integration/src/main/kotlin/org/jetbrains/dokka/configuration.kt | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/integration/src/main/kotlin/org/jetbrains/dokka/configuration.kt b/integration/src/main/kotlin/org/jetbrains/dokka/configuration.kt index b41479cf..6eae9701 100644 --- a/integration/src/main/kotlin/org/jetbrains/dokka/configuration.kt +++ b/integration/src/main/kotlin/org/jetbrains/dokka/configuration.kt @@ -8,7 +8,6 @@ enum class Platform(val key: String) { native("native"), common("common"); - companion object { val DEFAULT = jvm @@ -22,7 +21,6 @@ enum class Platform(val key: String) { } } } - } interface DokkaConfiguration { @@ -47,7 +45,7 @@ interface DokkaConfiguration { val jdkVersion: Int val sourceLinks: List<SourceLinkDefinition> val perPackageOptions: List<PackageOptions> - val externalDocumentationLinks: List<DokkaConfiguration.ExternalDocumentationLink> + val externalDocumentationLinks: List<ExternalDocumentationLink> val languageVersion: String? val apiVersion: String? val noStdlibLink: Boolean @@ -86,7 +84,7 @@ interface DokkaConfiguration { constructor(root: String, packageList: String? = null) : this(URL(root), packageList?.let { URL(it) }) - fun build(): DokkaConfiguration.ExternalDocumentationLink = + fun build(): ExternalDocumentationLink = if (packageListUrl != null && url != null) ExternalDocumentationLinkImpl(url!!, packageListUrl!!) else if (url != null) |