| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.9/site-packages/sphinx/directives/__pycache__/ |
Upload File : |
a
�abj# � @ s� d Z ddlZddlZddlmZ ddlmZmZmZmZm Z m
Z
mZ ddlm
Z
ddlmZmZmZ ddlmZ ddlmZmZ dd lmZ dd
lmZ ddlmZ ddlmZ dd
lm Z ddl!m"Z" ddl#m$Z$ ddl%m&Z& ddl'm(Z( ddl)m*Z*m+Z+m,Z, ddl-m.Z. zddl/m0Z1 W n e2�y< ddl3m0Z1 Y n0 e�rPddl4m5Z5 e$�6e7�Z8G dd� dej9�Z9G dd� de1e&�Z0G dd� dej:�Z:G dd� dej;�Z;G dd� dej<�Z<G d d!� d!e&�Z=G d"d#� d#e&�Z>d$ee?ef d%�d&d'�Z@dS )(z�
sphinx.directives.patches
~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
� N)�path)�
TYPE_CHECKING�Any�Dict�List�Sequence�Tuple�cast)�nodes)�Node�make_id�system_message)�
directives)�images�tables)�set_classes)�addnodes)�RemovedInSphinx60Warning)�optional_int)�
MathDomain)�__)�logging)�SphinxDirective)�set_source_info)�SEP�os_path�relpath)�
OptionSpec)�Meta)�Sphinxc s* e Zd ZdZee d�� fdd�Z� ZS )�FigureziThe figure directive which applies `:name:` option to the figure node
instead of the image node.
��returnc s� | j �dd �}t� �� }t|�dks4t|d tj�r8|S t|�dksHJ �ttj |d �}|rp|| j d<