aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin/generation/SingleModuleGeneration.kt
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/base/src/main/kotlin/generation/SingleModuleGeneration.kt')
-rw-r--r--plugins/base/src/main/kotlin/generation/SingleModuleGeneration.kt7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/base/src/main/kotlin/generation/SingleModuleGeneration.kt b/plugins/base/src/main/kotlin/generation/SingleModuleGeneration.kt
index e0deef17..5cdeeb40 100644
--- a/plugins/base/src/main/kotlin/generation/SingleModuleGeneration.kt
+++ b/plugins/base/src/main/kotlin/generation/SingleModuleGeneration.kt
@@ -46,6 +46,9 @@ class SingleModuleGeneration(private val context: DokkaContext) : Generation {
report("Rendering")
render(transformedPages)
+ report("Running post-actions")
+ runPostActions()
+
reportAfterRendering()
}
@@ -76,6 +79,10 @@ class SingleModuleGeneration(private val context: DokkaContext) : Generation {
context.single(CoreExtensions.renderer).render(transformedPages)
}
+ fun runPostActions() {
+ context[CoreExtensions.postActions].forEach { it() }
+ }
+
fun validityCheck(context: DokkaContext) {
val (preGenerationCheckResult, checkMessages) = context[CoreExtensions.preGenerationCheck].fold(
Pair(true, emptyList<String>())