diff options
author | Vadim Mishenev <vad-mishenev@yandex.ru> | 2022-02-22 12:56:41 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-22 12:56:41 +0300 |
commit | b9b1b588fad604c0cfc3e481f48338437dcaba5f (patch) | |
tree | 7c6a04d95f0f9b0c931b25dca91f1cf411f01105 /plugins/versioning | |
parent | c44bf5487bd32f90a4576859548f1db0e9355a07 (diff) | |
download | dokka-b9b1b588fad604c0cfc3e481f48338437dcaba5f.tar.gz dokka-b9b1b588fad604c0cfc3e481f48338437dcaba5f.tar.bz2 dokka-b9b1b588fad604c0cfc3e481f48338437dcaba5f.zip |
Fix HTML head and favicon in multi-module projects (#2365)
Diffstat (limited to 'plugins/versioning')
-rw-r--r-- | plugins/versioning/api/versioning.api | 2 | ||||
-rw-r--r-- | plugins/versioning/src/main/kotlin/versioning/ReplaceVersionsCommand.kt | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/plugins/versioning/api/versioning.api b/plugins/versioning/api/versioning.api index 15ebe7be..b163fd4a 100644 --- a/plugins/versioning/api/versioning.api +++ b/plugins/versioning/api/versioning.api @@ -59,6 +59,8 @@ public final class org/jetbrains/dokka/versioning/ReplaceVersionCommandHandler : public fun finish (Ljava/io/File;)V public final fun getVersionsNavigationCreator ()Lorg/jetbrains/dokka/versioning/VersionsNavigationCreator; public fun handleCommand (Lorg/jsoup/nodes/Element;Lorg/jetbrains/dokka/base/templating/Command;Ljava/io/File;Ljava/io/File;)V + public fun handleCommandAsComment (Lorg/jetbrains/dokka/base/templating/Command;Ljava/util/List;Ljava/io/File;Ljava/io/File;)V + public fun handleCommandAsTag (Lorg/jetbrains/dokka/base/templating/Command;Lorg/jsoup/nodes/Element;Ljava/io/File;Ljava/io/File;)V } public final class org/jetbrains/dokka/versioning/SemVerVersionOrdering : org/jetbrains/dokka/versioning/VersionsOrdering { diff --git a/plugins/versioning/src/main/kotlin/versioning/ReplaceVersionsCommand.kt b/plugins/versioning/src/main/kotlin/versioning/ReplaceVersionsCommand.kt index 728eac09..ad1edd2b 100644 --- a/plugins/versioning/src/main/kotlin/versioning/ReplaceVersionsCommand.kt +++ b/plugins/versioning/src/main/kotlin/versioning/ReplaceVersionsCommand.kt @@ -18,7 +18,7 @@ class ReplaceVersionCommandHandler(context: DokkaContext) : CommandHandler { override fun canHandle(command: Command): Boolean = command is ReplaceVersionsCommand - override fun handleCommand(element: Element, command: Command, input: File, output: File) { + override fun handleCommandAsTag(command: Command, element: Element, input: File, output: File) { element.empty() element.append(versionsNavigationCreator(output)) } |