Skip to content

Commit

Permalink
Change data table styling
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-solomon committed Jul 2, 2024
1 parent 766a2ca commit 3211a10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/kotlin/org/openrewrite/RecipeMarkdownGenerator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class RecipeMarkdownGenerator : Runnable {
lateinit var diffFileName: String

// These are common in every recipe - so let's not document them everywhere.
val dataTablesToIgnore = listOf(
private val dataTablesToIgnore = listOf(
"org.openrewrite.table.SourcesFileResults",
"org.openrewrite.table.SourcesFileErrors",
"org.openrewrite.table.RecipeRunStats"
Expand Down Expand Up @@ -308,14 +308,14 @@ class RecipeMarkdownGenerator : Runnable {
writeln("# Recipes with Data Tables\n")

for (recipe in recipesWithDataTables) {
writeln("* [${recipe.displayName}](https://docs.openrewrite.org/?q=${recipe.name}): ${recipe.description.replace("\n", " ")}\n")
writeln("**[${recipe.displayName}](https://docs.openrewrite.org/?q=${recipe.name})**: ${recipe.description}\n")

val filteredDataTables = recipe.dataTables.filter { dataTable ->
dataTable.name !in dataTablesToIgnore
}

for (dataTable in filteredDataTables){
writeln(" * **${dataTable.name}**: ${dataTable.description.replace("\n", " ")}")
writeln(" * ${dataTable.name}: *${dataTable.description.replace("\n", " ")}*")
}

writeln("\n")
Expand Down

0 comments on commit 3211a10

Please sign in to comment.