platyPS
platyPS copied to clipboard
build.ps1 forces you to close & re-open PowerShell to re-build
As mentioned in CONTRIBUTING.md, build.ps1
cannot be launched again without closing & re-opening PowerShell if you do anything that would change Markdown.MAML.dll
. I have a suggestion for a way around that: Launch a separate PowerShell process to generate the documentation. Something like the following:
# dogfooding: generate help for the module
if (-not $SkipDocs) {
$PSexe = (Get-Process -Id $PID).Path
&$PSexe -Command {
Import-Module "$pwd\out\platyPS"
New-ExternalHelp docs -OutputPath out\platyPS\en-US -Force
}
}
@daviesj Thank you for the suggestion. While not currently on in our plans, I think this is useful. I will investigate for a possible future release.
No longer applies with Microsoft.PowerShell.PlatyPS v1.0