You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feature: Add support for additional PlatyPS MarkdownHelp parameters (#77) (#78)
* Add `AlphabeticParamsOrder`, `ExcludeDontShow`, and `UseFullTypeName`
options to `$PSBPreference.Docs` with default value of `$false` in
`build.properties.ps1`
* Add the same three parameters to `Build-PSBuildMarkdown`
* Pass the same three parameters to `Build-PSBuildMarkdown` from
`IB.tasks.ps1` and `psakeFile.ps1`
* Add the same three parameters to the list of configurable options in
the readme file
Copy file name to clipboardExpand all lines: PowerShellBuild/Public/Build-PSBuildMarkdown.ps1
+31-7Lines changed: 31 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,12 @@ function Build-PSBuildMarkdown {
14
14
The locale to save the markdown docs.
15
15
.PARAMETEROverwrite
16
16
Overwrite existing markdown files and use comment based help as the source of truth.
17
+
.PARAMETERAlphabeticParamsOrder
18
+
Order parameters alphabetically by name in PARAMETERS section. There are 5 exceptions: -Confirm, -WhatIf, -IncludeTotalCount, -Skip, and -First parameters will be the last.
19
+
.PARAMETERExcludeDontShow
20
+
Exclude the parameters marked with `DontShow` in the parameter attribute from the help content.
21
+
.PARAMETERUseFullTypeName
22
+
Indicates that the target document will use a full type name instead of a short name for parameters.
Copy file name to clipboardExpand all lines: README.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -120,6 +120,9 @@ match your environment.
120
120
| $PSBPreference.Help.ConvertReadMeToAboutHelp |`$false`| Convert project readme into the module about file |
121
121
| $PSBPreference.Docs.RootDir |`$projectRoot/docs`| Directory PlatyPS markdown documentation will be saved to |
122
122
| $PSBPreference.Docs.Overwrite |`$false`| Overwrite the markdown files in the docs folder using the comment based help as the source of truth. |
123
+
| $PSBPreference.Docs.AlphabeticParamsOrder |`$false`| Order parameters alphabetically by name in PARAMETERS section. There are 5 exceptions: -Confirm, -WhatIf, -IncludeTotalCount, -Skip, and -First parameters will be the last. |
124
+
| $PSBPreference.Docs.ExcludeDontShow |`$false`| Exclude the parameters marked with `DontShow` in the parameter attribute from the help content. |
125
+
| $PSBPreference.Docs.UseFullTypeName |`$false`| Indicates that the target document will use a full type name instead of a short name for parameters. |
123
126
| $PSBPreference.Publish.PSRepository |`PSGallery`| PowerShell repository name to publish |
124
127
| $PSBPreference.Publish.PSRepositoryApiKey |`$env:PSGALLERY_API_KEY`| API key to authenticate to PowerShell repository with |
125
128
| $PSBPreference.Publish.PSRepositoryCredential |`$null`| Credential to authenticate to PowerShell repository with. Overrides `$psRepositoryApiKey` if defined |
0 commit comments