From 6dc9498ca849645ecb4ec923bb7116b245dca706 Mon Sep 17 00:00:00 2001 From: Błażej Kardyś Date: Wed, 27 May 2020 01:16:48 +0200 Subject: All modules page generation --- .../main/kotlin/DokkaMultimoduleBootstrapImpl.kt | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 core/src/main/kotlin/DokkaMultimoduleBootstrapImpl.kt (limited to 'core/src/main/kotlin/DokkaMultimoduleBootstrapImpl.kt') diff --git a/core/src/main/kotlin/DokkaMultimoduleBootstrapImpl.kt b/core/src/main/kotlin/DokkaMultimoduleBootstrapImpl.kt new file mode 100644 index 00000000..6825ce64 --- /dev/null +++ b/core/src/main/kotlin/DokkaMultimoduleBootstrapImpl.kt @@ -0,0 +1,25 @@ +package org.jetbrains.dokka + +import com.google.gson.Gson +import org.jetbrains.dokka.DokkaBootstrapImpl.DokkaProxyLogger +import org.jetbrains.dokka.utilities.DokkaLogger +import java.util.function.BiConsumer + +class DokkaMultimoduleBootstrapImpl : DokkaBootstrap { + + private lateinit var generator: DokkaGenerator + + fun configure(logger: DokkaLogger, configuration: DokkaConfiguration) { + generator = DokkaGenerator(configuration, logger) + } + + override fun configure(logger: BiConsumer, serializedConfigurationJSON: String) = configure( + DokkaProxyLogger(logger), + Gson().fromJson(serializedConfigurationJSON, DokkaConfigurationImpl::class.java) + ) + + override fun generate() { + generator.generateAllModulesPage() + } + +} \ No newline at end of file -- cgit