diff options
author | Błażej Kardyś <bkardys@virtuslab.com> | 2020-11-20 17:23:10 +0100 |
---|---|---|
committer | Błażej Kardyś <bkardys@virtuslab.com> | 2020-11-27 03:15:02 +0100 |
commit | 3cb4702a68139788de6e1f7b087ced345f2b71ba (patch) | |
tree | a383471c9915ae4aaff078b4f3b81bb99a4fde35 /plugins/all-module-page/src/main/kotlin/AllModulesPagePlugin.kt | |
parent | 076a5f421c5e4621539efd814be612f43fef33f5 (diff) | |
download | dokka-3cb4702a68139788de6e1f7b087ced345f2b71ba.tar.gz dokka-3cb4702a68139788de6e1f7b087ced345f2b71ba.tar.bz2 dokka-3cb4702a68139788de6e1f7b087ced345f2b71ba.zip |
Changing how multimodule location provider works and improving gfm link substitution
Diffstat (limited to 'plugins/all-module-page/src/main/kotlin/AllModulesPagePlugin.kt')
-rw-r--r-- | plugins/all-module-page/src/main/kotlin/AllModulesPagePlugin.kt | 53 |
1 files changed, 0 insertions, 53 deletions
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<TemplateProcessor>() - val templateProcessingStrategy by extensionPoint<TemplateProcessingStrategy>() - val allModulePageCreator by extensionPoint<PageCreator>() - val allModulePageTransformer by extensionPoint<PageTransformer>() - - val substitutor by extensionPoint<Substitutor>() - - val allModulePageCreators by extending { - allModulePageCreator providing ::MultimodulePageCreator - } - - val multimoduleLocationProvider by extending { - (plugin<DokkaBase>().locationProviderFactory - providing MultimoduleLocationProvider::Factory - override plugin<DokkaBase>().locationProvider - applyIf { modules.size > 1 }) - } - - val allModulesPageGeneration by extending { - (CoreExtensions.generation - providing ::AllModulesPageGeneration - override plugin<DokkaBase>().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 |