+
    VBiR                        R t ^ RIHt ^ RIHtHt Rt]'       d   ^ RIHtH	t	 ^ RIH
t
 ^ RIHt ^ RIHt RR	 R
 lltRR R lltRR R llt]R8X  d   ]! ]! R4      ^ ,          4       R# R# )a1  
This module contains practical examples of Docutils client code.

Importing this module from client code is not recommended; its contents are
subject to change in future Docutils releases.  Instead, it is recommended
that you copy and paste the parts you need into your own code, modifying as
necessary.
)annotations)coreioF)AnyLiteral)nodes)StrPath)	PublisherNc               4    V ^8  d   QhRRRRRRRRRR	R
RRR/# )   input_stringstr | bytessource_pathStrPath | Nonedestination_pathinput_encodingLiteral['unicode'] | strdoctitleboolinitial_header_levelintreturnzdict[str, str] )formats   "6/usr/lib/python3.14/site-packages/docutils/examples.py__annotate__r      sK     % %[ %*%!/%  8% 	%
 &)% #%    c                J    RVRVRV/p\         P                  ! WVRVR7      pV# )a  
Given an input string, returns a dictionary of HTML document parts.

Dictionary keys are the names of parts, and values are Unicode strings;
encoding is up to the client.

Parameters:

- `input_string`: A multi-line text string; required.
- `source_path`: Path to the source file or object.  Optional, but useful
  for diagnostic output (system messages).
- `destination_path`: Path to the file or object which will receive the
  output; optional.  Used for determining relative paths (stylesheets,
  source links, etc.).
- `input_encoding`: The encoding of `input_string`.  If it is an encoded
  8-bit string, provide the correct encoding.  If it is a Unicode string,
  use "unicode", the default.
- `doctitle`: Disable the promotion of a lone top-level section title to
  document title (and subsequent section title to document subtitle
  promotion); enabled by default.
- `initial_header_level`: The initial level for header elements (e.g. 1
  for "<h1>").
r   doctitle_xformr   html)sourcer   r   writersettings_overrides)r   publish_parts)r   r   r   r   r   r   	overridespartss   &&&&&&  r   
html_partsr&      s?    < ">!8')=?I ))5E Lr   c               8    V ^8  d   QhRRRRRRRRRRR	R
RRRR/# )r   r   r   r   r   r   r   r   output_encodingr   r   r   r   r   r   )r   s   "r   r   r   D   sU      K ) . 7  8	
  %( r   c           	     f    \        WVW5VR7      pVR,          pVR8w  d   VP                  V4      pV# )a-  
Given an input string, returns an HTML fragment as a string.

The return value is the contents of the <body> element.

Parameters (see `html_parts()` for the remainder):

- `output_encoding`: The desired encoding of the output.  If a Unicode
  string is desired, use the default value of "unicode" .
)r   r   r   r   r   r   	html_bodyunicode)r&   encode)	r   r   r   r   r(   r   r   r%   fragments	   &&&&&&&  r   r*   r*   D   sA    $ !)%1	3E
 [!H)#???3Or   c          
     ,    V ^8  d   QhRRRRRRRRR	R
/# )r   r    strr   r   r   r   r"   zdict[str, Any] | Noner   z tuple[nodes.document, Publisher]r   )r   s   "r   r   r   a   s7     ) )c )))6) #8) 4	)r   c                   Vf   / pVRV/,          p\         P                  ! RRR\        P                  \        P                  R7      pVP                  RVRR7       VP                  W4       VP                  4        VP                  V3# )zl
Return the document tree and publisher, for exploring Docutils internals.

Parameters: see `html_parts()`.
Nr   
standalonerstnull)source_classdestination_class)settings_specr"   config_section)	r   r	   r   StringInput
NullOutputprocess_programmatic_settings
set_sourcepublishdocument)r    r   r   r"   r$   	publishers   &&&&  r   	internalsr?   a   s     !"&6%GGI|UF,.NN13@I ++$?H;? , A -y((r   __main__test)NNr+   T   )NNr+   r+   TrB   )Nr+   N)__doc__
__future__r   docutilsr   r   TYPE_CHECKINGtypingr   r   r   docutils.nodesr   docutils.corer	   r&   r*   r?   __name__printr   r   r   <module>rL      sY   
 # #&'%P:)2 z	)F
A
 r   