'@ (ConvertFrom-Markdown -InputObject (Invoke-WebRequest "https://raw.githubusercontent.com/Corsinvest/cv4pve-api-powershell/master/README.md").Content ).Html @'
'@ $progress = 0 $data | ForEach-Object { $progress++ Progress "Create html data $($_.Name)" @"
'@ if (!($_.alias.Length -eq 0)) { @'

Aliases

    '@ $_.alias | ForEach-Object { "
  • $($_.Name)
  • " } @'
'@ } $syntax = FixString($_.syntax | Out-String).Trim() if (!$syntax.Contains('syntaxItem')) { "

Syntax

$syntax
" } if ($_.parameters) { @'

Parameters

'@ $_.parameters.parameter | ForEach-Object { "" } @'
Name Alias Description Required? Pipeline Input Default Value
-$(FixString($_.Name)) $(FixString($_.Aliases)) $(FixString(($_.Description | out-string).Trim()) $true) $(FixString($_.Required)) $(FixString($_.PipelineInput)) $(FixString($_.DefaultValue))
'@ } $inputTypes = $(FixString($_.inputTypes | out-string)) if ($inputTypes.Length -gt 0 -and -not $inputTypes.Contains('inputType')) { "

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • $inputTypes
" } $returnValues = $(FixString($_.returnValues | out-string)) if ($returnValues.Length -gt 0 -and -not $returnValues.StartsWith("returnValue")) { "

Outputs

The output type is the type of the objects that the cmdlet emits.

  • $returnValues
" } $notes = $(FixString($_.alertSet | out-string)) if ($notes.Trim().Length -gt 0) { "

Note

$notes
" } if (($_.examples | Out-String).Trim().Length -gt 0) { @'

Examples

'@ $_.examples.example | ForEach-Object { "$(FixString($_.title.Trim(('-',' ')))) $(FixString($_.code | Out-String).Trim())
$(FixString($_.remarks | Out-String).Trim())
" } @'
'@ } if (($_.relatedLinks | Out-String).Trim().Length -gt 0) { @'

Links

    '@ $_.links | ForEach-Object { "
  • $($_.name)
  • " } @'
'@ } @'
'@ } @'