code: def doc_replace(match, sphinx_docs):
      
      sphinx_docs.append(match.group("path"))
      return "`{}`_".format(match.group("value"))
docs: Convert Sphinx ``:doc:`` to plain reST link.
  
      Args:
          match (_sre.SRE_Match): A match (from ``re``) to be used
              in substitution.
          sphinx_docs (list): List to be track the documents that have been
              encountered.
  
      Returns:
          str: The ``match`` converted to a link.