Skip to content

Commit

Permalink
Clarify recipe sources
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-solomon committed Nov 7, 2023
1 parent 0c11971 commit 080029a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/main/kotlin/org/openrewrite/RecipeMarkdownGenerator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ class RecipeMarkdownGenerator : Runnable {

writeln(
"""
## Source
## Recipe source
[GitHub](${
origin.githubUrl(
Expand All @@ -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(
Expand Down

0 comments on commit 080029a

Please sign in to comment.