aboutsummaryrefslogtreecommitdiff
path: root/plugins/all-module-page/src/main/kotlin/AllModulesPageGeneration.kt
diff options
context:
space:
mode:
authorPaweł Marks <pmarks@virtuslab.com>2020-09-22 17:29:21 +0200
committerBłażej Kardyś <bkardys@virtuslab.com>2020-11-27 03:15:02 +0100
commit80b6d1824960205e1c1d57c0c51e913d3c2360db (patch)
treeea40c9c6dc0bd24999312cfa49a01c43cb746926 /plugins/all-module-page/src/main/kotlin/AllModulesPageGeneration.kt
parentc8a83153a88fe6f5b50b6f459295421f90a21583 (diff)
downloaddokka-80b6d1824960205e1c1d57c0c51e913d3c2360db.tar.gz
dokka-80b6d1824960205e1c1d57c0c51e913d3c2360db.tar.bz2
dokka-80b6d1824960205e1c1d57c0c51e913d3c2360db.zip
Add templating commands to the html format
Diffstat (limited to 'plugins/all-module-page/src/main/kotlin/AllModulesPageGeneration.kt')
-rw-r--r--plugins/all-module-page/src/main/kotlin/AllModulesPageGeneration.kt5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/all-module-page/src/main/kotlin/AllModulesPageGeneration.kt b/plugins/all-module-page/src/main/kotlin/AllModulesPageGeneration.kt
index 815cf160..f654514a 100644
--- a/plugins/all-module-page/src/main/kotlin/AllModulesPageGeneration.kt
+++ b/plugins/all-module-page/src/main/kotlin/AllModulesPageGeneration.kt
@@ -5,6 +5,8 @@ import org.jetbrains.dokka.Timer
import org.jetbrains.dokka.generation.Generation
import org.jetbrains.dokka.pages.RootPageNode
import org.jetbrains.dokka.plugability.DokkaContext
+import org.jetbrains.dokka.plugability.plugin
+import org.jetbrains.dokka.plugability.querySingle
class AllModulesPageGeneration(private val context: DokkaContext) : Generation {
override fun Timer.generate() {
@@ -16,6 +18,9 @@ class AllModulesPageGeneration(private val context: DokkaContext) : Generation {
report("Rendering")
render(transformedPages)
+
+ report("Processing submodules")
+ context.plugin<AllModulesPagePlugin>().querySingle { templateProcessor }.process()
}
override val generationName = "index page for project"