blob: ad727713d332b46e3392c8ce122cc8561ab382d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
$job = Start-Job -ArgumentList $PSScriptRoot -ScriptBlock {
Set-Location $args[0]
$code = (Get-Content -Raw -Path "scripts/Program.cs").ToString()
$assemblies = ("System.Core", "System.IO", "System.Collections")
Add-Type -ReferencedAssemblies $assemblies -TypeDefinition $code -Language CSharp
$path = Join-Path -Path $args[0] -ChildPath "user-guide"
[toc.Builder]::Run($path);
$path = Join-Path -Path $args[0] -ChildPath "gfx-user-guide"
[toc.Builder]::Run($path);
}
Wait-Job $job
Receive-Job -Job $job
|