diff --git a/docfx/report-matrix.ps1 b/docfx/report-matrix.ps1 index d1ce6895..7d0d8903 100644 --- a/docfx/report-matrix.ps1 +++ b/docfx/report-matrix.ps1 @@ -64,8 +64,7 @@ $files = Get-ChildItem -Path $dir -Recurse -Include README.md Write-Host "$($files.Length) found" "# Matrix of Sample Distribution by Tool" | Out-File $ReportFile -Force -"| Sample | PnP
PowerShell | Cli for Microsoft 365
PowerShell | Cli for Microsoft 365
Bash | Graph
SDK | SPO Management
Shell |" | Out-File $reportFile -Append -"|------|:--------:|:--------:|:----------:|:-----------:|:--------:|" | Out-File $reportFile -Append + $matrixRows = @() $sampleCount = 0 @@ -94,7 +93,6 @@ $files | Foreach-Object { $GraphSDK = $false $SPOMS = $false - #Write-Host $content $matchResults = $content | Select-String "#tab/" -AllMatches if($matchResults){ @@ -150,6 +148,9 @@ $files | Foreach-Object { -f $PnPPSCount, $CLIPSCount, $CLIBashCount, $GraphSDKCount, $SPOMSCount, $AllTabs ` | Out-File $reportFile -Append +"| Sample | PnP
PowerShell | Cli for Microsoft 365
PowerShell | Cli for Microsoft 365
Bash | Graph
SDK | SPO Management
Shell |" | Out-File $reportFile -Append +"|------|:--------:|:--------:|:----------:|:-----------:|:--------:|" | Out-File $reportFile -Append + $matrixRows | ForEach-Object{ $row = "| {0} | {1} | {2} | {3} | {4} | {5} |" -f $_.Link, (DispTick $_.PnPPS), (DispTick $_.CLIPS), (DispTick $_.CLIBash), (DispTick $_.GraphSDK), (DispTick $_.SPOMS) @@ -160,4 +161,4 @@ $matrixRows | ForEach-Object{ # Counts $row = "| - | {0} | {1} | {2} | {3} | {4} |" -f $PnPPSCount, $CLIPSCount, $CLIBashCount, $GraphSDKCount, $SPOMSCount -$row | Out-File $reportFile -Append \ No newline at end of file +$row | Out-File $reportFile -Append