diff options
| author | Yong He <yonghe@outlook.com> | 2021-05-04 12:53:27 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-04 12:53:27 -0700 |
| commit | dc571f1291f6b82b189a0db52c0468ae2fc7af4b (patch) | |
| tree | 8d1cb0ab02f6b27a0900aeb6e4e3fcd3a20d5aa3 /docs/build_toc.ps1 | |
| parent | a342080a4d58a5a1a3597ac34b0335202ec7c435 (diff) | |
Update gfx getting started doc (#1832)
Diffstat (limited to 'docs/build_toc.ps1')
| -rw-r--r-- | docs/build_toc.ps1 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/build_toc.ps1 b/docs/build_toc.ps1 new file mode 100644 index 000000000..ad727713d --- /dev/null +++ b/docs/build_toc.ps1 @@ -0,0 +1,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 |
