Paul Vaillant

ConvertTo-HelpMarkdown

Gets the help content for a command name, or path to .ps1 file, and converts it to a markdown file.

Syntax

ConvertTo-HelpMarkdown.ps1 [-Command] <String> [-FrontMatter] [[-OutputDir] <String>] [-Index] [<CommonParameters>]

Parameters

NameDescriptionRequired?Pipeline Input?Default Value
CommandName of a cmdlet or path to a .ps1 filetruetrue (ByValue)
FrontMatterSpecify to include Jekyll compatible Front Matter in the outputfalsefalseFalse
OutputDirDirectory where to output the filesfalsefalse./help
IndexSpecify to generate an index.md file with links to all the help files generatedfalsefalseFalse

Notes

Version 1.0.1 (2015-05-14)
Written by Paul Vaillant
Inspired by Out-HTML http://poshcode.org/1612

Examples

EXAMPLE 1

ls .\content\*.ps1 | ConvertTo-HelpMarkdown.ps1 -FrontMatter -Index

Generate markdown help for all the script files in the content directory of a Jekyll site