doc refernce parsing for html_index