package org.jetbrains.dokka.javadoc import com.sun.tools.doclets.formats.html.HtmlDoclet import org.jetbrains.dokka.* import org.jetbrains.dokka.Formats.FormatDescriptor class JavadocGenerator(val conf: DokkaGenerator) : Generator { override fun buildPages(nodes: Iterable) { val module = nodes.single() as DocumentationModule DokkaConsoleLogger.report() HtmlDoclet.start(ModuleNodeAdapter(module, StandardReporter, conf.outputDir)) } override fun buildOutlines(nodes: Iterable) { // no outline could be generated separately } } class JavadocFormatDescriptor : FormatDescriptor { override val formatServiceClass: Class? get() = null override val outlineServiceClass: Class? get() = null override val generatorServiceClass: Class get() = javaClass() }