add a api generator from html document