
    k7i                    V    S r SSKJr  SrSSKJrJrJr   " S S\R                  5      r	g)z#Reader for existing document trees.    )annotationsreStructuredText)readersutils
transformsc                  .    \ rS rSrSrSrSrSrS	S jrSr	g)
Reader   a  
Adapt the Reader API for an existing document tree.

The existing document tree must be passed as the ``source`` parameter to
the `docutils.core.Publisher` initializer, wrapped in a
`docutils.io.DocTreeInput` object::

    pub = docutils.core.Publisher(
        ..., source=docutils.io.DocTreeInput(document), ...)

The original document settings are overridden; if you want to use the
settings of the original document, pass ``settings=document.settings`` to
the Publisher call above.
)doctreezdoctree reader)r   c                b   U R                   U l        [        R                  " U R                  5      U R                  l        U R
                  U R                  l        [        R                  " U R                  R                  SS5      U R                  R
                  5      U R                  l	        g)zX
No parsing to do; refurbish the document tree instead.
Overrides the inherited method.
source N)
inputdocumentr   Transformertransformersettingsr   new_reportergetreporter)selfs    R/home/james-whalen/.local/lib/python3.13/site-packages/docutils/readers/doctree.pyparseReader.parse$   sv    
 

 %/$:$:4==$I!!% "'!3!3MMh+T]]-C-C"E    )r   N)returnNone)
__name__
__module____qualname____firstlineno____doc__	supportedconfig_sectionconfig_section_dependenciesr   __static_attributes__ r   r   r	   r	      s     I%N".Er   r	   N)
r"   
__future__r   __docformat__docutilsr   r   r   ReReaderr	   r'   r   r   <module>r,      s,   
 * "" / /$EW $Er   