Skip to content

Commit fa20deb

Browse files
authored
SqlServerDsc: Replaced inline task Package_Wiki_Content (#2034)
- SqlServerDsc - Replaced inline task `Package_Wiki_Content` with the one now available in the module DscResource.DocGenerator.
1 parent 55926f1 commit fa20deb

File tree

2 files changed

+4
-33
lines changed

2 files changed

+4
-33
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414

1515
### Changed
1616

17+
- SqlServerDsc
18+
- Replaced inline task `Package_Wiki_Content` with the one now available
19+
in the module _DscResource.DocGenerator_.
1720
- `Connect-SqlDscDatabaseEngine`
1821
- Update comment-based help with more examples.
1922
- SqlSetup

build.yaml

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,9 @@ BuildWorkflow:
1717
- Check_SqlServer_Availability
1818
- Generate_Conceptual_Help
1919
- Generate_Wiki_Content
20-
- Generate_Markdown_For_Public_Commands
21-
- Generate_External_Help_File_For_Public_Commands
22-
- Clean_Markdown_Of_Public_Commands
2320
- Generate_Wiki_Sidebar
2421
- Clean_Markdown_Metadata
25-
- Package_WikContent
22+
- Package_Wiki_Content
2623

2724
pack:
2825
- build
@@ -56,35 +53,6 @@ BuildWorkflow:
5653
}
5754
}
5855
59-
Package_WikContent: |
60-
{
61-
param
62-
(
63-
$OutputDirectory = (property OutputDirectory (Join-Path $BuildRoot 'output')),
64-
$ProjectName = (property ProjectName $(Get-SamplerProjectName -BuildRoot $BuildRoot)),
65-
$BuildInfo = (property BuildInfo @{ })
66-
)
67-
68-
"`tProject Name = {0}" -f $ProjectName
69-
"`tOutput Directory = {0}" -f $OutputDirectory
70-
71-
$wikiOutputPath = Join-Path -Path $OutputDirectory -ChildPath 'WikiContent'
72-
$wikiArchiveSourcePath = Join-Path -Path $wikiOutputPath -ChildPath '*'
73-
$wikiPackagePath = Join-Path -Path $OutputDirectory -ChildPath 'WikiContent.zip'
74-
75-
"`tWiki Output Path = $wikiOutputPath"
76-
"`tWiki Archive Source Path = $wikiArchiveSourcePath"
77-
"`tWiki Package Path = $wikiPackagePath"
78-
79-
if (-not (Test-Path -Path $wikiOutputPath))
80-
{
81-
throw 'The Wiki Output Path does not exist. Please run the task Generate_Wiki_Content prior to running this task.'
82-
}
83-
84-
# Overwrites any existing archive.
85-
Compress-Archive -Path $wikiArchiveSourcePath -DestinationPath $wikiPackagePath -CompressionLevel 'Optimal' -Force -ErrorAction 'Stop'
86-
}
87-
8856
####################################################
8957
# ModuleBuilder Configuration #
9058
####################################################

0 commit comments

Comments
 (0)