Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Summary
This pull request enhances the handling of online help URIs in the MAML (Microsoft Assistance Markup Language) export process and updates the corresponding tests. The most significant changes include adding support for online help URIs in the MAML output and introducing new test cases to validate this functionality.
Enhancements to MAML export functionality:
src/MamlWriter/MamlHelpers.cs
: Updated theConvertCommandHelpToMamlHelpItems
method to include an online help URI as aNavigationLink
for commands, if available in the metadata. This ensures that the MAML output includes a link to the online version of the command's help documentation.Updates to test cases:
test/Pester/ExportMamlCommandHelp.Tests.ps1
: Modified the test validating the number ofrelatedLinks
for theGet-Date
command to account for the addition of the online help URI, increasing the expected count from 6 to 7.test/Pester/ExportMamlCommandHelp.Tests.ps1
: Added a new test case to verify that the exported MAML file contains the correct online help URI for theGet-Date
command, ensuring the new functionality works as intended.PR Context
Fix #788