We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0406644 commit c771df1Copy full SHA for c771df1
1 file changed
src/private/BuildHelp.ps1
@@ -12,13 +12,9 @@ function Build-Help {
12
return
13
}
14
15
- #region Check PlatyPS version requirement
16
- $minVersion = [version]'1.0.1'
17
- $module = Get-Module -ListAvailable -Name Microsoft.PowerShell.PlatyPS | Sort-Object Version -Descending | Select-Object -First 1
18
- if (-not $module -or $module.Version -lt $minVersion) {
19
- throw 'Microsoft.PowerShell.PlatyPS version 1.0.1 or higher is required.'
+ if (-not (Get-Module -Name Microsoft.PowerShell.PlatyPS -ListAvailable)) {
+ throw 'The module Microsoft.PowerShell.PlatyPS must be installed for Markdown documentation to be generated.'
20
21
- #endregion
22
23
$AllCommandHelpFiles = $helpMarkdownFiles | Measure-PlatyPSMarkdown | Where-Object FileType -Match CommandHelp
24
0 commit comments