| external help file | PSPublishModule-help.xml |
|---|---|
| Module Name | PSPublishModule |
| online version | https://github.com/EvotecIT/PSPublishModule |
| schema | 2.0.0 |
Displays module documentation (README, CHANGELOG, LICENSE, Intro/Upgrade) in the console.
Resolves documentation files from an installed module (root or Internals folder) and renders them with Spectre.Console. When local files are absent or when requested, it can fetch files directly from the module's repository specified by PrivateData.PSData.ProjectUri (GitHub or Azure DevOps), optionally using a Personal Access Token.
Show-ModuleDocumentation [[-Name] <string>] [-RequiredVersion <version>] [-File <string>] [-PreferInternals] [-Open] [-HeadingRules <string>] [-OutputPath <string>] [-DoNotShow] [-DisableTokenizer] [-SkipDependencies] [-SkipCommands] [-Fast] [-MaxCommands <int>] [-HelpTimeoutSeconds <int>] [-HelpAsCode] [-ExamplesMode <string>] [-ExamplesLayout <string>] [-RepositoryBranch <string>] [-RepositoryToken <string>] [-RepositoryPaths <string[]>] [-Online] [-Mode <string>] [-ShowDuplicates] [<CommonParameters>]Show-ModuleDocumentation [-Module <psmoduleinfo>] [-RequiredVersion <version>] [-File <string>] [-PreferInternals] [-Open] [-HeadingRules <string>] [-OutputPath <string>] [-DoNotShow] [-DisableTokenizer] [-SkipDependencies] [-SkipCommands] [-Fast] [-MaxCommands <int>] [-HelpTimeoutSeconds <int>] [-HelpAsCode] [-ExamplesMode <string>] [-ExamplesLayout <string>] [-RepositoryBranch <string>] [-RepositoryToken <string>] [-RepositoryPaths <string[]>] [-Online] [-Mode <string>] [-ShowDuplicates] [<CommonParameters>]Show-ModuleDocumentation [-DocsPath <string>] [-File <string>] [-PreferInternals] [-Open] [-HeadingRules <string>] [-OutputPath <string>] [-DoNotShow] [-DisableTokenizer] [-SkipDependencies] [-SkipCommands] [-Fast] [-MaxCommands <int>] [-HelpTimeoutSeconds <int>] [-HelpAsCode] [-ExamplesMode <string>] [-ExamplesLayout <string>] [-RepositoryBranch <string>] [-RepositoryToken <string>] [-RepositoryPaths <string[]>] [-Online] [-Mode <string>] [-ShowDuplicates] [<CommonParameters>]Show-ModuleDocumentation [-ModuleBase <string>] [-File <string>] [-PreferInternals] [-Open] [-HeadingRules <string>] [-OutputPath <string>] [-DoNotShow] [-DisableTokenizer] [-SkipDependencies] [-SkipCommands] [-Fast] [-MaxCommands <int>] [-HelpTimeoutSeconds <int>] [-HelpAsCode] [-ExamplesMode <string>] [-ExamplesLayout <string>] [-RepositoryBranch <string>] [-RepositoryToken <string>] [-RepositoryPaths <string[]>] [-Online] [-Mode <string>] [-ShowDuplicates] [<CommonParameters>]Displays module documentation (README, CHANGELOG, LICENSE, Intro/Upgrade) in the console.
Resolves documentation files from an installed module (root or Internals folder) and renders them with Spectre.Console. When local files are absent or when requested, it can fetch files directly from the module's repository specified by PrivateData.PSData.ProjectUri (GitHub or Azure DevOps), optionally using a Personal Access Token.
Show-ModuleDocumentation -DocsPath 'C:\Path'Disable code tokenizers and render code fences as plain text.
Type: SwitchParameter
Parameter Sets: ByName, ByModule, ByPath, ByBase
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueDirect path to a documentation folder containing README/CHANGELOG/etc.
Type: String
Parameter Sets: ByPath
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueDo not open the generated HTML after export.
Type: SwitchParameter
Parameter Sets: ByName, ByModule, ByPath, ByBase
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueControls how examples are rendered: ProseFirst (remarks then code), MamlDefault (code then remarks), or AllAsCode. Default is ProseFirst.
Type: String
Parameter Sets: ByName, ByModule, ByPath, ByBase
Aliases: None
Possible values: MamlDefault, ProseFirst, AllAsCode
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueControls how Examples are sourced. Raw = parse the EXAMPLES section from Get-Help text; Maml = use structured help object; Auto = Raw then Maml.
Type: String
Parameter Sets: ByName, ByModule, ByPath, ByBase
Aliases: None
Possible values: Auto, Raw, Maml
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueConvenience switch equal to -SkipRemote -SkipDependencies -SkipCommands.
Type: SwitchParameter
Parameter Sets: ByName, ByModule, ByPath, ByBase
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueShow a specific file by name (relative to module root or Internals) or full path.
Type: String
Parameter Sets: ByName, ByModule, ByPath, ByBase
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueHeading rulers style. H1AndH2 draws rules for H1/H2, H1 for H1 only, None disables.
Type: String
Parameter Sets: ByName, ByModule, ByPath, ByBase
Aliases: None
Possible values: None, H1, H1AndH2
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueRender command help inside fenced code blocks for uniform monospace formatting.
Type: SwitchParameter
Parameter Sets: ByName, ByModule, ByPath, ByBase
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TruePer-command Get-Help timeout in seconds. Default 3.
Type: Int32
Parameter Sets: ByName, ByModule, ByPath, ByBase
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueLimit the number of commands rendered in the Commands tab. Default 100.
Type: Int32
Parameter Sets: ByName, ByModule, ByPath, ByBase
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueSelection policy for standard tabs when Local and Remote exist (applies only when -Online): PreferLocal (default), PreferRemote, or All.
Type: String
Parameter Sets: ByName, ByModule, ByPath, ByBase
Aliases: None
Possible values: PreferLocal, PreferRemote, All
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueModule object to display 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: TruePath to a module root (folder that contains the module manifest). Useful for unpacked builds.
Type: String
Parameter Sets: ByBase
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueModule name to display 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: TrueEnable repository access (fetch remote docs using manifest defaults or -Repository* overrides).
Type: SwitchParameter
Parameter Sets: ByName, ByModule, ByPath, ByBase
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueOpen the generated HTML in the default shell handler after export.
Type: SwitchParameter
Parameter Sets: ByName, ByModule, ByPath, ByBase
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueOutput location for the generated HTML. Accepts a file path or an existing directory. Defaults to temp when omitted.
Type: String
Parameter Sets: ByName, ByModule, ByPath, ByBase
Aliases: Path, ExportHtmlPath
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TruePrefer Internals folder over module root when both contain the same file kind.
Type: SwitchParameter
Parameter Sets: ByName, ByModule, ByPath, ByBase
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueBranch name to use when fetching remote docs. If omitted, the provider default branch is used.
Type: String
Parameter Sets: ByName, ByModule, ByPath, ByBase
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueRepository-relative folders to enumerate and display (e.g., 'docs', 'articles'). Only .md/.markdown/.txt files are rendered.
Type: String[]
Parameter Sets: ByName, ByModule, ByPath, ByBase
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TruePersonal Access Token for private repositories. Alternatively set environment variables: GitHub: PG_GITHUB_TOKEN or GITHUB_TOKEN; Azure DevOps: PG_AZDO_PAT or AZURE_DEVOPS_EXT_PAT.
Type: String
Parameter Sets: ByName, ByModule, ByPath, ByBase
Aliases: None
Possible values:
Required: False
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: TrueShow both variants even when content is identical (root vs internals and local vs remote).
Type: SwitchParameter
Parameter Sets: ByName, ByModule, ByPath, ByBase
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueSkip building the Commands tab (fast export).
Type: SwitchParameter
Parameter Sets: ByName, ByModule, ByPath, ByBase
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueSkip building the dependency list and graph.
Type: SwitchParameter
Parameter Sets: ByName, ByModule, ByPath, ByBase
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.Object
- None