File: //usr/lib/python3/dist-packages/sphinx/ext/__pycache__/ifconfig.cpython-310.pyc
o
�$�a?
� @ s� d Z ddlmZmZmZ ddlmZ ddlmZ ddl Z ddl
mZ ddlm
Z
ddlmZ dd lmZ G d
d� dej�ZG dd
� d
e
�Zdedejdeddfdd�Zdedeeef fdd�ZdS )a�
sphinx.ext.ifconfig
~~~~~~~~~~~~~~~~~~~
Provides the ``ifconfig`` directive that allows to write documentation
that is included depending on configuration variables.
Usage::
.. ifconfig:: releaselevel in ('alpha', 'beta', 'rc')
This stuff is only included in the built docs for unstable versions.
The argument for ``ifconfig`` is a plain Python expression, evaluated in the
namespace of the project configuration (that is, all variables from
``conf.py`` are available.)
:copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
� )�Any�Dict�List)�nodes)�NodeN)�Sphinx)�SphinxDirective)�nested_parse_with_titles)�
OptionSpecc @ s e Zd ZdS )�ifconfigN)�__name__�
__module__�__qualname__� r r �5/usr/lib/python3/dist-packages/sphinx/ext/ifconfig.pyr "