@@ -196,19 +196,11 @@ task cleanModule -if (Test-Path $outPath) {
196
196
197
197
$docsPath = Join-Path $BuildRoot ' docs'
198
198
$outputDocsPath = Join-Path $modulePath ' en-US'
199
- $bdInputs = { Get-ChildItem $docsPath - File - Recurse}
199
+ $bdInputs = ( Get-ChildItem $docsPath - File - Recurse)
200
200
$bdOutputs = @ (
201
- " $outputDocsPath /about_PSScriptAnalyzer.help.txt" ,
202
- " $outputDocsPath /Microsoft.Windows.PowerShell.ScriptAnalyzer.dll-Help.xml"
203
- )
204
-
205
- # $buildDocsParams = @{
206
- # Inputs = (Get-ChildItem $docsPath -File -Recurse)
207
- # Outputs = @(
208
- # "$outputDocsPath/about_PSScriptAnalyzer.help.txt",
209
- # "$outputDocsPath/Microsoft.Windows.PowerShell.ScriptAnalyzer.dll-Help.xml"
210
- # )
211
- # }
201
+ " $outputDocsPath /about_PSScriptAnalyzer.help.txt" ,
202
+ " $outputDocsPath /Microsoft.Windows.PowerShell.ScriptAnalyzer.dll-Help.xml"
203
+ )
212
204
213
205
task buildDocs - Inputs $bdInputs - Outputs $bdOutputs {
214
206
# todo move common variables to script scope
@@ -219,12 +211,10 @@ task buildDocs -Inputs $bdInputs -Outputs $bdOutputs {
219
211
Copy-Item - Path $docsPath \about_PSScriptAnalyzer.help.txt - Destination $outputDocsPath - Force
220
212
221
213
# Build documentation using platyPS
222
- if ((Get-Module PlatyPS - ListAvailable - Verbose: $verbosity ) -eq $null ) {
214
+ if ((Get-Module PlatyPS - ListAvailable) -eq $null ) {
223
215
throw " Cannot find PlatyPS. Please install it from https://www.powershellgallery.com."
224
216
}
225
- if ((Get-Module PlatyPS - Verbose:$verbosity ) -eq $null ) {
226
- Import-Module PlatyPS - Verbose:$verbosity
227
- }
217
+ Import-Module PlatyPS
228
218
if (-not (Test-Path $markdownDocsPath - Verbose:$verbosity )) {
229
219
throw " Cannot find markdown documentation folder."
230
220
}
0 commit comments