File: //usr/lib/python3/dist-packages/sphinx/directives/__pycache__/other.cpython-310.pyc
o
�$�a�8 � @ s� d Z ddlZddlmZmZmZmZmZ ddlm Z ddl
mZmZ ddl
mZ ddlmZ ddlmZ dd lmZ dd
lmZ ddlmZ ddlmZmZ dd
lmZmZmZ ddl m!Z! ddl"m#Z#m$Z$ ddl%m&Z& ddl'm(Z( erzddl)m*Z* e�+d�Z,e�-e.�Z/de0de1fdd�Z2G dd� de!�Z3G dd� de!�Z4G dd� de�Z5G dd� de!�Z6G d d!� d!e!�Z7G d"d#� d#e!�Z8G d$d%� d%e!�Z9G d&d'� d'e!�Z:G d(d)� d)ee!�Zd*d+dee0ef fd,d-�Z;dS ).z�
sphinx.directives.other
~~~~~~~~~~~~~~~~~~~~~~~
:copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
� N)�
TYPE_CHECKING�Any�Dict�List�cast)�nodes)�Element�Node)�
directives)�BaseAdmonition)�Class)�Include)�addnodes)�
VersionChange)�_�__)�docname_join�logging�url_re)�SphinxDirective)�Matcher� patfilter)�explicit_title_re)�
OptionSpec)�Sphinxz
.*[*?\[].*�argument�returnc C s | sdS t | �S )Ni� )�int)r � r �9/usr/lib/python3/dist-packages/sphinx/directives/other.py�int_or_nothing$ s r c
@ sp e Zd ZdZdZdZdZdZee j
e je je je je
e je jd� Zdee fdd�Zd ejdee fd
d�ZdS )
�TocTreez�
Directive to notify Sphinx about the hierarchical structure of the docs,
and to include a table-of-contents like tree in the current document.
Tr F) �maxdepth�name�caption�glob�hidden�
includehidden�numbered�
titlesonly�reversedr c C s� t �� }| jj|d<