3
T'íc ã @ s¼ d Z ddlmZmZmZ ddlmZ ddlmZ ddl Z ddl
mZ ddlm
Z
ddlmZ dd lmZ G d
d dejZG dd
d
e
ZeejeddddZeeeef dddZdS )aÕ Provides the ``ifconfig`` directive.
The ``ifconfig`` directive enables writing 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.)
é )ÚAnyÚDictÚList)Únodes)ÚNodeN)ÚSphinx)ÚSphinxDirective)Únested_parse_with_titles)Ú
OptionSpecc @ s e Zd ZdS )ÚifconfigN)Ú__name__Ú
__module__Ú__qualname__© r r ú5/tmp/pip-build-gk9425m9/sphinx/sphinx/ext/ifconfig.pyr s r c @ s8 e Zd ZU dZdZdZdZi Zee e
dddZdS )ÚIfConfigTé r )Úreturnc C s>