Skip to content

Instantly share code, notes, and snippets.

@Sarafian
Created January 16, 2017 12:06
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Sarafian/f6df9af26c365b34dda496d9dfad1043 to your computer and use it in GitHub Desktop.
Export a module's documentation in markdown
#requires -module platyPS
<#
.SYNOPSIS
Export a module's documentation in markdown.
.DESCRIPTION
Export a module's documentation in markdown.
.EXAMPLE
./Export-ModuleDocumentation.ps1 -Module MarkdownPS
#>
param(
[Parameter(Mandatory=$true)]
[string]$Module
)
$exportPath=Join-Path $env:TEMP "$($Module)Documentiation"
Remove-Item $exportPath -Force -Recurse -ErrorAction SilentlyContinue
$null=New-Item -Path $exportPath -ItemType Directory
New-MarkdownHelp -Module Team -OutputFolder $exportPath -NoMetadata -Force
Write-Host "Module help exported in $exportPath"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment