#!/usr/bin/env bash
set -euo pipefail

cd "$(dirname "$0")/.."

echo "Generating rustdoc markdown..."
cargo +nightly doc-md

echo "Post-processing for Mintlify..."
node scripts/prepare-mintlify-docs.mjs

echo "Done. Run 'node scripts/sync-local-docs.mjs' to copy into the docs repo."
