From 080029a38734040d6a50699b282fed47bc0efc84 Mon Sep 17 00:00:00 2001 From: Mike Solomon Date: Tue, 7 Nov 2023 09:34:39 -0800 Subject: [PATCH] Clarify recipe sources --- .../org/openrewrite/RecipeMarkdownGenerator.kt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/org/openrewrite/RecipeMarkdownGenerator.kt b/src/main/kotlin/org/openrewrite/RecipeMarkdownGenerator.kt index f4f34de..a4640f0 100644 --- a/src/main/kotlin/org/openrewrite/RecipeMarkdownGenerator.kt +++ b/src/main/kotlin/org/openrewrite/RecipeMarkdownGenerator.kt @@ -774,7 +774,7 @@ class RecipeMarkdownGenerator : Runnable { writeln( """ - ## Source + ## Recipe source [GitHub](${ origin.githubUrl( @@ -790,6 +790,17 @@ class RecipeMarkdownGenerator : Runnable { """.trimIndent() ) + if (recipeDescriptor.recipeList.size > 1) { + writeln( + """ + {% hint style="info" %} + This recipe is composed of more than one recipe. If you want to customize the set of recipes this is composed of, you can find and copy the GitHub source for the recipe from the link above. + {% endhint %} + """.trimIndent() + ) + } + + // Options if (recipeDescriptor.options.isNotEmpty()) { writeln(