From 61de8f746eb0c5451f5584d6744c0925de45593f Mon Sep 17 00:00:00 2001 From: Vadim Mishenev Date: Tue, 26 Jul 2022 16:02:22 +0300 Subject: Give notice of alpha version for GFM, Javadoc, Jekyll, KaJ formats (#2550) --- .../src/main/kotlin/org/jetbrains/dokka/javadoc/JavadocPlugin.kt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'plugins/javadoc/src/main/kotlin') diff --git a/plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/JavadocPlugin.kt b/plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/JavadocPlugin.kt index 7f90f1ce..a067de84 100644 --- a/plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/JavadocPlugin.kt +++ b/plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/JavadocPlugin.kt @@ -14,6 +14,7 @@ import org.jetbrains.dokka.javadoc.transformers.documentables.JavadocDocumentabl import org.jetbrains.dokka.javadoc.validity.MultiplatformConfiguredChecker import org.jetbrains.dokka.kotlinAsJava.KotlinAsJavaPlugin import org.jetbrains.dokka.plugability.DokkaPlugin +import org.jetbrains.dokka.renderers.PostAction import org.jetbrains.dokka.transformers.pages.PageTransformer class JavadocPlugin : DokkaPlugin() { @@ -81,5 +82,13 @@ class JavadocPlugin : DokkaPlugin() { val deprecatedPageCreator by extending { javadocPreprocessors with DeprecatedPageCreator order { before(rootCreator) } } + + internal val alphaVersionNotifier by extending { + CoreExtensions.postActions providing { ctx -> + PostAction { + ctx.logger.warn("Javadoc output format is in Alpha version, use at your own risk, expect bugs and migration issues") + } + } + } } -- cgit