Current File : //usr/share/doc/python-babel-0.9.6/doc/common/doctools.pyc
�
��Mc@s�ddlmZddlZddlmZddlZddlZejje�Z	defd��YZ
defd��YZdS(i����(tCommandN(tglobt	build_doccBsAeZdZd	d
gZddgZd�Zd�Zd�ZRS(sgenerate the documentationtforcesAforce regeneration even if no reStructuredText files have changedswithout-apidocss2whether to skip the generation of API documentatoncCst|_t|_dS(N(tFalseRtwithout_apidocs(tself((sdoc/common/doctools.pytinitialize_options!s	cCsdS(N((R((sdoc/common/doctools.pytfinalize_options%sc
sddlm}ddlm�ddlm}ddlm}ddlm	}t
jjt
dd�}t
jjt
dd	�}y�dd
lm�ddlm�ddlm�����fd
�}d)|_i|jjd6|_d|_|jjd|�Wntk
rdGHnX|ddgdd�}x1td�D]#}	t
jj|	�dd}
|js�t
jj|
�s�t
jj|
�t
jj|	�krEd|
GH|dddd||	|
g�t |
�}zO||dd�}|j!d �}
|
j"d|d!|j#�j$ddd�}Wd|j%�Xt |
d"�}z|j&|�Wd|j%�XqEqEW|j'sypdd#l(m)}t*j+d}d|d$|j#j,dd%d&d'g|j#j,t*j+d)|j)�|t*j+d)Wqtk
r�d(GHqXndS(*Ni����(tpublish_cmdline(traw(trst(t
HTMLParser(tTemplateLoadertconfsdocutils.inis
epydoc.ini(t	highlight(tget_lexer_by_name(t
HtmlFormatterc	sD�|d�}	�dj|�|	���}
�d|
dd�gS(Nis
ttformatthtml(tjoin(tnamet	argumentstoptionstcontenttlinenotcontent_offsett
block_texttstatet
state_machinetlexerR(RRRR
(sdoc/common/doctools.pyt
code_block7siitlanguages
code-blocks4Pygments not installed, syntax highlighting disabledtdocs
doc/commontvariable_lookuptstricts	doc/*.txts.htmlsbuilding documentation file %stwriter_nameRtargvs--config=%stencodingsutf-8s
template.htmltprojecttw(tclis--top=%ss--no-privates
--simple-terms	--verboses1epydoc not installed, skipping API documentation.(iii(-t
docutils.coreR	tdocutils.nodesR
tdocutils.parsersRtgenshi.inputRtgenshi.templateR
tostpathRt	TOOLS_DIRtpygmentsRtpygments.lexersRtpygments.formattersRRt
directivest	unchangedRRtregister_directivetImportErrorRtsplitextRtexiststgetmtimetopentloadtgeneratetdistributiontrendertclosetwriteRtepydocR*tsysR&tpackages(RR	RRR
t
docutils_conftepydoc_confR tloadertsourcetdesttfileobjRttemplatetoutputR*told_argv((RRRR
sdoc/common/doctools.pytrun(sl		
	$	

		


N(sforceNsAforce regeneration even if no reStructuredText files have changed(swithout-apidocsNs2whether to skip the generation of API documentaton(	t__name__t
__module__tdescriptiontNonetuser_optionstboolean_optionsRRRP(((sdoc/common/doctools.pyRs			ttest_doccBs/eZdZgZd�Zd�Zd�ZRS(s+test the code examples in the documentationcCsdS(N((R((sdoc/common/doctools.pyRrscCsdS(N((R((sdoc/common/doctools.pyRuscCs=x6td�D](}d|GHtj|tdtj�q
WdS(Ns	doc/*.txtstesting documentation file %stoptionflags(RtdoctestttestfileRtELLIPSIS(Rtfilename((sdoc/common/doctools.pyRPxs	(RQRRRSRURRRP(((sdoc/common/doctools.pyRWns
		(t
distutils.cmdRRYRR0RER1tdirnamet__file__R2RRW(((sdoc/common/doctools.pyt<module>sW