diff options
author | Ignat Beresnev <ignat.beresnev@jetbrains.com> | 2023-08-31 20:16:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-31 20:16:01 +0200 |
commit | 02f30b142aa467d3a24cc52a1fe3f2fed7ea1e33 (patch) | |
tree | 66f6d6f089a93b863bf1144666491eca6729ad05 /plugins/templating/src/main/kotlin/templates/TemplatingPlugin.kt | |
parent | 6a181a7a2b03ec263788d137610e86937a57d434 (diff) | |
download | dokka-02f30b142aa467d3a24cc52a1fe3f2fed7ea1e33.tar.gz dokka-02f30b142aa467d3a24cc52a1fe3f2fed7ea1e33.tar.bz2 dokka-02f30b142aa467d3a24cc52a1fe3f2fed7ea1e33.zip |
Enable explicit API mode (#3139)
Diffstat (limited to 'plugins/templating/src/main/kotlin/templates/TemplatingPlugin.kt')
-rw-r--r-- | plugins/templating/src/main/kotlin/templates/TemplatingPlugin.kt | 41 |
1 files changed, 19 insertions, 22 deletions
diff --git a/plugins/templating/src/main/kotlin/templates/TemplatingPlugin.kt b/plugins/templating/src/main/kotlin/templates/TemplatingPlugin.kt index a8d126d0..8a2e5a2a 100644 --- a/plugins/templating/src/main/kotlin/templates/TemplatingPlugin.kt +++ b/plugins/templating/src/main/kotlin/templates/TemplatingPlugin.kt @@ -6,74 +6,71 @@ package org.jetbrains.dokka.templates import org.jetbrains.dokka.allModulesPage.templates.PackageListProcessingStrategy import org.jetbrains.dokka.allModulesPage.templates.PagesSearchTemplateStrategy -import org.jetbrains.dokka.plugability.DokkaPlugin -import org.jetbrains.dokka.plugability.DokkaPluginApiPreview -import org.jetbrains.dokka.plugability.PluginApiPreviewAcknowledgement +import org.jetbrains.dokka.plugability.* import templates.ProjectNameSubstitutor import templates.ReplaceVersionCommandHandler import templates.SourcesetDependencyProcessingStrategy @Suppress("unused") -class TemplatingPlugin : DokkaPlugin() { +public class TemplatingPlugin : DokkaPlugin() { - val submoduleTemplateProcessor by extensionPoint<SubmoduleTemplateProcessor>() - val multimoduleTemplateProcessor by extensionPoint<MultiModuleTemplateProcessor>() - val templateProcessingStrategy by extensionPoint<TemplateProcessingStrategy>() - val directiveBasedCommandHandlers by extensionPoint<CommandHandler>() + public val submoduleTemplateProcessor: ExtensionPoint<SubmoduleTemplateProcessor> by extensionPoint() + public val multimoduleTemplateProcessor: ExtensionPoint<MultiModuleTemplateProcessor> by extensionPoint() + public val templateProcessingStrategy: ExtensionPoint<TemplateProcessingStrategy> by extensionPoint() + public val directiveBasedCommandHandlers: ExtensionPoint<CommandHandler> by extensionPoint() + public val substitutor: ExtensionPoint<Substitutor> by extensionPoint() - val substitutor by extensionPoint<Substitutor>() - - val defaultSubmoduleTemplateProcessor by extending { + public val defaultSubmoduleTemplateProcessor: Extension<SubmoduleTemplateProcessor, *, *> by extending { submoduleTemplateProcessor providing ::DefaultSubmoduleTemplateProcessor } - val defaultMultiModuleTemplateProcessor by extending { + public val defaultMultiModuleTemplateProcessor: Extension<MultiModuleTemplateProcessor, *, *> by extending { multimoduleTemplateProcessor providing ::DefaultMultiModuleTemplateProcessor } - val directiveBasedHtmlTemplateProcessingStrategy by extending { + public val directiveBasedHtmlTemplateProcessingStrategy: Extension<TemplateProcessingStrategy, *, *> by extending { templateProcessingStrategy providing ::DirectiveBasedHtmlTemplateProcessingStrategy order { before(fallbackProcessingStrategy) } } - val sourcesetDependencyProcessingStrategy by extending { + public val sourcesetDependencyProcessingStrategy: Extension<TemplateProcessingStrategy, *, *> by extending { templateProcessingStrategy providing ::SourcesetDependencyProcessingStrategy order { before(fallbackProcessingStrategy) } } - val pagesSearchTemplateStrategy by extending { + public val pagesSearchTemplateStrategy: Extension<TemplateProcessingStrategy, *, *> by extending { templateProcessingStrategy providing ::PagesSearchTemplateStrategy order { before(fallbackProcessingStrategy) } } - val packageListProcessingStrategy by extending { + public val packageListProcessingStrategy: Extension<TemplateProcessingStrategy, *, *> by extending { templateProcessingStrategy providing ::PackageListProcessingStrategy order { before(fallbackProcessingStrategy) } } - val fallbackProcessingStrategy by extending { + public val fallbackProcessingStrategy: Extension<TemplateProcessingStrategy, *, *> by extending { templateProcessingStrategy with FallbackTemplateProcessingStrategy() } - val pathToRootSubstitutor by extending { + public val pathToRootSubstitutor: Extension<Substitutor, *, *> by extending { substitutor providing ::PathToRootSubstitutor } - val projectNameSubstitutor by extending { + public val projectNameSubstitutor: Extension<Substitutor, *, *> by extending { substitutor providing ::ProjectNameSubstitutor } - val addToNavigationCommandHandler by extending { + public val addToNavigationCommandHandler: Extension<CommandHandler, *, *> by extending { directiveBasedCommandHandlers providing ::AddToNavigationCommandHandler } - val substitutionCommandHandler by extending { + public val substitutionCommandHandler: Extension<CommandHandler, *, *> by extending { directiveBasedCommandHandlers providing ::SubstitutionCommandHandler } - val replaceVersionCommandHandler by extending { + public val replaceVersionCommandHandler: Extension<CommandHandler, *, *> by extending { directiveBasedCommandHandlers providing ::ReplaceVersionCommandHandler } |