
    7 f              	       ~    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 d dlmZ dd	ed
ededej        fdZdS )    )path)nodes)publish_doctree)Sphinx)SphinxStandaloneReader)	RSTParser)sphinx_domainsindexapptextdocnamereturnc                 J   	 || j         j        d<   t                      }|                    |            t	                      }|                    |            t          | j                   5  t          |t          j	        | j
        |dz             ||| j         ddddd          cddd           | j         j                            dd           S # 1 swxY w Y   	 | j         j                            dd           dS # | j         j                            dd           w xY w)	z;Parse a string as reStructuredText with Sphinx application.r   z.rstTzutf-8unicode)envgettext_compactinput_encodingoutput_encoding	traceback)readerparsersettings_overridesN)r   	temp_datar   setupr   set_applicationr	   r   r   joinsrcdirpop)r   r   r   r   r   s        U/var/www/equiseq/venv/lib/python3.11/site-packages/sphinx/testing/restructuredtext.pyparser       sj   /'.)$'))Ss###CG$$ 	 	"	#*g&6777'+&-'0!%$ $  	 	 	 	 	 	 	 	i....	 	 	 	 	 	 	 	 	 	i.....i....s0   A)D  +:C%D  CD  CD   "D"N)r
   )osr   docutilsr   docutils.corer   sphinx.applicationr   	sphinx.ior   sphinx.parsersr   sphinx.util.docutilsr	   strdocumentr         r   <module>r,      s                ) ) ) ) ) ) % % % % % % , , , , , , $ $ $ $ $ $ / / / / / // /v /S /3 /U^ / / / / / /r+   