Skip to content

Commit 2899de8

Browse files
committed
Implemented viewing generated Sphinx help in Chrome.
1 parent 16c3b7d commit 2899de8

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

run.ps1

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Param(
1414
[switch]$latex,
1515
[switch]$pdf,
1616
[switch]$doccov,
17+
[switch]$view,
1718

1819
[switch]$unit,
1920
[switch]$liveunit,
@@ -54,7 +55,8 @@ $help = $help -or ( -not (
5455
$unit -or $liveunit -or $copyunit -or
5556
$cov -or $livecov -or $copycov -or
5657
$type -or $livetype -or $copytype -or
57-
$build -or $install
58+
$build -or $install -or
59+
$view
5860
)
5961
)
6062

@@ -386,6 +388,11 @@ if ($livedoc) {
386388
}
387389
}
388390

391+
if ($view) {
392+
Write-Host -ForegroundColor Green "[live][VIEW] Launching '$(Get-Location)\doc\_build\html\index.html' in Chrome ..."
393+
Start-Process "C:\Program Files\Google\Chrome\Application\chrome.exe" "$(Get-Location)\doc\_build\html\index.html"
394+
}
395+
389396
# Await jobs
390397
if ($typingJob) {
391398
Write-Host -ForegroundColor DarkGreen "[SCRIPT] Waiting on TypeChecking job ..."

0 commit comments

Comments
 (0)