Skip to content

Commit 2efb31e

Browse files
🩹 [Patch]: Sort markdown files by name before displaying in Build-PSModuleDocumentation
1 parent 499e4a5 commit 2efb31e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎scripts/helpers/Build-PSModuleDocumentation.ps1‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@
153153
}
154154

155155
Write-Host '────────────────────────────────────────────────────────────────────────────────'
156-
Get-ChildItem -Path $docsOutputFolder -Recurse -Force -Include '*.md' | ForEach-Object {
156+
Get-ChildItem -Path $docsOutputFolder -Recurse -Force -Include '*.md' | Sort-Object FullName | ForEach-Object {
157157
$relPath = [System.IO.Path]::GetRelativePath($docsOutputFolder, $_.FullName)
158158
Write-Host "::group:: - [$relPath]"
159159
Show-FileContent -Path $_

0 commit comments

Comments
 (0)