aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/DokkaMultimoduleBootstrapImpl.kt
diff options
context:
space:
mode:
authorBłażej Kardyś <bkardys@virtuslab.com>2020-05-27 01:16:48 +0200
committerBłażej Kardyś <bkardys@virtuslab.com>2020-06-04 11:26:05 +0200
commit6dc9498ca849645ecb4ec923bb7116b245dca706 (patch)
tree23022e6d6f3aea18b9e8efaaa482cafae9bee989 /core/src/main/kotlin/DokkaMultimoduleBootstrapImpl.kt
parentb614604effda51ca7c76c8901be78ced62b642b2 (diff)
downloaddokka-6dc9498ca849645ecb4ec923bb7116b245dca706.tar.gz
dokka-6dc9498ca849645ecb4ec923bb7116b245dca706.tar.bz2
dokka-6dc9498ca849645ecb4ec923bb7116b245dca706.zip
All modules page generation
Diffstat (limited to 'core/src/main/kotlin/DokkaMultimoduleBootstrapImpl.kt')
-rw-r--r--core/src/main/kotlin/DokkaMultimoduleBootstrapImpl.kt25
1 files changed, 25 insertions, 0 deletions
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<String, String>, serializedConfigurationJSON: String) = configure(
+ DokkaProxyLogger(logger),
+ Gson().fromJson(serializedConfigurationJSON, DokkaConfigurationImpl::class.java)
+ )
+
+ override fun generate() {
+ generator.generateAllModulesPage()
+ }
+
+} \ No newline at end of file