Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.