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/environment/collectors/__pycache__/title.cpython-310.pyc
o

�$�a	�@s�dZddlmZmZmZddlmZddlmZddl	m
Z
ddlmZddl
mZGdd	�d	e�Zd
edeeeffdd
�ZdS)z�
    sphinx.environment.collectors.title
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    The title collector components for sphinx.environment.

    :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�)�Any�Dict�Set)�nodes)�Sphinx)�BuildEnvironment)�EnvironmentCollector)�SphinxContentsFilterc
@sdeZdZdZdedededdfdd�Zdeded	eed
eddf
dd�Z	ded
e
jddfdd�ZdS)�TitleCollectorz'title collector for sphinx.environment.�app�env�docname�returnNcCs |j�|d�|j�|d�dS�N)�titles�pop�
longtitles)�selfrrr
�r�E/usr/lib/python3/dist-packages/sphinx/environment/collectors/title.py�	clear_docszTitleCollector.clear_doc�docnames�othercCs.|D]}|j||j|<|j||j|<qdSr)rr)rrrrrr
rrr�merge_others�zTitleCollector.merge_other�doctreecCs�t��}|}d|vrt��}|t�|d�7}|�tj�D]}t|�}|d�|�||��7}n|t�|�dd��7}||j	j
|j	j<||j	j|j	j<dS)zAdd a title node to the document (just copy the first section title),
        and store that title in the environment.
        �titlerz
<no title>N)
rr�Text�traverse�sectionr	�	walkabout�get_entry_text�getrrr
r)rrr�	titlenode�
longtitlenode�node�visitorrrr�process_doc"szTitleCollector.process_doc)
�__name__�
__module__�__qualname__�__doc__rr�strrrrr�documentr&rrrrr
s
��
�r
rrcCs|�t�dddd�S)N�builtinT)�version�parallel_read_safe�parallel_write_safe)�add_env_collectorr
)rrrr�setup:s

�r2N)r*�typingrrr�docutilsr�sphinx.applicationr�sphinx.environmentr�sphinx.environment.collectorsr�sphinx.transformsr	r
r+r2rrrr�<module>s
%