recap / scripts /build_hf_readme.sh
afif-ahmed's picture
deploy: sync from fe7cce1
ba54ea9 verified
raw
history blame contribute delete
449 Bytes
#!/usr/bin/env bash
# Assemble the HF-Space-bound README by prepending the HF YAML frontmatter
# to the GitHub README. Outputs to space/README.md.
#
# Run before pushing to the HF Space remote.
set -euo pipefail
REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
HEADER="${REPO_ROOT}/space/header.md"
BODY="${REPO_ROOT}/README.md"
OUT="${REPO_ROOT}/space/README.md"
cat "${HEADER}" "${BODY}" > "${OUT}"
echo "Wrote ${OUT} ($(wc -l < "${OUT}") lines)"