parameters: (self, string, link_text, manual_link_text,
                  relative_path_to_root)
return_statement: return self._doc_missing(string, hash_tag, link_text, manual_link_text,
                               relative_path_to_root)
docstring: Generate a link for a @{$...} reference.
docstring_summary: Generate a link for a
docstring_tokens: Generate a link for a
function: def _doc_link(self, string, link_text, manual_link_text,
                  relative_path_to_root):
      """Generate a link for a @{$...} reference."""
      string = string[1:]  # remove leading $
  
      # If string has a #, split that part into `hash_tag`
      hash_pos = string.find('#')
      if hash_pos > -1:
        hash_tag = string[hash_pos:]
        string = string[:hash_pos]
      else:
        hash_tag = ''
  
      if string in self._doc_index:
        if not manual_link_text: link_text = self._doc_index[string].title
        url = os.path.normpath(os.path.join(
            relative_path_to_root, '../..', self._doc_index[string].url))
        return '[%s](%s%s)' % (link_text, url, hash_tag)
      return self._doc_missing(string, hash_tag, link_text, manual_link_text,
                               relative_path_to_root)
function_tokens: def _doc_link ( self , string , link_text , manual_link_text , relative_path_to_root ) : string = string [ 1 : ] # remove leading $ # If string has a #, split that part into `hash_tag` hash_pos = string . find ( '#' ) if hash_pos > - 1 : hash_tag = string [ hash_pos : ] string = string [ : hash_pos ] else : hash_tag = '' if string in self . _doc_index : if not manual_link_text : link_text = self . _doc_index [ string ] . title url = os . path . normpath ( os . path . join ( relative_path_to_root , '../..' , self . _doc_index [ string ] . url ) ) return '[%s](%s%s)' % ( link_text , url , hash_tag ) return self . _doc_missing ( string , hash_tag , link_text , manual_link_text , relative_path_to_root )