Skip to content

Commit 3c0f0e9

Browse files
committed
Add switch to build-dev.ps1 to skip opening docs in new browser tab
1 parent bf7f1b3 commit 3c0f0e9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docs/build-dev.ps1

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
param(
66
# Specify -NoBuild to skip code build and examples generation. This runs faster, so handy when only editing Markdown files.
7-
[switch] $NoBuild=$False
7+
[switch] $NoBuild=$False,
8+
# Specify -NoOpen to skip opening the documentation website in a web browser.
9+
[switch] $NoOpen=$False
810
)
911

1012
function VerifySuccessExitCode {
@@ -53,9 +55,12 @@ Copy-Item -Force -Recurse home/assets/* _site/styles/
5355

5456
cd _site
5557
$webServerJob = httpserver &
56-
Start-Process "http://localhost:8080/"
5758
cd ..
5859

60+
if (-Not $NoOpen) {
61+
Start-Process "http://localhost:8080/"
62+
}
63+
5964
Write-Host ""
6065
Write-Host "Web server started. Press Enter to close."
6166
$key = [Console]::ReadKey()

0 commit comments

Comments
 (0)