HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/docutils/parsers/rst/directives/__pycache__/parts.cpython-310.pyc
o

Uw#[��@s�dZdZddlmZmZddlmZddlmZddlm	Z	Gdd�de�Z
Gd	d
�d
e�ZGdd�de�ZGd
d�de�Z
dS)z 
Directives for document parts.
�reStructuredText�)�nodes�	languages)�parts)�	Directive)�
directivesc@s@eZdZdZdZdd�ZdZdZej	ej
eejd�Zdd	�Z
d
S)�Contentsa�
    Table of contents.

    The table of contents is generated in two passes: initial parse and
    transform.  During the initial parse, a 'pending' element is generated
    which acts as a placeholder, storing the TOC title and any options
    internally.  At a later stage in the processing, the 'pending' element is
    replaced by a 'topic' element, a title and the table of contents proper.
    )�top�entry�nonecCst�|tj�}|dkr
dS|S)Nr)r�choicer�backlinks_values)�arg�value�r�G/usr/lib/python3/dist-packages/docutils/parsers/rst/directives/parts.py�	backlinksszContents.backlinks�T)�depth�localr�classc
Cs�|jjst|jjtj�s|�d|j��|jj}t	�
|jj|j
�}|jr>|jd}|j�||j�\}}tj|dg|�R�}ng}d|jvrHd}n	t�d|jd�}tjdgd�}|d|j�dg�7<|j��\|_|_|jd	8_d|jvr�|d�d�|r�|��}||7}n|jd}t�|�}|�|�s�|d
�|�|�|�tjt j!|j"d�}	|	j#�$|j�|�%|	�||	7}|g|S)NzBThe "%s" directive may not be used within topics or body elements.r�r�contents)�classesrrr�names)�	rawsource)&�
state_machine�match_titles�
isinstance�noder�sidebar�error�name�documentr�get_language�settings�
language_code�reporter�	arguments�state�inline_text�lineno�title�options�labels�topic�get�get_source_and_line�source�line�append�astext�fully_normalize_name�has_name�note_implicit_target�pendingrr�
block_text�details�update�note_pending)
�selfr#�language�
title_text�
text_nodes�messagesr,r/r"r9rrr�run-sN��
�
�








zContents.runN)�__name__�
__module__�__qualname__�__doc__r
r�optional_arguments�final_argument_whitespacer�nonnegative_int�flag�class_option�option_specrCrrrrrs
�rc@s*eZdZdZeeejejd�Zdd�ZdS)�SectnumzAutomatic section numbering.)r�start�prefix�suffixcCs.t�tj�}|j�|j�|jj�	|�|gS�N)
rr9r�SectNumr;r<r-rr#r=)r>r9rrrrC`szSectnum.runN)	rDrErFrG�intr�unchanged_requiredrMrCrrrrrNWs�rNc@�eZdZdZdZdd�ZdS)�HeaderzContents of document header.TcC�0|��|jj����}|j�|j|j|�gSrR)	�assert_has_contentrr#�get_decoration�
get_headerr)�nested_parse�content�content_offset)r>�headerrrrrCm�z
Header.runN�rDrErFrG�has_contentrCrrrrrWg�rWc@rV)�FooterzContents of document footer.TcCrXrR)	rYrr#rZ�
get_footerr)r\r]r^)r>�footerrrrrCzr`z
Footer.runNrarrrrrdtrcrdN)rG�
__docformat__�docutilsrr�docutils.transformsr�docutils.parsers.rstrrrrNrWrdrrrr�<module>sF