Files
future-map-OPEN/core-docs/2026-Main-Presentation/scripts/render.ps1
T

15 lines
551 B
PowerShell
Raw Normal View History

2026-10-12 13:44:42 -06:00
[CmdletBinding()]
param()
$ErrorActionPreference = 'Stop'
$projectRoot = Split-Path -Parent $PSScriptRoot
if (-not (Get-Command quarto -ErrorAction SilentlyContinue)) {
throw 'Quarto is required. See README.md for installation instructions.'
}
Push-Location $projectRoot
try {
& quarto 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 }