Skip to content

Commit

Permalink
gen
Browse files Browse the repository at this point in the history
  • Loading branch information
on committed Aug 15, 2024
1 parent eede657 commit 261283e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions generate-readme.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ $regEx = [regex]'\/\/\s+@(\w+)\s+(.+)'
# Initialize an array to hold the table rows
$tableRows = @()

$tableRows = "| Filename | Name | Description |"
$tableRows += "|----------|------|-------------|"
$tableRows = "`n| Filename | Name | Description |`n"
$tableRows += "|----------|------|-------------|`n"

# Loop through each file
foreach ($file in $userJsFiles) {
Expand Down Expand Up @@ -45,7 +45,7 @@ foreach ($file in $userJsFiles) {
} while (($i -lt $content.Length) -and (-not $endOfCommentBlock))

# Add the row to the table
$tableRows += "| [$($file.Name)](https://git.ntnu.no/M365-Drift/MonkeyMagic/raw/main/$($file.Name)) | $name | $description |"
$tableRows += "| [$($file.Name)](https://git.ntnu.no/M365-Drift/MonkeyMagic/raw/main/$($file.Name)) | $name | $description |`n"
}

#$tableRows | ForEach-Object { Write-Output $_ }
Expand Down

0 comments on commit 261283e

Please sign in to comment.