From 8fc566f92e9a79b411bfa78d90c459cd2e0f815d Mon Sep 17 00:00:00 2001 From: Paul Wilcox Date: Sun, 13 Dec 2020 10:11:49 +0000 Subject: [PATCH 1/4] Updated 'New-WikiFooter' to replace '([System.Text.Encoding]::ASCII)' with 'ascii'. --- source/Private/New-WikiFooter.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Private/New-WikiFooter.ps1 b/source/Private/New-WikiFooter.ps1 index 75026a1..a8ff8c3 100644 --- a/source/Private/New-WikiFooter.ps1 +++ b/source/Private/New-WikiFooter.ps1 @@ -35,6 +35,6 @@ function New-WikiFooter $wikiFooter = @() - Out-File -InputObject $wikiFooter -FilePath $wikiFooterPath -Encoding ([System.Text.Encoding]::ASCII) + Out-File -InputObject $wikiFooter -FilePath $wikiFooterPath -Encoding 'ascii' } } From d903e7ab6727b36bbaeee25ddac6d46116f6c8b0 Mon Sep 17 00:00:00 2001 From: Paul Wilcox Date: Sun, 13 Dec 2020 10:12:05 +0000 Subject: [PATCH 2/4] Updated 'New-WikiSidebar' to replace '([System.Text.Encoding]::ASCII)' with 'ascii'. --- source/Private/New-WikiSidebar.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Private/New-WikiSidebar.ps1 b/source/Private/New-WikiSidebar.ps1 index 6688896..9ba69a9 100644 --- a/source/Private/New-WikiSidebar.ps1 +++ b/source/Private/New-WikiSidebar.ps1 @@ -54,5 +54,5 @@ function New-WikiSidebar $WikiSidebarContent += "- [$($file.BaseName)]($($file.BaseName))" } - Out-File -InputObject $WikiSidebarContent -FilePath $wikiSideBarPath -Encoding ([System.Text.Encoding]::ASCII) + Out-File -InputObject $WikiSidebarContent -FilePath $wikiSideBarPath -Encoding 'ascii' } From 2047e8ab8d5c0ec7c8bd896974b91c3220c218ba Mon Sep 17 00:00:00 2001 From: Paul Wilcox Date: Sun, 13 Dec 2020 10:12:28 +0000 Subject: [PATCH 3/4] Updated 'Set-WikiModuleVersion' to replace '([System.Text.Encoding]::ASCII)' with 'ascii'. --- source/Public/Set-WikiModuleVersion.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Public/Set-WikiModuleVersion.ps1 b/source/Public/Set-WikiModuleVersion.ps1 index 963e2bb..ce36bdb 100644 --- a/source/Public/Set-WikiModuleVersion.ps1 +++ b/source/Public/Set-WikiModuleVersion.ps1 @@ -35,5 +35,5 @@ function Set-WikiModuleVersion $markdownContent = $markdownContent -replace '#\.#\.#', $ModuleVersion - Out-File -InputObject $markdownContent -FilePath $Path -Encoding ([System.Text.Encoding]::ASCII) -NoNewline + Out-File -InputObject $markdownContent -FilePath $Path -Encoding 'ascii' -NoNewline } From 4bb9b835b7377ebe8b98cf2127bf2a19e315b9cb Mon Sep 17 00:00:00 2001 From: Paul Wilcox Date: Sun, 13 Dec 2020 10:22:48 +0000 Subject: [PATCH 4/4] Updated 'CHANGELOG.md' too include issue #45 fixes. --- CHANGELOG.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7fbbb14..2c904a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed + +- New-WikiFooter + - Fixed `Encoding`, parameter value passed to `Out-File` to use `ascii` rather + than `[System.Text.Encoding]::ASCII` ([issue #45](https://github.com/dsccommunity/DscResource.DocGenerator/issues/45)). + +- New-WikiSidebar + - Fixed `Encoding`, parameter value passed to `Out-File` to use `ascii` rather + than `[System.Text.Encoding]::ASCII` ([issue #45](https://github.com/dsccommunity/DscResource.DocGenerator/issues/45)). + +- Set-WikiModuleVersion + - Fixed `Encoding`, parameter value passed to `Out-File` to use `ascii` rather + than `[System.Text.Encoding]::ASCII` ([issue #45](https://github.com/dsccommunity/DscResource.DocGenerator/issues/45)). + ## [0.7.1] - 2020-08-05 ### Fixed