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/sphinx/ext/__pycache__/autosectionlabel.cpython-310.pyc
o


$�a��@s�dZddlmZmZmZddlmZddlmZddl	m
Z
ddlmZddl
mZddlmZdd	lmZe�e�Zd
edefdd
�Zde
deddfdd�Zde
deeeffdd�ZdS)z�
    sphinx.ext.autosectionlabel
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Allow reference sections by :ref: role using its title.

    :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�)�Any�Dict�cast)�nodes)�Node)�Sphinx)�StandardDomain)�__)�logging)�clean_astext�node�returncCs2d}|}|j|jkr|j}|d7}|j|jks
|S)Nr�)�parent�document)r�i�cur_node�r�=/usr/lib/python3/dist-packages/sphinx/ext/autosectionlabel.py�get_node_depths�r�apprNc
	Cs�tt|j�d��}|�tj�D]j}|jjrt	|�|jjkrq|dd}|jj
}ttj|d�}t|d|�
��}|jjrFt�|d|�}nt�|�}t|�}	||jvrjtjtd�||j�|j|d�|d|d�||f|j|<|||	f|j|<qdS)	N�std�idsr�	rawsource�:z(duplicate label %s, other instance in %s�autosectionlabel)�location�type�subtype)rr�env�
get_domain�traverser�section�config�autosectionlabel_maxdepthr�docname�title�getattr�astext� autosectionlabel_prefix_document�fully_normalize_namer�labels�logger�warningr	�doc2path�
anonlabels)
rr�domainr�labelidr%r&�ref_name�name�sectnamerrr�register_sections_as_label"s*


��r5cCs4|�ddd�|�ddd�|�dt�dddd�S)	Nr)Frr$zdoctree-read�builtinT)�version�parallel_read_safe�parallel_write_safe)�add_config_value�connectr5)rrrr�setup;s�r<)�__doc__�typingrrr�docutilsr�docutils.nodesr�sphinx.applicationr�sphinx.domains.stdr�
sphinx.localer	�sphinx.utilr
�sphinx.util.nodesr�	getLogger�__name__r,�intrr5�strr<rrrr�<module>s