aboutsummaryrefslogtreecommitdiff
path: root/plugins/templating/src/test/kotlin/templates/TestTemplatingGeneration.kt
diff options
context:
space:
mode:
authorBłażej Kardyś <bkardys@virtuslab.com>2021-01-05 17:59:38 +0100
committerGitHub <noreply@github.com>2021-01-05 17:59:38 +0100
commit1618e552c136e25d86bf0708e0d760841c77c139 (patch)
treec608ce91b020bb0ecbfe75d0f456a0eae84b4c51 /plugins/templating/src/test/kotlin/templates/TestTemplatingGeneration.kt
parentef98e4b6505c3fdd192b1d5057c718079d27b972 (diff)
downloaddokka-1618e552c136e25d86bf0708e0d760841c77c139.tar.gz
dokka-1618e552c136e25d86bf0708e0d760841c77c139.tar.bz2
dokka-1618e552c136e25d86bf0708e0d760841c77c139.zip
Versioning (#1654)
* Adding versioning mechanism for multimodule * Versioning improvement * Refactor configuration, add ordering * Fix integration tests * Change packages, unignore test Co-authored-by: Marcin Aman <marcin.aman@gmail.com>
Diffstat (limited to 'plugins/templating/src/test/kotlin/templates/TestTemplatingGeneration.kt')
-rw-r--r--plugins/templating/src/test/kotlin/templates/TestTemplatingGeneration.kt22
1 files changed, 22 insertions, 0 deletions
diff --git a/plugins/templating/src/test/kotlin/templates/TestTemplatingGeneration.kt b/plugins/templating/src/test/kotlin/templates/TestTemplatingGeneration.kt
new file mode 100644
index 00000000..0a5bae4b
--- /dev/null
+++ b/plugins/templating/src/test/kotlin/templates/TestTemplatingGeneration.kt
@@ -0,0 +1,22 @@
+package org.jetbrains.dokka.templates
+
+import org.jetbrains.dokka.Timer
+import org.jetbrains.dokka.generation.Generation
+import org.jetbrains.dokka.plugability.DokkaContext
+import org.jetbrains.dokka.plugability.plugin
+import org.jetbrains.dokka.plugability.querySingle
+
+class TestTemplatingGeneration(context: DokkaContext): Generation {
+
+ val templatingPlugin by lazy { context.plugin<TemplatingPlugin>() }
+
+ override fun Timer.generate() {
+ report("Processing submodules")
+ processSubmodules()
+ }
+
+ fun processSubmodules() =
+ templatingPlugin.querySingle { templateProcessor }.process()
+
+ override val generationName = "test template generation"
+} \ No newline at end of file