From 4d96b81704fbcdb97fbead8a3f7aaf05e9240b17 Mon Sep 17 00:00:00 2001 From: Bernie White Date: Mon, 2 Jul 2018 12:11:36 +1000 Subject: [PATCH] Updates for v0.5.0 release (#36) * Updated change log preparing for release * Updated appveyor conifg --- CHANGELOG.md | 4 +++- PSDocs.build.ps1 | 2 +- appveyor.yml | 2 +- src/PSDocs/PSDocsProcessor/Markdown/Markdown.psm1 | 8 ++++---- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 595fca0..a2a42e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ ## Unreleased +## v0.5.0 + - Fix to prevent string builder properties being outputted each time `Invoke-PSDocument` is called - Added support for property expressions with the `Table` keyword [#27](https://github.com/BernieWhite/PSDocs/issues/27) - **Important change**: Deprecated support for using `Invoke-PSDocument` with inline document definitions @@ -10,7 +12,7 @@ - This is the recommended way to build documents going forward - Added support for providing options for `Invoke-PSDocument` using YAML, see `about_PSDocs_Options` - **Breaking change**: Empty `Section` blocks are not rendered by default [#32](https://github.com/BernieWhite/PSDocs/issues/32) - - Use `-Force` parameter on specific sections or `Markdown.SkipEmptySections = $False` option to force the empty sections to written + - Use `-Force` parameter on specific sections or `Markdown.SkipEmptySections = $False` option to force empty sections to be written ## v0.4.0 diff --git a/PSDocs.build.ps1 b/PSDocs.build.ps1 index 4ccd9a1..e83c878 100644 --- a/PSDocs.build.ps1 +++ b/PSDocs.build.ps1 @@ -34,7 +34,7 @@ function CopyModuleFiles { if (!(Test-Path -Path $parentPath)) { $Null = New-Item -Path $parentPath -ItemType Directory -Force; } - + Copy-Item -Path $_.FullName -Destination $filePath -Force; }; } diff --git a/appveyor.yml b/appveyor.yml index c8510c9..78c4f06 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 0.4.0.{build} +version: 0.5.0.{build} image: Visual Studio 2017 # Only build master branch diff --git a/src/PSDocs/PSDocsProcessor/Markdown/Markdown.psm1 b/src/PSDocs/PSDocsProcessor/Markdown/Markdown.psm1 index 437399b..f63d600 100644 --- a/src/PSDocs/PSDocsProcessor/Markdown/Markdown.psm1 +++ b/src/PSDocs/PSDocsProcessor/Markdown/Markdown.psm1 @@ -93,7 +93,7 @@ function VisitSection { Write-Verbose -Message "[Doc][Processor][Section] END:: [$($section.Node.Length)]"; } -function VisitCode { +function VisitCode { [CmdletBinding()] param ( @@ -143,7 +143,7 @@ function VisitNote { ) Write-Verbose -Message "[Doc][Processor] -- Visit note"; - + VisitString -InputObject ''; VisitString -InputObject '> [!NOTE]'; @@ -161,7 +161,7 @@ function VisitWarning { ) Write-Verbose -Message "[Doc][Processor] -- Visit warning"; - + VisitString -InputObject ''; VisitString -InputObject '> [!WARNING]'; @@ -174,7 +174,7 @@ function VisitMetadata { param ($InputObject) Write-Verbose -Message "[Doc][Processor] -- Visit metadata"; - + VisitString -InputObject '---'; foreach ($kv in $InputObject.Metadata.GetEnumerator()) {