From 3cb4702a68139788de6e1f7b087ced345f2b71ba Mon Sep 17 00:00:00 2001 From: Błażej Kardyś Date: Fri, 20 Nov 2020 17:23:10 +0100 Subject: Changing how multimodule location provider works and improving gfm link substitution --- .../src/main/kotlin/AllModulesPagePlugin.kt | 53 ---------------------- 1 file changed, 53 deletions(-) delete mode 100644 plugins/all-module-page/src/main/kotlin/AllModulesPagePlugin.kt (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 deleted file mode 100644 index bcc43043..00000000 --- a/plugins/all-module-page/src/main/kotlin/AllModulesPagePlugin.kt +++ /dev/null @@ -1,53 +0,0 @@ -package org.jetbrains.dokka.allModulesPage - -import org.jetbrains.dokka.CoreExtensions -import org.jetbrains.dokka.allModulesPage.templates.* -import org.jetbrains.dokka.base.DokkaBase -import org.jetbrains.dokka.plugability.DokkaPlugin -import org.jetbrains.dokka.transformers.pages.PageCreator -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() - - val substitutor by extensionPoint() - - val allModulePageCreators by extending { - allModulePageCreator providing ::MultimodulePageCreator - } - - val multimoduleLocationProvider by extending { - (plugin().locationProviderFactory - providing MultimoduleLocationProvider::Factory - override plugin().locationProvider - applyIf { modules.size > 1 }) - } - - val allModulesPageGeneration by extending { - (CoreExtensions.generation - providing ::AllModulesPageGeneration - override plugin().singleGeneration) - } - - val defaultTemplateProcessor by extending { - templateProcessor providing ::DefaultTemplateProcessor - } - - val directiveBasedHtmlTemplateProcessingStrategy by extending { - templateProcessingStrategy providing ::DirectiveBasedHtmlTemplateProcessingStrategy order { - before(fallbackProcessingStrategy) - } - } - - val fallbackProcessingStrategy by extending { - templateProcessingStrategy providing ::FallbackTemplateProcessingStrategy - } - - val pathToRootSubstitutor by extending { - substitutor providing ::PathToRootSubstitutor - } -} \ No newline at end of file -- cgit