diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2016-01-12 19:34:48 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2016-01-12 19:34:48 +0100 |
commit | 8640e513391f3a3c9909396d45795543f01e87d2 (patch) | |
tree | eb28bbdd3d5afb86c9bb61b99503b21809932787 /core/src/main | |
parent | f3ed9f5fa553c72a254e5ca5d28e108849937769 (diff) | |
download | dokka-8640e513391f3a3c9909396d45795543f01e87d2.tar.gz dokka-8640e513391f3a3c9909396d45795543f01e87d2.tar.bz2 dokka-8640e513391f3a3c9909396d45795543f01e87d2.zip |
don't generate index pages in tests
Diffstat (limited to 'core/src/main')
-rw-r--r-- | core/src/main/kotlin/Kotlin/DocumentationBuilder.kt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt b/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt index 1bc41f54..1b4dafd4 100644 --- a/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt +++ b/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt @@ -42,6 +42,7 @@ data class DocumentationOptions(val outputDir: String, val skipEmptyPackages: Boolean = true, val skipDeprecated: Boolean = false, val jdkVersion: Int = 6, + val generateIndexPages: Boolean = true, val sourceLinks: List<SourceLinkDefinition>) private fun isExtensionForExternalClass(extensionFunctionDescriptor: DeclarationDescriptor, @@ -293,7 +294,9 @@ class DocumentationBuilder } propagateExtensionFunctionsToSubclasses(fragments) - generateAllTypesNode() + if (options.generateIndexPages) { + generateAllTypesNode() + } } private fun propagateExtensionFunctionsToSubclasses(fragments: Collection<PackageFragmentDescriptor>) { |