관리-도구
편집 파일: sphinxext.cpython-38.pyc
U ʗRe � @ sh d Z ddlZddlmZ ddlmZ ddlmZ ddlm Z dZ dZd Zd Z G dd� de�Zd d� ZdS )a pygments.sphinxext ~~~~~~~~~~~~~~~~~~ Sphinx extension to generate automatic documentation of lexers, formatters and filters. :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. � N)�nodes)�ViewList)� Directive)�nested_parse_with_titlesz .. module:: %s %s %s zX .. class:: %s :Short names: %s :Filenames: %s :MIME types: %s %s zA .. class:: %s :Short names: %s :Filenames: %s %s z' .. class:: %s :Name: %s %s c @ sD e Zd ZdZdZdZdZdZi Zdd� Z dd� Z d d � Zdd� Zd S )�PygmentsDoczn A directive to collect all lexers/formatters/filters and generate autoclass directives for them. F� r c C s� t � | _| jd dkr | �� }n8| jd dkr8| �� }n | jd dkrP| �� }ntd��t�� }t |� d�dd�}t| j||� | jD ]}| jj jj�|� q�|jS ) Nr �lexers� formatters�filtersz,invalid argument for "pygmentsdoc" directive� � )�source)�set� filenames� arguments�document_lexers�document_formatters�document_filters� Exceptionr Zcompoundr �splitr �stateZdocument�settingsZrecord_dependencies�add�children)�self�out�nodeZvl�fn� r ��/builddir/build/BUILDROOT/alt-python38-pip-22.2.1-2.el8.x86_64/opt/alt/python38/lib/python3.8/site-packages/pip/_vendor/pygments/sphinxext.py�runE s zPygmentsDoc.runc C s� ddl m} g }i }i }t|�� dd� d�D ]�\}}|d }t|d d |g�}| j�|j� t||�} | j svt d| � | j } t| t�r�| � d�} |�|g ��|d�|d �p�d d�|d ��dd ��dd�p�d d�|d �p�d | f� ||kr,|j }t|t��r |� d�}|||<