aboutsummaryrefslogtreecommitdiff
path: root/dokka-subprojects/plugin-base/api
diff options
context:
space:
mode:
authorOleg Yukhnevich <whyoleg@gmail.com>2023-11-16 16:58:19 +0200
committerGitHub <noreply@github.com>2023-11-16 16:58:19 +0200
commitf333e425440701e50361f61acc2f9cb2d10fac1a (patch)
tree85fded28ef08dd658bb53f16af2976b89a3b1aa7 /dokka-subprojects/plugin-base/api
parent1e126789a92e512b0a426044220043632e7dbf1b (diff)
downloaddokka-f333e425440701e50361f61acc2f9cb2d10fac1a.tar.gz
dokka-f333e425440701e50361f61acc2f9cb2d10fac1a.tar.bz2
dokka-f333e425440701e50361f61acc2f9cb2d10fac1a.zip
Implement custom code block renderers support (#3320)
* multiple custom renderers can be installed to support different languages independently * only language and code properties are provided for extension
Diffstat (limited to 'dokka-subprojects/plugin-base/api')
-rw-r--r--dokka-subprojects/plugin-base/api/plugin-base.api7
1 files changed, 7 insertions, 0 deletions
diff --git a/dokka-subprojects/plugin-base/api/plugin-base.api b/dokka-subprojects/plugin-base/api/plugin-base.api
index 13f877e3..8d768b42 100644
--- a/dokka-subprojects/plugin-base/api/plugin-base.api
+++ b/dokka-subprojects/plugin-base/api/plugin-base.api
@@ -60,6 +60,7 @@ public final class org/jetbrains/dokka/base/DokkaBase : org/jetbrains/dokka/plug
public final fun getExternalLocationProviderFactory ()Lorg/jetbrains/dokka/plugability/ExtensionPoint;
public final fun getFallbackMerger ()Lorg/jetbrains/dokka/plugability/Extension;
public final fun getFileWriter ()Lorg/jetbrains/dokka/plugability/Extension;
+ public final fun getHtmlCodeBlockRenderers ()Lorg/jetbrains/dokka/plugability/ExtensionPoint;
public final fun getHtmlPreprocessors ()Lorg/jetbrains/dokka/plugability/ExtensionPoint;
public final fun getHtmlRenderer ()Lorg/jetbrains/dokka/plugability/Extension;
public final fun getImmediateHtmlCommandConsumer ()Lorg/jetbrains/dokka/plugability/ExtensionPoint;
@@ -297,6 +298,12 @@ public final class org/jetbrains/dokka/base/renderers/html/CustomResourceInstall
public fun invoke (Lorg/jetbrains/dokka/pages/RootPageNode;)Lorg/jetbrains/dokka/pages/RootPageNode;
}
+public abstract interface class org/jetbrains/dokka/base/renderers/html/HtmlCodeBlockRenderer {
+ public abstract fun buildCodeBlock (Lkotlinx/html/FlowContent;Ljava/lang/String;Ljava/lang/String;)V
+ public abstract fun isApplicableForDefinedLanguage (Ljava/lang/String;)Z
+ public abstract fun isApplicableForUndefinedLanguage (Ljava/lang/String;)Z
+}
+
public final class org/jetbrains/dokka/base/renderers/html/HtmlFormatingUtilsKt {
public static final fun buildBreakableDotSeparatedHtml (Lkotlinx/html/FlowContent;Ljava/lang/String;)V
public static final fun buildBreakableText (Lkotlinx/html/FlowContent;Ljava/lang/String;)V