aboutsummaryrefslogtreecommitdiff
path: root/plugins/all-module-page/src/main/kotlin/AllModulesPagePlugin.kt
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/all-module-page/src/main/kotlin/AllModulesPagePlugin.kt')
-rw-r--r--plugins/all-module-page/src/main/kotlin/AllModulesPagePlugin.kt9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/all-module-page/src/main/kotlin/AllModulesPagePlugin.kt b/plugins/all-module-page/src/main/kotlin/AllModulesPagePlugin.kt
index 163f13ab..584de32f 100644
--- a/plugins/all-module-page/src/main/kotlin/AllModulesPagePlugin.kt
+++ b/plugins/all-module-page/src/main/kotlin/AllModulesPagePlugin.kt
@@ -1,10 +1,15 @@
package org.jetbrains.dokka.allModulesPage
import org.jetbrains.dokka.CoreExtensions
+import org.jetbrains.dokka.allModulesPage.templates.DefaultTemplateProcessor
+import org.jetbrains.dokka.allModulesPage.templates.DirectiveBasedTemplateProcessingStrategy
+import org.jetbrains.dokka.allModulesPage.templates.TemplateProcessor
import org.jetbrains.dokka.base.DokkaBase
import org.jetbrains.dokka.plugability.DokkaPlugin
class AllModulesPagePlugin : DokkaPlugin() {
+ val templateProcessor by extensionPoint<TemplateProcessor>()
+
val allModulePageCreators by extending {
(CoreExtensions.allModulePageCreator
providing ::MultimodulePageCreator)
@@ -22,4 +27,8 @@ class AllModulesPagePlugin : DokkaPlugin() {
providing ::AllModulesPageGeneration
override CoreExtensions.singleGeneration)
}
+
+ val defaultTemplateProcessor by extending {
+ templateProcessor providing { DefaultTemplateProcessor(it, DirectiveBasedTemplateProcessingStrategy(it)) }
+ }
} \ No newline at end of file