#!/usr/bin/env bash
# Rebuild docs image and restart container in the background.
# Runs after every commit so docs stay current with docstring
# and bib.sqlite changes.

(
  cd "$(git rev-parse --show-toplevel)" || exit
  docker build -q -t fhirworx/docs:latest -f docs/Dockerfile . \
    && docker compose up -d docs
) &>/dev/null &
