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.kt13
1 files changed, 12 insertions, 1 deletions
diff --git a/plugins/all-module-page/src/main/kotlin/AllModulesPagePlugin.kt b/plugins/all-module-page/src/main/kotlin/AllModulesPagePlugin.kt
index a65c0c58..bcc43043 100644
--- a/plugins/all-module-page/src/main/kotlin/AllModulesPagePlugin.kt
+++ b/plugins/all-module-page/src/main/kotlin/AllModulesPagePlugin.kt
@@ -10,6 +10,7 @@ import org.jetbrains.dokka.transformers.pages.PageTransformer
class AllModulesPagePlugin : DokkaPlugin() {
val templateProcessor by extensionPoint<TemplateProcessor>()
+ val templateProcessingStrategy by extensionPoint<TemplateProcessingStrategy>()
val allModulePageCreator by extensionPoint<PageCreator>()
val allModulePageTransformer by extensionPoint<PageTransformer>()
@@ -33,7 +34,17 @@ class AllModulesPagePlugin : DokkaPlugin() {
}
val defaultTemplateProcessor by extending {
- templateProcessor providing { DefaultTemplateProcessor(it, DirectiveBasedTemplateProcessingStrategy(it)) }
+ templateProcessor providing ::DefaultTemplateProcessor
+ }
+
+ val directiveBasedHtmlTemplateProcessingStrategy by extending {
+ templateProcessingStrategy providing ::DirectiveBasedHtmlTemplateProcessingStrategy order {
+ before(fallbackProcessingStrategy)
+ }
+ }
+
+ val fallbackProcessingStrategy by extending {
+ templateProcessingStrategy providing ::FallbackTemplateProcessingStrategy
}
val pathToRootSubstitutor by extending {