parameters: (self, match, relative_path_to_root)
docstring: Return a link for a single "@{symbol}" reference.
docstring_summary: Return a link for a single "
docstring_tokens: Return a link for a single
function: def _one_ref(self, match, relative_path_to_root):
      """Return a link for a single "@{symbol}" reference."""
      string = match.group(1)
  
      # Look for link text after $.
      dollar = string.rfind('$')
      if dollar > 0:  # Ignore $ in first character
        link_text = string[dollar + 1:]
        string = string[:dollar]
        manual_link_text = True
      else:
        link_text = string
        manual_link_text = False
  
      # Handle different types of references.
      if string.startswith('$'):  # Doc reference
        return self._doc_link(string, link_text, manual_link_text,
                              relative_path_to_root)
  
      elif string.startswith('tensorflow::'):
        # C++ symbol
        return self._cc_link(string, link_text, manual_link_text,
                             relative_path_to_root)
  
      else:
        is_python = False
        for py_module_name in self._py_module_names:
          if string == py_module_name or string.startswith(py_module_name + '.'):
            is_python = True
            break
        if is_python:  # Python symbol
          return self.python_link(
              link_text,
              string,
              relative_path_to_root,
              code_ref=not manual_link_text)
  
      # Error!
      raise TFDocsError('Did not understand "%s"' % match.group(0),
                        'BROKEN_LINK')
function_tokens: def _one_ref ( self , match , relative_path_to_root ) : string = match . group ( 1 ) # Look for link text after $. dollar = string . rfind ( '$' ) if dollar > 0 : # Ignore $ in first character link_text = string [ dollar + 1 : ] string = string [ : dollar ] manual_link_text = True else : link_text = string manual_link_text = False # Handle different types of references. if string . startswith ( '$' ) : # Doc reference return self . _doc_link ( string , link_text , manual_link_text , relative_path_to_root ) elif string . startswith ( 'tensorflow::' ) : # C++ symbol return self . _cc_link ( string , link_text , manual_link_text , relative_path_to_root ) else : is_python = False for py_module_name in self . _py_module_names : if string == py_module_name or string . startswith ( py_module_name + '.' ) : is_python = True break if is_python : # Python symbol return self . python_link ( link_text , string , relative_path_to_root , code_ref = not manual_link_text ) # Error! raise TFDocsError ( 'Did not understand "%s"' % match . group ( 0 ) , 'BROKEN_LINK' )