aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/Generation/configurationImpl.kt
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-05-03 16:25:50 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-05-04 14:35:09 +0300
commit3b6e3a8bf69b7470cd7e9a867ff3b2e7e645fbd4 (patch)
treea2cf05b5734bdb6540466a0e56b4fc4e34d792a4 /core/src/main/kotlin/Generation/configurationImpl.kt
parentc2afb348bb0d3dd60d336aa312b5fcedfb31b966 (diff)
downloaddokka-3b6e3a8bf69b7470cd7e9a867ff3b2e7e645fbd4.tar.gz
dokka-3b6e3a8bf69b7470cd7e9a867ff3b2e7e645fbd4.tar.bz2
dokka-3b6e3a8bf69b7470cd7e9a867ff3b2e7e645fbd4.zip
Add bunch of new parameters to runners
Such as packageOptions, impliedPlatforms and so on
Diffstat (limited to 'core/src/main/kotlin/Generation/configurationImpl.kt')
-rw-r--r--core/src/main/kotlin/Generation/configurationImpl.kt11
1 files changed, 9 insertions, 2 deletions
diff --git a/core/src/main/kotlin/Generation/configurationImpl.kt b/core/src/main/kotlin/Generation/configurationImpl.kt
index 6ed0d639..bb2f6d12 100644
--- a/core/src/main/kotlin/Generation/configurationImpl.kt
+++ b/core/src/main/kotlin/Generation/configurationImpl.kt
@@ -18,7 +18,7 @@ data class SourceLinkDefinitionImpl(override val path: String,
}
}
-class SourceRootImpl(path: String, override val defaultPlatforms: List<String> = emptyList()) : SourceRoot {
+class SourceRootImpl(path: String, override val platforms: List<String> = emptyList()) : SourceRoot {
override val path: String = File(path).absolutePath
companion object {
@@ -29,6 +29,11 @@ class SourceRootImpl(path: String, override val defaultPlatforms: List<String> =
}
}
+data class PackageOptionsImpl(override val prefix: String,
+ override val includeNonPublic: Boolean = false,
+ override val reportUndocumented: Boolean = true,
+ override val skipDeprecated: Boolean = false) : DokkaConfiguration.PackageOptions
+
data class DokkaConfigurationImpl(override val moduleName: String,
override val classpath: List<String>,
override val sourceRoots: List<SourceRootImpl>,
@@ -43,4 +48,6 @@ data class DokkaConfigurationImpl(override val moduleName: String,
override val skipDeprecated: Boolean,
override val jdkVersion: Int,
override val generateIndexPages: Boolean,
- override val sourceLinks: List<SourceLinkDefinitionImpl>) : DokkaConfiguration \ No newline at end of file
+ override val sourceLinks: List<SourceLinkDefinitionImpl>,
+ override val impliedPlatforms: List<String>,
+ override val perPackageOptions: List<PackageOptionsImpl>) : DokkaConfiguration \ No newline at end of file