Ñò ätHc@s†ddklZddkZddklZddkZddkZeiieƒZ defd„ƒYZ defd„ƒYZ dS(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%scsddkl}ddkl‰ddkl}ddkl}ddkl }t i i t ddƒ}t i i t dd ƒ}y‡dd kl‰dd kl‰dd kl‰‡‡‡‡fd †}d'|_h|iid6|_d|_|iid|ƒWntj o dGHnX|ddgddƒ}x)tdƒD]} t i i| ƒdd} |ip9t i i| ƒ p%t i i| ƒt i i| ƒjo¸d| GH|dddd|| | gƒt | ƒ} zC|| ƒ} |i!dƒ} | i"d| d|i#ƒi$dƒ}Wd| i%ƒXt | d ƒ} z| i&|ƒWd| i%ƒXqGqGW|i'pypdd!k(l)}t*i+d}d|d"|i#i,dd#d$d%g|i#i,t*i+d)|i)ƒ|t*i+d)Wqÿtj o d&GHqÿXndS((Niÿÿÿÿ(tpublish_cmdline(traw(trst(t HTMLParser(tTemplateLoadertconfs docutils.inis epydoc.ini(t highlight(tget_lexer_by_name(t HtmlFormatterc sDˆ|dƒ} ˆdi|ƒ| ˆƒƒ} ˆd| ddƒgS(Nis ttformatthtml(tjoin( tnamet argumentstoptionstcontenttlinenotcontent_offsett block_texttstatet state_machinetlexerR(R RRR(sdoc/common/doctools.pyt code_block7siitlanguages code-blocks4Pygments not installed, syntax highlighting disabledtdocs doc/commontvariable_lookuptstricts doc/*.txts.htmlsbuilding documentation file %st writer_nameRtargvs --config=%ss template.htmltprojecttw(tclis--top=%ss --no-privates --simple-terms --verboses1epydoc not installed, skipping API documentation.(iii(-t docutils.coreR tdocutils.nodesR tdocutils.parsersR t genshi.inputR tgenshi.templateR tostpathRt TOOLS_DIRtpygmentsRtpygments.lexersRtpygments.formattersRRt directivest unchangedRRtregister_directivet ImportErrorRtsplitextRtexiststgetmtimetopentloadtgeneratet distributiontrendertclosetwriteRtepydocR)tsysR&tpackages(RR R R R t docutils_conft epydoc_confR tloadertsourcetdesttfileobjRttemplatetoutputR)told_argv((R RRRsdoc/common/doctools.pytrun(sn    %             N(sforceNsAforce regeneration even if no reStructuredText files have changed(swithout-apidocsNs2whether to skip the generation of API documentaton( t__name__t __module__t descriptiontNonet user_optionstboolean_optionsRRRO(((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|GHti|tdtiƒq WdS(Ns doc/*.txtstesting documentation file %st optionflags(RtdoctestttestfileRtELLIPSIS(Rtfilename((sdoc/common/doctools.pyROxs  (RPRQRRRTRRRO(((sdoc/common/doctools.pyRVns   ( t distutils.cmdRRXRR/RDR0tdirnamet__file__R1RRV(((sdoc/common/doctools.pyts   W