Skip to content

Set WikiModuleVersion

dscbot edited this page May 29, 2024 · 2 revisions

Set-WikiModuleVersion

SYNOPSIS

Changes all placeholders (#.#.#) in a markdown file to the specified module version.

SYNTAX

Set-WikiModuleVersion [-Path] <String> [-ModuleVersion] <String> 
 [<CommonParameters>]

DESCRIPTION

Changes all placeholders (#.#.#) in a markdown file to the specified module version.

EXAMPLES

EXAMPLE 1

Set-WikiModuleVersion -Path '.\output\WikiContent\Home.md' -ModuleVersion '14.0.0'

Replaces '#.#.#' with the module version '14.0.0' in the markdown file 'Home.md'.

PARAMETERS

-ModuleVersion

The base name of the Wiki Sidebar file. Defaults to '_Sidebar.md'.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Path

The path to a markdown file to set the module version in.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

RELATED LINKS