platyPS icon indicating copy to clipboard operation
platyPS copied to clipboard

build.ps1 forces you to close & re-open PowerShell to re-build

Open daviesj opened this issue 4 years ago • 1 comments

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 avatar Mar 05 '20 20:03 daviesj

@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.

theJasonHelmick avatar Jul 27 '21 15:07 theJasonHelmick

No longer applies with Microsoft.PowerShell.PlatyPS v1.0

theJasonHelmick avatar May 24 '24 16:05 theJasonHelmick