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__/__init__.cpython-310.pyc
o

�$�a��@sZdZddlmZmZmZmZmZddlmZddl	m
Z
er$ddlmZGdd�d�Z
dS)	z�
    sphinx.environment.collectors
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    The data collector components for sphinx.environment.

    :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�)�
TYPE_CHECKING�Dict�List�Optional�Set)�nodes)�BuildEnvironment)�Sphinxc
@s�eZdZUdZdZeeeefe	d<ddd�Z
dd	d
�Zdddededdfd
d�Z
dddedeededdf
dd�Zdddejddfdd�Zdddedeefdd�Zdddedeedeedeedeefdd�ZdS)�EnvironmentCollectoraCAn EnvironmentCollector is a specific data collector from each document.

    It gathers data and stores :py:class:`BuildEnvironment
    <sphinx.environment.BuildEnvironment>` as a database.  Examples of specific
    data would be images, download files, section titles, metadatas, index
    entries and toctrees, etc.
    N�listener_ids�appr	�returncCsV|jdusJ�|�d|j�|�d|j�|�d|j�|�d|j�|�d|j�d�|_dS)N�doctree-read�env-merge-info�
env-purge-doc�env-get-updated�env-get-outdated)rrrrr)r�connect�process_doc�merge_other�	clear_doc�get_updated_docs�get_outdated_docs)�selfr�r�H/usr/lib/python3/dist-packages/sphinx/environment/collectors/__init__.py�enable s�zEnvironmentCollector.enablecCs2|jdusJ�|j��D]}|�|�qd|_dS)N)r�values�
disconnect)rr�listener_idrrr�disable*s
zEnvironmentCollector.disable�env�docnamecC�t�)zcRemove specified data of a document.

        This method is called on the removal of the document.��NotImplementedError)rrr!r"rrrr0�zEnvironmentCollector.clear_doc�docnames�othercCr#)z�Merge in specified data regarding docnames from a different `BuildEnvironment`
        object which coming from a subprocess in parallel builds.r$)rrr!r'r(rrrr6r&z EnvironmentCollector.merge_other�doctreecCr#)zoProcess a document and gather specific data from it.

        This method is called after the document is read.r$)rrr)rrrr<r&z EnvironmentCollector.process_doccC�gS)z�Return a list of docnames to re-read.

        This methods is called after reading the whole of documents (experimental).
        r)rrr!rrrrBsz%EnvironmentCollector.get_updated_docs�added�changed�removedcCr*)zlReturn a list of docnames to re-read.

        This methods is called before reading the documents.
        r)rrr!r+r,r-rrrrIsz&EnvironmentCollector.get_outdated_docs)rr	r
N)�__name__�
__module__�__qualname__�__doc__rrr�str�int�__annotations__rr rrrrr�documentrrrrrrrrr
s0




��
�
����r
N)r1�typingrrrrr�docutilsr�sphinx.environmentr�sphinx.applicationr	r
rrrr�<module>s