Update the manuals in Docs/

This commit is contained in:
Markus Fleschutz
2022-11-17 20:02:26 +01:00
parent 4dac9cf2b1
commit 7f79a2afbb
515 changed files with 20228 additions and 517 deletions

View File

@ -52,18 +52,20 @@ function GetRemark { param($Example)
try {
if ($filename -eq "") { $filename = read-host "Enter path to PowerShell script" }
$ScriptName = (get-item "$filename").Name
$ScriptName = (Get-Item "$filename").Name
$full = Get-Help $filename -Full
"## $ScriptName - $($full.Synopsis)"
"## The $ScriptName PowerShell Script"
$Description = ($full.description | Out-String).Trim()
if ($Description -ne "") {
""
"$Description"
} else {
""
"$($full.Synopsis)"
}
""
"## Parameters"
"``````powershell"
@ -116,6 +118,12 @@ try {
"$Links"
}
""
"## Source Code"
$Lines = Get-Content -path "$filename"
foreach($Line in $Lines) {
"$Line"
}
""
"*Generated by convert-ps2md.ps1 using the comment-based help of $ScriptName*"
} catch {