fixed doc generation hook
Doc generation step