colibri had no Prettier config or gate, so its markdown drifted freely (22/31 files failed Prettier). Mirror the clawdie-iso gate so docs stay consistent: - .prettierrc: same as clawdie-iso — proseWrap=preserve, printWidth=80, and embeddedLanguageFormatting=off for *.md so fenced code (JSON/mermaid/shell in the graph + design docs) is left exactly as written. - .prettierignore: target/, scratch dirs, CHANGELOG. - scripts/check-format.sh: `prettier@3 --check '**/*.md'` (run before pushing). - AGENTS.md: "Markdown Formatting Gate" section documenting the workflow. - One-shot `prettier --write` across all markdown. Pure formatting — only emphasis-marker (*x* -> _x_), list-bullet, table-padding, and blank-line normalization; no prose/command/code-fence content changed. Gate now green (`./scripts/check-format.sh` → all matched files pass). Docs-only + tooling — no Rust touched, no rebuild. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
11 lines
264 B
Bash
Executable file
11 lines
264 B
Bash
Executable file
#!/bin/sh
|
|
# Check repository markdown formatting using the pinned Prettier major version.
|
|
# Run before pushing documentation changes.
|
|
|
|
set -eu
|
|
|
|
ROOT_DIR="$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)"
|
|
|
|
cd "$ROOT_DIR"
|
|
|
|
exec npx --yes prettier@3 --check '**/*.md'
|