| external help file | PSPublishModule-help.xml |
|---|---|
| Module Name | PSPublishModule |
| online version | https://github.com/EvotecIT/PSPublishModule |
| schema | 2.0.0 |
Copies a module's bundled documentation (Internals, README/CHANGELOG/LICENSE) to a chosen location.
Resolves the module and copies its documentation payload into a destination folder arranged by DocumentationLayout. The payload is the module's delivery Internals folder (or the default Internals folder) plus selected root documentation files such as README, CHANGELOG and LICENSE. Repeat runs can merge, refresh, overwrite, skip or stop based on OnExistsOption. The default Merge mode adds missing files and keeps existing files unless -Force is used. The Refresh mode overwrites package files while keeping local files that are not part of the package. When successful, returns the destination path.
Install-ModuleDocumentation [[-Name] <string>] -Path <string> [-RequiredVersion <version>] [-Layout <DocumentationLayout>] [-OnExists <OnExistsOption>] [-CreateVersionSubfolder] [-Force] [-ListOnly] [-Open] [-NoIntro] [-WhatIf] [-Confirm] [<CommonParameters>]Install-ModuleDocumentation -Path <string> [-Module <psmoduleinfo>] [-RequiredVersion <version>] [-Layout <DocumentationLayout>] [-OnExists <OnExistsOption>] [-CreateVersionSubfolder] [-Force] [-ListOnly] [-Open] [-NoIntro] [-WhatIf] [-Confirm] [<CommonParameters>]Copies a module's bundled documentation (Internals, README/CHANGELOG/LICENSE) to a chosen location.
Resolves the module and copies its documentation payload into a destination folder arranged by DocumentationLayout. The payload is the module's delivery Internals folder (or the default Internals folder) plus selected root documentation files such as README, CHANGELOG and LICENSE. Repeat runs can merge, refresh, overwrite, skip or stop based on OnExistsOption. The default Merge mode adds missing files and keeps existing files unless -Force is used. The Refresh mode overwrites package files while keeping local files that are not part of the package. When successful, returns the destination path.
PS> Install-ModuleDocumentation -Name EFAdminManager -Path C:\\Docs -Layout ModuleAndVersionCopies Internals and selected root files into C:\Docs\EFAdminManager\.
PS> Get-Module -ListAvailable EFAdminManager | Install-ModuleDocumentation -Path C:\\Docs -OnExists Merge -OpenMerges content into an existing destination, preserves existing files, and opens the README (if present) afterwards.
PS> Install-ModuleDocumentation -Name EFAdminManager -Path C:\\Docs -Layout ModuleTargets C:\Docs\EFAdminManager. Use -OnExists Merge to keep existing files.
PS> Install-ModuleDocumentation -Name EFAdminManager -Path C:\\Docs -Layout DirectCopies Internals content straight into C:\Docs.
PS> Install-ModuleDocumentation -Name EFAdminManager -Path C:\\Docs -OnExists OverwriteRemoves the destination before copying. Alternatively, use -OnExists Merge -Force to overwrite individual files.
PS> Install-ModuleDocumentation -Name EFAdminManager -Path C:\\Docs -Layout ModuleAndVersion -ListOnlyShows the folder that would be used for the selected module/version without copying bundled documentation.
PS> New-ConfigurationInformation -IncludeAll 'Internals\\' ; New-ConfigurationDelivery -Enable -InternalsPath 'Internals' -DocumentationOrder '01-Intro.md','02-HowTo.md'Bundles Internals and controls the display order of Docs in viewers.
Legacy toggle equivalent to selecting ModuleAndVersion when set; Direct when not set.
Type: SwitchParameter
Parameter Sets: ByName, ByModule
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueAllow replacement of existing files during merge, and clear read-only attributes when overwrite needs to delete an existing destination.
Type: SwitchParameter
Parameter Sets: ByName, ByModule
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueOutput folder structure strategy. The default, ModuleAndVersion, keeps each module version in its own subfolder.
Type: DocumentationLayout
Parameter Sets: ByName, ByModule
Aliases: None
Possible values: Direct, Module, ModuleAndVersion
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TruePlan only; output the resolved destination path without copying files or changing the destination.
Type: SwitchParameter
Parameter Sets: ByName, ByModule
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueModule object to install documentation for. Alternative to -Name.
Type: PSModuleInfo
Parameter Sets: ByModule
Aliases: InputObject, ModuleInfo
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: TrueModule name to install documentation for.
Type: String
Parameter Sets: ByName
Aliases: ModuleName
Possible values:
Required: False
Position: 0
Default value: None
Accept pipeline input: True (ByValue, ByPropertyName)
Accept wildcard characters: TrueSuppress delivery IntroText or IntroFile output during installation.
Type: SwitchParameter
Parameter Sets: ByName, ByModule
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueBehavior when the destination folder already exists. The default, Merge, adds missing files and preserves existing files unless -Force is used. Refresh overwrites package files without deleting unrelated local files.
Type: OnExistsOption
Parameter Sets: ByName, ByModule
Aliases: None
Possible values: Merge, Overwrite, Skip, Stop, Refresh
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueOpen the resulting folder or README after installation.
Type: SwitchParameter
Parameter Sets: ByName, ByModule
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueBase destination folder where documentation will be written. The final folder also depends on Layout.
Type: String
Parameter Sets: ByName, ByModule
Aliases: None
Possible values:
Required: True
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueExact version to select when multiple module versions are installed.
Type: Version
Parameter Sets: ByName, ByModule
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
System.String System.Management.Automation.PSModuleInfo
System.String
- None