#!/bin/bash

VAULT_DIR=$(pwd)
EXPORT_DIR="$VAULT_DIR/export"


cd "$VAULT_DIR" || exit

# convert links
./convert_links.sh

# Run mdBook inside a Podman container
podman run --rm -v "$VAULT_DIR":/vault -w /vault/docs mdbook-local mdbook build -d /vault/export


