From 076a5f421c5e4621539efd814be612f43fef33f5 Mon Sep 17 00:00:00 2001 From: Błażej Kardyś Date: Mon, 16 Nov 2020 19:46:31 +0100 Subject: Adding inter-module link resolving template strategy for Gfm --- .../all-module-page/src/main/kotlin/AllModulesPagePlugin.kt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'plugins/all-module-page/src/main/kotlin/AllModulesPagePlugin.kt') 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() + val templateProcessingStrategy by extensionPoint() val allModulePageCreator by extensionPoint() val allModulePageTransformer by extensionPoint() @@ -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 { -- cgit