external help file | Module Name | online version | schema |
---|---|---|---|
HelpToHtml-help.xml |
HelpToHtml |
2.0.0 |
New-HtmlHelp will create an HTML file of Comment Based Help written for specified PowerShell Cmdlets, Scripts or Modules.
New-HtmlHelp -Module <String> [-RelatedHelp <ArrayList>] [-OutputFolder <String>] [<CommonParameters>]
New-HtmlHelp -Command <String[]> [-RelatedHelp <ArrayList>] [-OutputFolder <String>] [<CommonParameters>]
New-HtmlHelp -Script <String> [-RelatedHelp <ArrayList>] [-OutputFolder <String>] [<CommonParameters>]
This PowerShell Function will create HTML files based on items provided Help. The Funcion use Comment based help written by Functions, Cmdlets, Scripts or Modules provider to create a proper HTML file.
New-HtmlHelp -Module ActiveDirectory
Will create a local HTML file containing all the Cmdlet in ActiveDirectory module and their Comment Based Help content.
New-HtmlHelp -Module ActiveDirectory -RelatedHelp @(
@{ Title = 'Title' UriOrFilePath = 'UriOrFilePath' } )
Will create a local HTML file containing all the Cmdlet in ActiveDirectory module and their Comment Based Help content, with a link with the specified title pointing to the specified path ou Uri.
New-HtmlHelp -Command 'New-Item','Remove-Item'
Will create a local HTML file containing Comment Based Help of Cmdlets New-Item and Remove-Item.
New-HtmlHelp -Command 'New-Item','Remove-Item' -RelatedHelp @(
@{ Title = 'Title' UriOrFilePath = 'UriOrFilePath' } )
Will create a local HTML file containing Comment Based Help of Cmdlets New-Item and Remove-Item, with a link with the specified title pointing to the specified path ou Uri.
New-HtmlHelp -Script .\test.ps1
Will create a local HTML file containing Comment Based Help of the PowerShell Script 'test.ps1'.
New-HtmlHelp -Script .\test.ps1 -RelatedHelp @(
@{ Title = 'Title' UriOrFilePath = 'UriOrFilePath' } )
Will create a local HTML file containing Comment Based Help of the PowerShell Script 'test.ps1', with a link with the specified title pointing to the specified path ou Uri.
Module Name or Path to the PSM1 file.
Type: String
Parameter Sets: Module
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Names of the PowerShell Cmdlets or Functions to create HTML Help for.
Type: String[]
Parameter Sets: Command
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Path to the script to create HTML Help for.
Type: String
Parameter Sets: Script
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Allows you to add links to outside folders ou URL in the HTML output. Parameter value needs to be an ArrayList of Hastables composed as follow: @{ Title = 'Title' UriOrFilePath = 'UriOrFilePath' }
Type: ArrayList
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specify the path to write the HTML file in.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: .
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
Author: Thomas Prud'homme (Blog: https://blog.prudhomme.wtf Tw: @Prudhomme_WTF).