doc: hooks documentation