Ë "×¶:/ Âãó@—dZddlmZmZ dd„Z dd„Z d d„Zy) 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. é)ÚcoreÚioNcóF—|||dœ}tj|||d|¬«}|S)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 "

"). )Úinput_encodingÚdoctitle_xformÚinitial_header_levelÚhtml)ÚsourceÚ source_pathÚdestination_pathÚ writer_nameÚsettings_overrides)rÚ publish_parts)Ú input_stringr r rÚdoctitlerÚ overridesÚpartss ú6/usr/lib/python3.12/site-packages/docutils/examples.pyÚ html_partsrs:€ð4$2Ø#+Ø)=ñ?€Iô × Ñ Ø¨Ø)بyô :€Eð €Lócó^—t||||||¬«}|d}|dk7r|j|«}|S)aE Given an input string, returns an HTML fragment as a string. The return value is the contents of the 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" . )rr r rrrÚ html_bodyÚunicode)rÚencode) rr r rÚoutput_encodingrrrÚfragments rrr5sE€ô Ø!¨{Ø)Ø%°Ø1ô  3€Eð �[Ñ!€Hؘ)Ò#Ø—?‘? ?Ó3ˆØ €Orcó0—|r|j«}ni}||d<tjdidtj“d|“d|“dtj “dd“d|“d d“d d “d d“d d“dd“dd“dd“dd“d|“dd“dd“Ž\}}|j j|fS)zx Return the document tree and publisher, for exploring Docutils internals. Parameters: see `html_parts()`. rÚ source_classr r Údestination_classÚ destinationNr ÚreaderÚ reader_nameÚ standaloneÚparserÚ parser_nameÚrestructuredtextÚwriterr ÚnullÚsettingsÚ settings_specrÚconfig_sectionÚenable_exit_status©)ÚcopyrÚpublish_programmaticallyrÚ StringInputÚ NullOutputr'Údocument)rr r rrrÚoutputÚpubs rÚ internalsr5Msý€ñØ&×+Ñ+Ó-‰ àˆ Ø"0€IÐÑÜ×/Ñ/ò 6Ü—^’^ð 6Ù,8ð 6áð 6ôŸ-š-ð 6ñ6:ð 6ñ*ð 6ñ ð 6ñ ".ð 6ñ ð 6ñ "4ð 6ñð 6ñ"(ð 6ñð 6ñ&*ð 6ñ?Hð 6ñð 6ñ15ð 6�K€FˆCð �:‰:× Ñ  Ð #Ð#r)NNrTé)NNrrTr6)NNrN)Ú__doc__Údocutilsrrrrr5r-rrÚr9sCðñ ÷ðAEØ26Ø$%ó!ðH@DØ8AØ23óð0@DØ;?ô$r