o $a @szdZddlmZddlmZddlmZddlmZddl m Z ddl m Z ddl mZdd ed ed ed ejfddZdS)z sphinx.testing.restructuredtext ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. )path)nodes)publish_doctree)Sphinx)SphinxStandaloneReader) RSTParser)sphinx_domainsindexapptextdocnamereturnc CszS||jjd<t}||t}||t|j%t|t |j |d|||jdddWdW|jj ddS1sDwYW|jj dddS|jj ddw)z;Parse a string as reStructuredText with Sphinx application.r z.rstT)envgettext_compact)readerparsersettings_overridesN) r temp_datarsetuprset_applicationrrrjoinsrcdirpop)r r r rrrA/usr/lib/python3/dist-packages/sphinx/testing/restructuredtext.pyparses$    &rN)r )__doc__osrdocutilsr docutils.corersphinx.applicationr sphinx.iorsphinx.parsersrsphinx.util.docutilsrstrdocumentrrrrrs       "