aboutsummaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-12-02 03:46:54 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-12-02 03:46:54 +0300
commitf08f711a4290b47149ae3454d698e78c9f4c8e16 (patch)
tree87a8765892097c06278e471e1342f969e8f6ee1c /core/src
parent7acc52ba723eab08fe796fcfd68755e7f0eb6a66 (diff)
downloaddokka-f08f711a4290b47149ae3454d698e78c9f4c8e16.tar.gz
dokka-f08f711a4290b47149ae3454d698e78c9f4c8e16.tar.bz2
dokka-f08f711a4290b47149ae3454d698e78c9f4c8e16.zip
Fix Javadoc format
Diffstat (limited to 'core/src')
-rw-r--r--core/src/main/kotlin/javadoc/dokka-adapters.kt14
1 files changed, 9 insertions, 5 deletions
diff --git a/core/src/main/kotlin/javadoc/dokka-adapters.kt b/core/src/main/kotlin/javadoc/dokka-adapters.kt
index c98a3801..84dff8f0 100644
--- a/core/src/main/kotlin/javadoc/dokka-adapters.kt
+++ b/core/src/main/kotlin/javadoc/dokka-adapters.kt
@@ -1,12 +1,16 @@
package org.jetbrains.dokka.javadoc
+import com.google.inject.Binder
import com.google.inject.Inject
import com.sun.tools.doclets.formats.html.HtmlDoclet
import org.jetbrains.dokka.*
import org.jetbrains.dokka.Formats.FormatDescriptor
+import org.jetbrains.dokka.Formats.FormatDescriptorAnalysisComponentProvider
import org.jetbrains.dokka.Kotlin.KotlinAsJavaDescriptorSignatureProvider
import org.jetbrains.dokka.Model.DescriptorSignatureProvider
import org.jetbrains.dokka.Samples.DefaultSampleProcessingService
+import org.jetbrains.dokka.Utilities.bind
+import org.jetbrains.dokka.Utilities.toType
import kotlin.reflect.KClass
class JavadocGenerator @Inject constructor(val options: DocumentationOptions, val logger: DokkaLogger) : Generator {
@@ -30,13 +34,13 @@ class JavadocGenerator @Inject constructor(val options: DocumentationOptions, va
}
}
-class JavadocFormatDescriptor : FormatDescriptor {
- override val formatServiceClass = null
- override val outlineServiceClass = null
- override val generatorServiceClass = JavadocGenerator::class
+class JavadocFormatDescriptor : FormatDescriptor, FormatDescriptorAnalysisComponentProvider {
override val packageDocumentationBuilderClass = KotlinAsJavaDocumentationBuilder::class
override val javaDocumentationBuilderClass = JavaPsiDocumentationBuilder::class
override val sampleProcessingService = DefaultSampleProcessingService::class
- override val packageListServiceClass: KClass<out PackageListService>? = null
override val descriptorSignatureProvider = KotlinAsJavaDescriptorSignatureProvider::class
+
+ override fun configureOutput(binder: Binder): Unit = with(binder) {
+ bind<Generator>() toType JavadocGenerator::class
+ }
}