diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/api/core.api | 4 | ||||
-rw-r--r-- | core/src/main/kotlin/CoreExtensions.kt | 2 | ||||
-rw-r--r-- | core/src/main/kotlin/renderers/PostAction.kt | 3 |
3 files changed, 9 insertions, 0 deletions
diff --git a/core/api/core.api b/core/api/core.api index 05a6207c..ed83f3a7 100644 --- a/core/api/core.api +++ b/core/api/core.api @@ -16,6 +16,7 @@ public final class org/jetbrains/dokka/CoreExtensions { public final fun getDocumentableTransformer ()Lorg/jetbrains/dokka/plugability/ExtensionPoint; public final fun getGeneration ()Lorg/jetbrains/dokka/plugability/ExtensionPoint; public final fun getPageTransformer ()Lorg/jetbrains/dokka/plugability/ExtensionPoint; + public final fun getPostActions ()Lorg/jetbrains/dokka/plugability/ExtensionPoint; public final fun getPreGenerationCheck ()Lorg/jetbrains/dokka/plugability/ExtensionPoint; public final fun getRenderer ()Lorg/jetbrains/dokka/plugability/ExtensionPoint; public final fun getSourceToDocumentableTranslator ()Lorg/jetbrains/dokka/plugability/ExtensionPoint; @@ -4288,6 +4289,9 @@ public abstract interface class org/jetbrains/dokka/plugability/WithUnsafeExtens public abstract fun getExtensionsSuppressed ()Ljava/util/List; } +public abstract interface class org/jetbrains/dokka/renderers/PostAction : kotlin/jvm/functions/Function0 { +} + public abstract interface class org/jetbrains/dokka/renderers/Renderer { public abstract fun render (Lorg/jetbrains/dokka/pages/RootPageNode;)V } diff --git a/core/src/main/kotlin/CoreExtensions.kt b/core/src/main/kotlin/CoreExtensions.kt index 66e717b4..0dd5780b 100644 --- a/core/src/main/kotlin/CoreExtensions.kt +++ b/core/src/main/kotlin/CoreExtensions.kt @@ -2,6 +2,7 @@ package org.jetbrains.dokka import org.jetbrains.dokka.generation.Generation import org.jetbrains.dokka.plugability.* +import org.jetbrains.dokka.renderers.PostAction import org.jetbrains.dokka.renderers.Renderer import org.jetbrains.dokka.transformers.documentation.DocumentableMerger import org.jetbrains.dokka.transformers.documentation.DocumentableToPageTranslator @@ -21,6 +22,7 @@ object CoreExtensions { val documentableToPageTranslator by coreExtensionPoint<DocumentableToPageTranslator>() val pageTransformer by coreExtensionPoint<PageTransformer>() val renderer by coreExtensionPoint<Renderer>() + val postActions by coreExtensionPoint<PostAction>() private fun <T : Any> coreExtensionPoint() = object { operator fun provideDelegate(thisRef: CoreExtensions, property: KProperty<*>): Lazy<ExtensionPoint<T>> = diff --git a/core/src/main/kotlin/renderers/PostAction.kt b/core/src/main/kotlin/renderers/PostAction.kt new file mode 100644 index 00000000..e47d5d22 --- /dev/null +++ b/core/src/main/kotlin/renderers/PostAction.kt @@ -0,0 +1,3 @@ +package org.jetbrains.dokka.renderers + +interface PostAction : () -> Unit
\ No newline at end of file |