ó ÿgdSc@sàdZddlZddlmZmZddlmZddlmZddl Tddl Tej dƒZ ej dƒZ d efd „ƒYZeZd efd „ƒYZejd eƒejdeƒejdeƒdS(sÍ sphinx.directives ~~~~~~~~~~~~~~~~~ Handlers for additional ReST directives. :copyright: Copyright 2007-2014 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. iÿÿÿÿN(t Directivet directives(taddnodes(tDocFieldTransformer(t*s\\\ns\\(.)tObjectDescriptioncBsreZdZeZdZdZeZiej d6Z gZ d„Z d„Z d„Zd„Zd„Zd „ZRS( s§ Directive to describe a class, function or similar object. Not used directly, but subclassed (in domain-specific directives) to add custom behavior. iitnoindexcCsKtjd|jdƒjdƒ}g|D]}tjd|jƒƒ^q)S(sÏ Retrieve the signatures to document from the directive arguments. By default, signatures are given as arguments, one per line. Backslash-escaping of newlines is supported. tis s\1(t nl_escape_retsubt argumentstsplittstrip_backslash_retstrip(tselftlinestline((sD/usr/local/lib/python2.7/site-packages/sphinx/directives/__init__.pytget_signatures/s"cCs t‚dS(s“ Parse the signature *sig* into individual nodes and append them to *signode*. If ValueError is raised, parsing is aborted and the whole *sig* is put into a single desc_name node. The return value should be a value that identifies the object. It is passed to :meth:`add_target_and_index()` unchanged, and otherwise only used to skip duplicates. N(t ValueError(Rtsigtsignode((sD/usr/local/lib/python2.7/site-packages/sphinx/directives/__init__.pythandle_signature:s cCsdS(s˜ Add cross-reference IDs and entries to self.indexnode, if applicable. *name* is whatever :meth:`handle_signature()` returned. N((RtnameRR((sD/usr/local/lib/python2.7/site-packages/sphinx/directives/__init__.pytadd_target_and_indexFscCsdS(sŽ Called before parsing content. Used to set information about the current directive context on the build environment. N((R((sD/usr/local/lib/python2.7/site-packages/sphinx/directives/__init__.pytbefore_contentNscCsdS(s Called after parsing content. Used to reset information about the current directive context on the build environment. N((R((sD/usr/local/lib/python2.7/site-packages/sphinx/directives/__init__.pyt after_contentUsc CsId|jkr3|jjddƒ\|_|_nd|j|_|_|jjjj|_tj dgƒ|_ tj ƒ}|jj|_|j|d<|j|d<|dR,R@RARBRCRER;(((sD/usr/local/lib/python2.7/site-packages/sphinx/directives/__init__.pyRG¥ssdefault-domaintdescribeR (R>tretdocutils.parsers.rstRRtsphinxRtsphinx.util.docfieldsRtsphinx.directives.codetsphinx.directives.othertcompileRR Rt DescDirectiveRGtregister_directive(((sD/usr/local/lib/python2.7/site-packages/sphinx/directives/__init__.pyt s   …