Skip to content

Commit

Permalink
Green install buttons for addins with autoupdate, blue for everything…
Browse files Browse the repository at this point in the history
… else
  • Loading branch information
on committed Aug 23, 2024
1 parent f16485f commit caa2398
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions generate-readme.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ foreach ($file in $userJsFiles) {
}

$scriptList += " ### $name`n`n"
$scriptList += " - **Install:** "
$scriptList += New-MDImage -Subject "$($file.Name)" -Status "$version" -Color blue -Link "https://git.ntnu.no/M365-Drift/MonkeyMagic/raw/main/$($file.Name)"
$scriptList += " - **Install:** "
if ($autoUpdate) { $color = "green" } else { $color = "blue" }
$scriptList += New-MDImage -Subject "$($file.Name)" -Status "$version" -Color $color -Link "https://git.ntnu.no/M365-Drift/MonkeyMagic/raw/main/$($file.Name)"
if ($author) {
$scriptList += "`n - **Author:** $author`n"
}
Expand Down

0 comments on commit caa2398

Please sign in to comment.