Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 0 additions & 35 deletions tools/HelpGeneration/HelpGeneration.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -177,41 +177,6 @@ function Test-AzMarkdownHelp
$fileErrors += "No description found"
}
}
"## EXAMPLES"
{
# Move the index to the start of the PowerShell code
while (-not $content[$idx].StartsWith("``````"))
{
$idx++
if ($idx -ge $content.Length)
{
Write-Error "Could not find start of PowerShell example in file $($file.Name)"
return
}
}

# Check for the platyPS example template
#
# ```
# PS C:\> {{ Add example code here }}
# ```
#
if ($content[$idx+1] -contains "{{ Add example code here }}")
{
$fileErrors += "No examples found"
}

# Check for other missing example formats (such as empty)
#
# ```
#
# ```
#
if ([string]::IsNullOrWhiteSpace("$($content[$idx+1])"))
{
$fileErrors += "No examples found"
}
}
"@{Text=}"
{
# This case occurs when there is no description provided for a parameter
Expand Down