#!/usr/bin/env bash
# Creates the real-app fixture for PR #23503: a git project with a long rendered-Markdown file
# (200 "##" sections) and a short second file to switch to.
set -euo pipefail
dir=$1
mkdir -p "$dir"
{
  echo "# Long guide"
  for i in $(seq 0 199); do
    printf '\n## Guide section %d\n\nParagraph %d of the long guide. It is long enough to wrap onto a second line in a narrow panel.\n' "$i" "$i"
  done
} > "$dir/GUIDE.md"
printf '# Notes\n\nA short second file.\n' > "$dir/NOTES.md"
git -C "$dir" init -q
git -C "$dir" add .
git -C "$dir" -c user.name=demo -c user.email=demo@example.com commit -q -m fixture
