#!/bin/sh # Render docs/*.md to HTML and PDF. Requires pandoc. set -eu root=$(CDPATH= cd -- "$(dirname "$0")/.." && pwd) cd "$root" mkdir -p docs/html docs/pdf css='body{font-family:Georgia,serif;max-width:42rem;margin:2rem auto;padding:0 1rem;line-height:1.45}code,pre{font-family:ui-monospace,monospace}table{border-collapse:collapse}td,th{border:1px solid #ccc;padding:0.3rem 0.5rem}' for name in standards architecture api operator-guide; do pandoc "docs/${name}.md" \ --standalone \ --metadata "title=${name}" \ -c style.css \ -o "docs/html/${name}.html" pandoc "docs/${name}.md" \ --metadata "title=${name}" \ -o "docs/pdf/${name}.pdf" done printf '%s\n' "$css" > docs/html/style.css cat > docs/html/index.html <<'EOF'
Hash-only stamps for assistants that speak the Model Context Protocol.
EOF echo "wrote docs/html and docs/pdf"