blumeops/mise-tasks/ai-docs

13 lines
377 B
Text
Raw Normal View History

#!/usr/bin/env bash
#MISE description="Prime AI context with all BlumeOps documentation"
set -euo pipefail
DOCS_DIR="$(cd "$(dirname "$0")/.." && pwd)/docs"
# Concatenate all docs (excluding changelog fragments)
find "$DOCS_DIR" -name '*.md' -not -path '*/changelog.d/*' | sort | while read -r f; do
printf '=== %s ===\n' "${f#"$DOCS_DIR/"}"
cat "$f"
printf '\n'
done