The New-MarkdownHelp cmdlet creates help in markdown format based on a module, a command, or a
file in Microsoft Assistance Markup Language (MAML) format.
The first command loads the PlatyPS module into the current session using the Import-Module
cmdlet.
The second command creates help for all the cmdlets in the PlatyPS module. It stores them in the
.\docs folder. This command specifies the Force parameter. Therefore, it overwrites existing
help markdown files that have the same name.
This command creates help in markdown format for the specified help MAML file. You don't have to
load the module, as in the previous example. If the module is already loaded, this command creates
help based on the MAML file, not on the currently installed module.
Example 4: Create help from an existing MAML file for use in a CAB file
This command creates help in markdown format for the specified help MAML file, as in the previous
example. This command also specifies the WithModulePage parameter and the ModuleName
parameter. The command creates a file named PSReadLine.md that contains links to the other markdown
files in this module and metadata that can be used to create .cab files.
パラメーター
-AlphabeticParamsOrder
Order parameters alphabetically by name in PARAMETERS section. There are 5 exceptions: -Confirm,
-WhatIf, -IncludeTotalCount, -Skip, and -First parameters will be the last. These parameters
are common and hence have well-defined behavior.
パラメーターのプロパティ
型:
SwitchParameter
規定値:
None
ワイルドカードのサポート:
False
DontShow:
False
パラメーター セット
(All)
配置:
Named
必須:
False
パイプラインからの値:
False
プロパティ名別のパイプラインからの値:
False
残りの引数からの値:
False
-Command
Specifies the name of a command in your current session. This can be any command supported by
PowerShell help, such as a cmdlet or a function.
パラメーターのプロパティ
型:
String[]
規定値:
None
ワイルドカードのサポート:
False
DontShow:
False
パラメーター セット
FromCommand
配置:
Named
必須:
True
パイプラインからの値:
False
プロパティ名別のパイプラインからの値:
False
残りの引数からの値:
False
-ConvertDoubleDashLists
Indicates that this cmdlet converts double-hyphen list bullets into single-hyphen bullets.
Double-hyphen lists are common in Windows PowerShell documentation. Markdown accepts single-hyphens
for lists.
パラメーターのプロパティ
型:
SwitchParameter
規定値:
None
ワイルドカードのサポート:
False
DontShow:
False
パラメーター セット
FromMaml
配置:
Named
必須:
False
パイプラインからの値:
False
プロパティ名別のパイプラインからの値:
False
残りの引数からの値:
False
-ConvertNotesToList
Indicates that this cmdlet formats multiple paragraph items in the NOTES section as single list
items.
パラメーターのプロパティ
型:
SwitchParameter
規定値:
None
ワイルドカードのサポート:
False
DontShow:
False
パラメーター セット
FromMaml
配置:
Named
必須:
False
パイプラインからの値:
False
プロパティ名別のパイプラインからの値:
False
残りの引数からの値:
False
-Encoding
Specifies the character encoding for your external help file. Specify a System.Text.Encoding
object. For more information, see
about_Character_Encoding.
パラメーターのプロパティ
型:
Encoding
規定値:
UTF8 without BOM
ワイルドカードのサポート:
False
DontShow:
False
パラメーター セット
(All)
配置:
Named
必須:
False
パイプラインからの値:
False
プロパティ名別のパイプラインからの値:
False
残りの引数からの値:
False
-ExcludeDontShow
Exclude the parameters marked with DontShow in the parameter attribute from the help content.
パラメーターのプロパティ
型:
SwitchParameter
規定値:
None
ワイルドカードのサポート:
False
DontShow:
False
パラメーター セット
(All)
配置:
Named
必須:
False
パイプラインからの値:
False
プロパティ名別のパイプラインからの値:
False
残りの引数からの値:
False
-Force
Indicates that this cmdlet overwrites existing files that have the same names.
パラメーターのプロパティ
型:
SwitchParameter
規定値:
None
ワイルドカードのサポート:
False
DontShow:
False
パラメーター セット
(All)
配置:
Named
必須:
False
パイプラインからの値:
False
プロパティ名別のパイプラインからの値:
False
残りの引数からの値:
False
-FwLink
Specifies the forward link for the module page. This value is required for .cab file creation.
This value is used as markdown header metadata in the module page.
パラメーターのプロパティ
型:
String
規定値:
None
ワイルドカードのサポート:
False
DontShow:
False
パラメーター セット
FromModule
配置:
Named
必須:
False
パイプラインからの値:
False
プロパティ名別のパイプラインからの値:
False
残りの引数からの値:
False
FromMaml
配置:
Named
必須:
False
パイプラインからの値:
False
プロパティ名別のパイプラインからの値:
False
残りの引数からの値:
False
-HelpVersion
Specifies the version of your help. This value is required for .cab file creation. This value is
used as markdown header metadata in the module page.
パラメーターのプロパティ
型:
String
規定値:
None
ワイルドカードのサポート:
False
DontShow:
False
パラメーター セット
FromModule
配置:
Named
必須:
False
パイプラインからの値:
False
プロパティ名別のパイプラインからの値:
False
残りの引数からの値:
False
FromMaml
配置:
Named
必須:
False
パイプラインからの値:
False
プロパティ名別のパイプラインからの値:
False
残りの引数からの値:
False
-Locale
Specifies the locale of your help. This value is required for .cab file creation. This value is used
as markdown header metadata in the module page.
パラメーターのプロパティ
型:
String
規定値:
None
ワイルドカードのサポート:
False
DontShow:
False
パラメーター セット
FromModule
配置:
Named
必須:
False
パイプラインからの値:
False
プロパティ名別のパイプラインからの値:
False
残りの引数からの値:
False
FromMaml
配置:
Named
必須:
False
パイプラインからの値:
False
プロパティ名別のパイプラインからの値:
False
残りの引数からの値:
False
-MamlFile
Specifies an array of paths path of MAML .xml help files.
パラメーターのプロパティ
型:
String[]
規定値:
None
ワイルドカードのサポート:
False
DontShow:
False
パラメーター セット
FromMaml
配置:
Named
必須:
True
パイプラインからの値:
False
プロパティ名別のパイプラインからの値:
False
残りの引数からの値:
False
-Metadata
Specifies metadata that this cmdlet includes in the help markdown files as a hash table of
string-to-sting key-value pairs. This cmdlet writes the metadata in the header of each markdown help
file.
The New-ExternalHelp cmdlet doesn't use this metadata. External tools can use this metadata.
パラメーターのプロパティ
型:
Hashtable
規定値:
None
ワイルドカードのサポート:
False
DontShow:
False
パラメーター セット
(All)
配置:
Named
必須:
False
パイプラインからの値:
False
プロパティ名別のパイプラインからの値:
False
残りの引数からの値:
False
-Module
Specifies an array of names of modules for which this cmdlet creates help in markdown format.
パラメーターのプロパティ
型:
String[]
規定値:
None
ワイルドカードのサポート:
False
DontShow:
False
パラメーター セット
FromModule
配置:
Named
必須:
True
パイプラインからの値:
True
プロパティ名別のパイプラインからの値:
False
残りの引数からの値:
False
-ModuleGuid
Specifies the GUID of the module of your help. This value is required for .cab file creation. This
value is used as markdown header metadata in the module page.
パラメーターのプロパティ
型:
String
規定値:
None
ワイルドカードのサポート:
False
DontShow:
False
パラメーター セット
FromMaml
配置:
Named
必須:
False
パイプラインからの値:
False
プロパティ名別のパイプラインからの値:
False
残りの引数からの値:
False
-ModuleName
Specifies the name of the module of your help. This value is required for .cab file creation. This
value is used as markdown header metadata in the module page.
パラメーターのプロパティ
型:
String
規定値:
None
ワイルドカードのサポート:
False
DontShow:
False
パラメーター セット
FromMaml
配置:
Named
必須:
False
パイプラインからの値:
False
プロパティ名別のパイプラインからの値:
False
残りの引数からの値:
False
-ModulePagePath
When WithModule parameter is used by default it puts .md file in same location as all other
docs. With this parameter you can specify new name/location providing better placement options.
パラメーターのプロパティ
型:
String
規定値:
None
ワイルドカードのサポート:
False
DontShow:
False
パラメーター セット
FromModule
配置:
Named
必須:
False
パイプラインからの値:
False
プロパティ名別のパイプラインからの値:
False
残りの引数からの値:
False
FromMaml
配置:
Named
必須:
False
パイプラインからの値:
False
プロパティ名別のパイプラインからの値:
False
残りの引数からの値:
False
-NoMetadata
Indicates that this cmdlet doesn't write any metadata in the generated markdown.
パラメーターのプロパティ
型:
SwitchParameter
規定値:
None
ワイルドカードのサポート:
False
DontShow:
False
パラメーター セット
(All)
配置:
Named
必須:
False
パイプラインからの値:
False
プロパティ名別のパイプラインからの値:
False
残りの引数からの値:
False
-OnlineVersionUrl
Specifies the address where the updatable help function downloads updated help. If you don't specify
a value, the cmdlet uses an empty string.
パラメーターのプロパティ
型:
String
規定値:
None
ワイルドカードのサポート:
False
DontShow:
False
パラメーター セット
FromCommand
配置:
Named
必須:
False
パイプラインからの値:
False
プロパティ名別のパイプラインからの値:
False
残りの引数からの値:
False
-OutputFolder
Specifies the path of the folder where this cmdlet creates the markdown help files.
パラメーターのプロパティ
型:
String
規定値:
None
ワイルドカードのサポート:
False
DontShow:
False
パラメーター セット
(All)
配置:
Named
必須:
True
パイプラインからの値:
False
プロパティ名別のパイプラインからの値:
False
残りの引数からの値:
False
-Session
Provides support for remote commands. Pass the session that you used to create the commands with
Import-PSSession. This is required to get accurate parameters metadata from the remote session.
パラメーターのプロパティ
型:
PSSession
規定値:
None
ワイルドカードのサポート:
False
DontShow:
False
パラメーター セット
FromModule
配置:
Named
必須:
False
パイプラインからの値:
False
プロパティ名別のパイプラインからの値:
False
残りの引数からの値:
False
FromCommand
配置:
Named
必須:
False
パイプラインからの値:
False
プロパティ名別のパイプラインからの値:
False
残りの引数からの値:
False
-UseFullTypeName
Indicates that the target document will use a full type name instead of a short name for parameters.
パラメーターのプロパティ
型:
SwitchParameter
規定値:
None
ワイルドカードのサポート:
False
DontShow:
False
パラメーター セット
(All)
配置:
Named
必須:
False
パイプラインからの値:
False
プロパティ名別のパイプラインからの値:
False
残りの引数からの値:
False
-WithModulePage
Indicates that this cmdlet creates a module page in the output folder. This file has the name that
the ModuleName parameter specifies. If you didn't specify that parameter, the cmdlet supplies
the default name MamlModule. You can overwrite this setting using ModulePagePath which allows
you to define different path for module page
パラメーターのプロパティ
型:
SwitchParameter
規定値:
None
ワイルドカードのサポート:
False
DontShow:
False
パラメーター セット
FromModule
配置:
Named
必須:
False
パイプラインからの値:
False
プロパティ名別のパイプラインからの値:
False
残りの引数からの値:
False
FromMaml
配置:
Named
必須:
False
パイプラインからの値:
False
プロパティ名別のパイプラインからの値:
False
残りの引数からの値:
False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters.
入力
String
You can pipe module names to this cmdlet. These are the modules from which this cmdlet creates help
markdown.