Update the manuals

This commit is contained in:
Markus Fleschutz
2021-08-29 18:05:09 +02:00
parent e10261351c
commit 793d257d08
252 changed files with 1911 additions and 1760 deletions

View File

@ -52,14 +52,17 @@ function GetRemark { param($Example)
try {
if ($script -eq "") { $script = read-host "Enter path to PowerShell script" }
$ScriptName = (get-item "$script").Name
$full = Get-Help $script -Full -Path D:
$full = Get-Help $script -Full
"# PowerShell Script $script"
"# PowerShell Script $scriptName"
""
"## Synopsis"
"``````powershell"
"$($full.Synopsis)"
"``````"
$Description = ($full.description | Out-String).Trim()
if ($Description -ne "") {
@ -77,10 +80,10 @@ try {
"``````"
}
""
"## Parameters"
foreach($parameter in $full.parameters.parameter) {
""
"## -$($parameter.name) <$($parameter.type.name)> Parameter"
"$(($parameter.description | Out-String).Trim())"
"``````"
"$(((($parameter | Out-String).Trim() -split "`r`n")[-5..-1] | % { $_.Trim() }) -join "`r`n")"
"``````"