add parser#build_ref_doc_collections, sketch parser#link_docs