chore(docs): regenerate INDEX.md in pre-commit hook
This commit is contained in:
parent
cd68886953
commit
b082d79700
1 changed files with 5 additions and 0 deletions
|
|
@ -1 +1,6 @@
|
|||
npx lint-staged
|
||||
|
||||
if git diff --cached --name-only | grep -q '^docs/.*\.md$'; then
|
||||
npm run docs:index
|
||||
git add docs/INDEX.md
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue