This commit is contained in:
eddiesoehnel committed 2026-10-06 14:43:52 -06:00
1 parent aa58f98043
commit 304ff6e19e
32 files changed
+3302

No files matched your search

@@ -0,0 +1,19 @@
[CmdletBinding()]
param([ValidateRange(1024, 65535)][int]$Port = 4200)
$ErrorActionPreference = 'Stop'
$projectRoot = Split-Path -Parent $PSScriptRoot
$quartoCommand = Get-Command quarto -ErrorAction SilentlyContinue
$quartoPath = if ($quartoCommand) { $quartoCommand.Source } else { $null }
if (-not $quartoPath) {
$candidates = @(
(Join-Path $env:LOCALAPPDATA 'Programs\Quarto\bin\quarto.exe'),
(Join-Path $env:ProgramFiles 'Quarto\bin\quarto.exe')
)
$quartoPath = $candidates | Where-Object { Test-Path -LiteralPath $_ } | Select-Object -First 1
}
if (-not $quartoPath) { throw 'Quarto is required. See README.md for installation instructions.' }
Push-Location $projectRoot
try {
& $quartoPath preview presentation.qmd --host 127.0.0.1 --port $Port
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
} finally { Pop-Location }
@@ -0,0 +1,22 @@
[CmdletBinding()]
param()
$ErrorActionPreference = 'Stop'
$projectRoot = Split-Path -Parent $PSScriptRoot
$quartoCommand = Get-Command quarto -ErrorAction SilentlyContinue
$quartoPath = if ($quartoCommand) { $quartoCommand.Source } else { $null }
if (-not $quartoPath) {
$candidates = @(
(Join-Path $env:LOCALAPPDATA 'Programs\Quarto\bin\quarto.exe'),
(Join-Path $env:ProgramFiles 'Quarto\bin\quarto.exe')
)
$quartoPath = $candidates | Where-Object { Test-Path -LiteralPath $_ } | Select-Object -First 1
}
if (-not $quartoPath) { throw 'Quarto is required. See README.md for installation instructions.' }
Push-Location $projectRoot
try {
& $quartoPath render presentation.qmd --to revealjs
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
if (-not (Test-Path 'output/presentation.html')) {
throw 'Render returned without the expected output/presentation.html.'
}
} finally { Pop-Location }