Skip to content

Commit e9eafda

Browse files
🩹 [Patch]: Update output messages for clarity in command processing and file listing in Build-PSModuleDocumentation
1 parent d85818b commit e9eafda

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

β€Žscripts/helpers/Build-PSModuleDocumentation.ps1β€Ž

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@
5252
# Get all exported commands from the module
5353
$commands = $moduleInfo.ExportedCommands.Values | Where-Object { $_.CommandType -ne 'Alias' }
5454

55-
Write-Host "::group::Found $($commands.Count) commands to process"
56-
55+
Write-Host "::group::Build docs - Generating markdown help files for $($commands.Count) commands in [$docsOutputFolder]"
5756
foreach ($command in $commands) {
5857
try {
5958
Write-Host "$($command.Name)" -NoNewline
@@ -155,8 +154,8 @@
155154

156155
Write-Host '────────────────────────────────────────────────────────────────────────────────'
157156
Get-ChildItem -Path $docsOutputFolder -Recurse -Force -Include '*.md' | ForEach-Object {
158-
$fileName = $_.Name
159-
Write-Host "::group:: - [$fileName]"
157+
$relPath = [System.IO.Path]::GetRelativePath($docsOutputFolder, $_.FullName)
158+
Write-Host "::group:: - [$relPath]"
160159
Show-FileContent -Path $_
161160
}
162161
}

0 commit comments

Comments
Β (0)