Update the manuals

This commit is contained in:
Markus Fleschutz
2023-07-29 09:55:25 +02:00
parent 46dae1445a
commit d4d37d66dd
554 changed files with 1669 additions and 1667 deletions

View File

@ -51,12 +51,12 @@ function GetRemark { param($Example)
}
try {
if ($filename -eq "") { $filename = read-host "Enter path to PowerShell script" }
if ($filename -eq "") { $filename = Read-Host "Enter path to PowerShell script" }
$ScriptName = (Get-Item "$filename").Name
$full = Get-Help $filename -Full
"## The *$($ScriptName)* Script"
"## Script: *$($ScriptName)*"
$Description = ($full.description | Out-String).Trim()
if ($Description -ne "") {
@ -119,7 +119,7 @@ try {
}
""
"## Source Code"
"## Script Content"
"``````powershell"
$Lines = Get-Content -path "$filename"
foreach($Line in $Lines) {
@ -127,7 +127,8 @@ try {
}
"``````"
""
"*Generated by convert-ps2md.ps1 using the comment-based help of $ScriptName*"
$now = [datetime]::Now
"*(generated by convert-ps2md.ps1 using the comment-based help of $ScriptName as of $now)*"
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1