# Tapir website — a Zola static site (https://tapir.dev). Output -> public/.
#
#   just web build   # render the site into public/
#   just web serve   # live-reload dev server at http://127.0.0.1:1111
#   just web check   # validate links and templates
#   just web demo    # regenerate the authored demo asciicast

set shell := ["bash", "-uc"]

# Default: list recipes.
default:
    @just --list --unsorted

# Render the static site into public/.
build:
    zola build

# Live-reload dev server (Ctrl-C to stop).
serve:
    zola serve

# Validate internal links and templates.
check:
    zola check

# Regenerate static/demo.cast (authored asciicast; PEP 723 script via uv).
demo:
    uv run gen-demo-cast.py

# Remove the rendered site.
clean:
    rm -rf public
