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) --- plugins/gfm/src/main/kotlin/org/jetbrains/dokka/gfm/GfmPlugin.kt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'plugins/gfm/src') diff --git a/plugins/gfm/src/main/kotlin/org/jetbrains/dokka/gfm/GfmPlugin.kt b/plugins/gfm/src/main/kotlin/org/jetbrains/dokka/gfm/GfmPlugin.kt index 78597d44..f3c44dac 100644 --- a/plugins/gfm/src/main/kotlin/org/jetbrains/dokka/gfm/GfmPlugin.kt +++ b/plugins/gfm/src/main/kotlin/org/jetbrains/dokka/gfm/GfmPlugin.kt @@ -9,6 +9,7 @@ import org.jetbrains.dokka.gfm.location.MarkdownLocationProvider import org.jetbrains.dokka.gfm.renderer.BriefCommentPreprocessor import org.jetbrains.dokka.gfm.renderer.CommonmarkRenderer import org.jetbrains.dokka.plugability.DokkaPlugin +import org.jetbrains.dokka.renderers.PostAction import org.jetbrains.dokka.transformers.pages.PageTransformer class GfmPlugin : DokkaPlugin() { @@ -38,4 +39,12 @@ class GfmPlugin : DokkaPlugin() { providing { PackageListCreator(it, RecognizedLinkFormat.DokkaGFM) } order { after(rootCreator) }) } + + internal val alphaVersionNotifier by extending { + CoreExtensions.postActions providing { ctx -> + PostAction { + ctx.logger.warn("GFM output format is in Alpha version, use at your own risk, expect bugs and migration issues") + } + } + } } -- cgit