Skip to content

Commit

Permalink
Update generate_docs.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
tcartwright authored Sep 20, 2021
1 parent 5320125 commit d0ac3a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/generate_docs.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ function New-TableOfContents {
[void]$StringBuilder.AppendLine("|----|----|----|----|----|")
foreach ($rule in ($category.Group | Sort-Object -Property RuleId )) {
$ruleId = "[$($Rule.RuleId)]($($category.Name)/$($Rule.RuleId).md)"
[void]$StringBuilder.AppendLine("| $ruleId | $($Rule.FriendlyName -replace "\|", "|") | $($Rule.IsIgnorable) | $($Rule.Description -replace "\|", "|") | $(if ([string]::IsNullOrWhiteSpace($Rule.Example)) { " " } else { "Yes" }) |")
[void]$StringBuilder.AppendLine("| $ruleId | $($Rule.FriendlyName -replace "\|", "|") | $(if ($Rule.IsIgnorable) { "Yes" } else { " " }) | $($Rule.Description -replace "\|", "|") | $(if ([string]::IsNullOrWhiteSpace($Rule.Example)) { " " } else { "Yes" }) |")
}
}

Expand Down

0 comments on commit d0ac3a7

Please sign in to comment.