
    -Ph                    t    d dl mZ d dlmZ d dlmZ d dlmZ d dlm	Z	 d dl
mZ erd dlmZ d dlmZ dddZdS )    )annotations)TYPE_CHECKING)publish_doctree)SphinxStandaloneReader)	RSTParser)sphinx_domains)nodes)Sphinxindexappr
   textstrdocnamereturnnodes.documentc                   | j         }	 || j         j        _        t                      }|                    |            t                      }|                    |            t          |          5  t          |t          | j
        | dz            |||ddddd          cddd           d|j        _        S # 1 swxY w Y   	 d|j        _        dS # d|j        _        w xY w)	z;Parse a string as reStructuredText with Sphinx application.z.rstTzutf-8unicode)envgettext_compactinput_encodingoutput_encoding	traceback)readerparsersettings_overridesN )r   current_documentr   r   setupr   set_applicationr   r   r   srcdir)r   r   r   r   r   r   s         _/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/sphinx/testing/restructuredtext.pyparser"      sF   
'C*+2 ('))Ss###C   	 	"CJG!1!1!1122'+&-'0!%$ $  	 	 	 	 	 	 	 (*$$	 	 	 	 	 	 	 	 	 (*$$$r$))))s0   A&C /2B:!C :B>>C B>C C"N)r   )r   r
   r   r   r   r   r   r   )
__future__r   typingr   docutils.corer   	sphinx.ior   sphinx.parsersr   sphinx.util.docutilsr   docutilsr	   sphinx.applicationr
   r"        r!   <module>r-      s    " " " " " "             ) ) ) ) ) ) , , , , , , $ $ $ $ $ $ / / / / / / *))))))* * * * * * *r,   