fix(validate-sidebar): add to pre-commit hook

This commit is contained in:
Emmanuel Atsé 2026-05-22 02:43:19 +02:00
parent 7ef3a66dca
commit 42121ca70c
No known key found for this signature in database
1 changed files with 2 additions and 0 deletions

View File

@ -10,11 +10,13 @@ npm test
if command -v rg >/dev/null 2>&1; then
if git diff --cached --name-only | rg -q '^docs/'; then
npm run docs:validate-links
npm run docs:validate-sidebar
npm run docs:build
fi
else
if git diff --cached --name-only | grep -Eq '^docs/'; then
npm run docs:validate-links
npm run docs:validate-sidebar
npm run docs:build
fi
fi