def get_ref_to_doc(refname, title=''):
 ref = addnodes.pending_xref(reftype='ref', reftarget=refname, refexplicit=(title != ''), refdomain='std')
 ref += nodes.literal(title, title, classes=['xref'])
 return ref

def get_ref_to_doc ( refname , title = '' ) : ref = addnodes . pending_xref ( reftype = 'ref' , reftarget = refname , refexplicit = ( title != '' ) , refdomain = 'std' ) ref += nodes . literal ( title , title , classes = [ 'xref' ] ) return ref
returns a node that links to a document with the given ref name .