method for building doc data without reference for apidoc and options