Skip to content

Commit

Permalink
SqlServerDsc: Replaced inline task Package_Wiki_Content (#2034)
Browse files Browse the repository at this point in the history
- SqlServerDsc
  - Replaced inline task `Package_Wiki_Content` with the one now available
    in the module DscResource.DocGenerator.
  • Loading branch information
johlju authored Jun 1, 2024
1 parent 55926f1 commit fa20deb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 33 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
34 changes: 1 addition & 33 deletions build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 #
####################################################
Expand Down

0 comments on commit fa20deb

Please sign in to comment.