Skip to content

Commit

Permalink
Fix broken links
Browse files Browse the repository at this point in the history
Fixes: #161
  • Loading branch information
mike-solomon committed Jan 30, 2025
1 parent 77d337e commit 309b612
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/kotlin/org/openrewrite/RecipeMarkdownGenerator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,8 @@ class RecipeMarkdownGenerator : Runnable {
recipePath = "recipes/core/" + recipe.name.removePrefix("org.openrewrite.").lowercase()
} else if (recipe.name.contains("io.moderne.ai")) {
recipePath = "recipes/ai/" + recipe.name.removePrefix("io.moderne.ai.").replace(".", "/").lowercase()
} else if (recipe.name.contains("io.moderne")) {
recipePath = "recipes/" + recipe.name.removePrefix("io.moderne.").replace(".", "/").lowercase()
} else {
recipePath = "recipes/" + recipe.name.removePrefix("org.openrewrite.").replace(".", "/").lowercase()
}
Expand Down Expand Up @@ -499,6 +501,8 @@ class RecipeMarkdownGenerator : Runnable {
recipePath = "recipes/core/" + recipe.name.removePrefix("org.openrewrite.").lowercase()
} else if (recipe.name.contains("io.moderne.ai")) {
recipePath = "recipes/ai/" + recipe.name.removePrefix("io.moderne.ai.").replace(".", "/").lowercase()
} else if (recipe.name.contains("io.moderne")) {
recipePath = "recipes/" + recipe.name.removePrefix("io.moderne.").replace(".", "/").lowercase()
} else {
recipePath = "recipes/" + recipe.name.removePrefix("org.openrewrite.").replace(".", "/").lowercase()
}
Expand Down

0 comments on commit 309b612

Please sign in to comment.