#!/usr/bin/env bash
# Create a local venv that reuses system packages (mkdocs, material, pymdownx,
# weasyprint from pacman) and adds the PDF plugin that is not packaged for Arch.
set -euo pipefail
cd "$(dirname "$0")"

python3 -m venv --system-site-packages .venv
.venv/bin/pip install --quiet --upgrade pip
.venv/bin/pip install --quiet mkdocs-with-pdf
echo "venv ready. Build the PDF with ./build-pdf.sh"
