aboutsummaryrefslogtreecommitdiff
path: root/plugins/templating/src/main/kotlin/templates/AddToNavigationCommandHandler.kt
diff options
context:
space:
mode:
authorIgnat Beresnev <ignat.beresnev@jetbrains.com>2023-08-31 20:16:01 +0200
committerGitHub <noreply@github.com>2023-08-31 20:16:01 +0200
commit02f30b142aa467d3a24cc52a1fe3f2fed7ea1e33 (patch)
tree66f6d6f089a93b863bf1144666491eca6729ad05 /plugins/templating/src/main/kotlin/templates/AddToNavigationCommandHandler.kt
parent6a181a7a2b03ec263788d137610e86937a57d434 (diff)
downloaddokka-02f30b142aa467d3a24cc52a1fe3f2fed7ea1e33.tar.gz
dokka-02f30b142aa467d3a24cc52a1fe3f2fed7ea1e33.tar.bz2
dokka-02f30b142aa467d3a24cc52a1fe3f2fed7ea1e33.zip
Enable explicit API mode (#3139)
Diffstat (limited to 'plugins/templating/src/main/kotlin/templates/AddToNavigationCommandHandler.kt')
-rw-r--r--plugins/templating/src/main/kotlin/templates/AddToNavigationCommandHandler.kt6
1 files changed, 4 insertions, 2 deletions
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<String, Element>()
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()) {