Skip to content

Commit

Permalink
Updating Module Version [0.4.6] and CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
StartAutomating authored and StartAutomating committed Jun 4, 2023
1 parent e7b4254 commit 1473665
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions allcommands.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1636,8 +1636,13 @@ function Save-MarkdownHelp
# otherwise, pass down the parent of $OutputPath.
else { $getMarkdownHelpSplat.GitHubDocRoot = "$($outputPath|Split-Path -Leaf)"}

$markdownTopic = Get-MarkdownHelp @getMarkdownHelpSplat
$markdownFile =
if ($markdownTopic.Save) {
$markdownTopic.Save($docOutputPath)
} else { $null }

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

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

try {
$markdownFile = (Get-MarkdownHelp @getMarkdownHelpSplat).Save($docOutputPath)
$markdownTopic = Get-MarkdownHelp @getMarkdownHelpSplat
$markdownFile =
if ($markdownTopic.Save) {
$markdownTopic.Save($docOutputPath)
} else { $null }
}
catch {
$ex = $_
Expand Down Expand Up @@ -1740,8 +1749,12 @@ function Save-MarkdownHelp
if ($Wiki) { $getMarkdownHelpSplat.Wiki = $Wiki}
else { $getMarkdownHelpSplat.GitHubDocRoot = "$($outputPath|Split-Path -Leaf)"}
# Call Get-MarkdownHelp, .Save it, and
$markdownFile = (& $GetMarkdownHelp @getMarkdownHelpSplat).Save($docOutputPath)

$markdownTopic = Get-MarkdownHelp @getMarkdownHelpSplat
$markdownFile =
if ($markdownTopic.Save) {
$markdownTopic.Save($docOutputPath)
} else { $null }

$filesChanged += $markdownFile # add the file to the changed list.

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

0 comments on commit 1473665

Please sign in to comment.