Skip to content

Commit 1473665

Browse files
StartAutomatingStartAutomating
authored andcommitted
Updating Module Version [0.4.6] and CHANGELOG
1 parent e7b4254 commit 1473665

1 file changed

Lines changed: 17 additions & 4 deletions

File tree

allcommands.ps1

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1636,8 +1636,13 @@ function Save-MarkdownHelp
16361636
# otherwise, pass down the parent of $OutputPath.
16371637
else { $getMarkdownHelpSplat.GitHubDocRoot = "$($outputPath|Split-Path -Leaf)"}
16381638

1639+
$markdownTopic = Get-MarkdownHelp @getMarkdownHelpSplat
1640+
$markdownFile =
1641+
if ($markdownTopic.Save) {
1642+
$markdownTopic.Save($docOutputPath)
1643+
} else { $null }
16391644

1640-
$markdownFile = (Get-MarkdownHelp @getMarkdownHelpSplat).Save($docOutputPath)
1645+
$filesChanged += $markdownFile
16411646

16421647
if ($PassThru) { # If -PassThru was provided, get the path.
16431648
$markdownFile
@@ -1675,7 +1680,11 @@ function Save-MarkdownHelp
16751680
else { $getMarkdownHelpSplat.GitHubDocRoot = "$($outputPath|Split-Path -Leaf)"}
16761681

16771682
try {
1678-
$markdownFile = (Get-MarkdownHelp @getMarkdownHelpSplat).Save($docOutputPath)
1683+
$markdownTopic = Get-MarkdownHelp @getMarkdownHelpSplat
1684+
$markdownFile =
1685+
if ($markdownTopic.Save) {
1686+
$markdownTopic.Save($docOutputPath)
1687+
} else { $null }
16791688
}
16801689
catch {
16811690
$ex = $_
@@ -1740,8 +1749,12 @@ function Save-MarkdownHelp
17401749
if ($Wiki) { $getMarkdownHelpSplat.Wiki = $Wiki}
17411750
else { $getMarkdownHelpSplat.GitHubDocRoot = "$($outputPath|Split-Path -Leaf)"}
17421751
# Call Get-MarkdownHelp, .Save it, and
1743-
$markdownFile = (& $GetMarkdownHelp @getMarkdownHelpSplat).Save($docOutputPath)
1744-
1752+
$markdownTopic = Get-MarkdownHelp @getMarkdownHelpSplat
1753+
$markdownFile =
1754+
if ($markdownTopic.Save) {
1755+
$markdownTopic.Save($docOutputPath)
1756+
} else { $null }
1757+
17451758
$filesChanged += $markdownFile # add the file to the changed list.
17461759

17471760
# If -PassThru was provided (and we're not going to change anything)

0 commit comments

Comments
 (0)