Add API documentation pre-commit hook.
Merge pull request #2482 from bgrant0607/doctest

Add API documentation pre-commit hook.