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
8 changes: 6 additions & 2 deletions PowerShellBuild/Public/Build-PSBuildUpdatableHelp.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ function Build-PSBuildUpdatableHelp {
Path to PlatyPS markdown help files.
.PARAMETER OutputPath
Path to create updatable help .cab file in.
.PARAMETER Module
Name of the module to create a .cab file for. Defaults to the $ModuleName variable from the parent scope.
.EXAMPLE
PS> Build-PSBuildUpdatableHelp -DocsPath ./docs -OutputPath ./Output/UpdatableHelp

Expand All @@ -19,7 +21,9 @@ function Build-PSBuildUpdatableHelp {
[string]$DocsPath,

[parameter(Mandatory)]
[string]$OutputPath
[string]$OutputPath,

[string]$Module = $ModuleName
)

if ($null -ne $IsWindows -and -not $IsWindows) {
Expand All @@ -42,7 +46,7 @@ function Build-PSBuildUpdatableHelp {
foreach ($locale in $helpLocales) {
$cabParams = @{
CabFilesFolder = [IO.Path]::Combine($moduleOutDir, $locale)
LandingPagePath = "$DocsPath/$locale/$ModuleName.md"
LandingPagePath = [IO.Path]::Combine($DocsPath, $locale, "$Module.md")
OutputFolder = $OutputPath
Verbose = $VerbosePreference
}
Expand Down