From 02f30b142aa467d3a24cc52a1fe3f2fed7ea1e33 Mon Sep 17 00:00:00 2001 From: Ignat Beresnev Date: Thu, 31 Aug 2023 20:16:01 +0200 Subject: Enable explicit API mode (#3139) --- .../src/main/kotlin/templates/AddToNavigationCommandHandler.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'plugins/templating/src/main/kotlin/templates/AddToNavigationCommandHandler.kt') diff --git a/plugins/templating/src/main/kotlin/templates/AddToNavigationCommandHandler.kt b/plugins/templating/src/main/kotlin/templates/AddToNavigationCommandHandler.kt index de4e3637..78c6c684 100644 --- a/plugins/templating/src/main/kotlin/templates/AddToNavigationCommandHandler.kt +++ b/plugins/templating/src/main/kotlin/templates/AddToNavigationCommandHandler.kt @@ -14,7 +14,9 @@ import java.io.File import java.nio.file.Files import java.util.concurrent.ConcurrentHashMap -class AddToNavigationCommandHandler(val context: DokkaContext) : CommandHandler { +public class AddToNavigationCommandHandler( + public val context: DokkaContext +) : CommandHandler { private val navigationFragments = ConcurrentHashMap() override fun handleCommandAsTag(command: Command, body: Element, input: File, output: File) { @@ -25,7 +27,7 @@ class AddToNavigationCommandHandler(val context: DokkaContext) : CommandHandler ?.let { key -> navigationFragments[key.toString()] = body } } - override fun canHandle(command: Command) = command is AddToNavigationCommand + override fun canHandle(command: Command): Boolean = command is AddToNavigationCommand override fun finish(output: File) { if (navigationFragments.isNotEmpty()) { -- cgit