- Add .githooks directory with pre-commit hook for cv.webp generation - Create installation script for hooks setup - Add documentation for hooks usage - Refactor timeline arrows into reusable commands (\timelinearrow and \timelinearrowcontinue) - Simplify arrow usage by only requiring length parameter
692 B
692 B
Git Hooks
This directory contains Git hooks for the CV project.
Installation
To install the hooks, run:
.githooks/install-hooks.sh
Or, configure Git to use this directory for hooks (Git 2.9+):
git config core.hooksPath .githooks
Available Hooks
pre-commit
Automatically generates img/cv.webp from cv.pdf when changes are committed.
Requirements:
pdftoppm(from poppler-utils)magick(ImageMagick)
The hook will:
- Check if
cv.pdfis being committed or has been modified - Convert the first page of
cv.pdfto a WebP image - Save it as
img/cv.webp - Add the generated image to the commit