documentation generator for hooks