diff --git a/CHANGELOG.md b/CHANGELOG.md index 7327f8665..25535db93 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- SqlServerDsc + - Replaced inline task `Package_Wiki_Content` with the one now available + in the module _DscResource.DocGenerator_. - `Connect-SqlDscDatabaseEngine` - Update comment-based help with more examples. - SqlSetup diff --git a/build.yaml b/build.yaml index 542ba55d7..4870bf191 100644 --- a/build.yaml +++ b/build.yaml @@ -17,12 +17,9 @@ BuildWorkflow: - Check_SqlServer_Availability - Generate_Conceptual_Help - Generate_Wiki_Content - - Generate_Markdown_For_Public_Commands - - Generate_External_Help_File_For_Public_Commands - - Clean_Markdown_Of_Public_Commands - Generate_Wiki_Sidebar - Clean_Markdown_Metadata - - Package_WikContent + - Package_Wiki_Content pack: - build @@ -56,35 +53,6 @@ BuildWorkflow: } } - Package_WikContent: | - { - param - ( - $OutputDirectory = (property OutputDirectory (Join-Path $BuildRoot 'output')), - $ProjectName = (property ProjectName $(Get-SamplerProjectName -BuildRoot $BuildRoot)), - $BuildInfo = (property BuildInfo @{ }) - ) - - "`tProject Name = {0}" -f $ProjectName - "`tOutput Directory = {0}" -f $OutputDirectory - - $wikiOutputPath = Join-Path -Path $OutputDirectory -ChildPath 'WikiContent' - $wikiArchiveSourcePath = Join-Path -Path $wikiOutputPath -ChildPath '*' - $wikiPackagePath = Join-Path -Path $OutputDirectory -ChildPath 'WikiContent.zip' - - "`tWiki Output Path = $wikiOutputPath" - "`tWiki Archive Source Path = $wikiArchiveSourcePath" - "`tWiki Package Path = $wikiPackagePath" - - if (-not (Test-Path -Path $wikiOutputPath)) - { - throw 'The Wiki Output Path does not exist. Please run the task Generate_Wiki_Content prior to running this task.' - } - - # Overwrites any existing archive. - Compress-Archive -Path $wikiArchiveSourcePath -DestinationPath $wikiPackagePath -CompressionLevel 'Optimal' -Force -ErrorAction 'Stop' - } - #################################################### # ModuleBuilder Configuration # ####################################################