Add API documentation pre-commit hook.

I was trying to follow the same pattern as boilerplate.sh. I'm not interested in improving the pattern.