3
T'ícâ\ ã @ s. d Z ddlZddlZddlZddlZddlZddlmZ ddlmZ ddl m
Z
mZmZm
Z
mZ y:ddlZej rdej krejd dZnejd d
ZW n ek
r¶ dZd
ZY nX ddlmZ ddlZddlmZmZ dd
lmZ ddlmZmZmZmZmZ ddl m!Z! ddl"m#Z# ededfdedfdedfdedfdedfdedfdedfded fd!ed"fd#ed$fg
Z$d%d
d&dd'd(ddd)Z%d*Z&ej'd+kr´d,Z(nd-Z(e)e)d.d/d0Z*G d1d2 d2e+Z,e)e)d3d4d5Z-e)e)d3d6d7Z.e)e)d3d8d9Z/e)e)d3d:d;Z0e)ee)ge)f d<d=d>Z1e)e2d3d?d@Z3e)e)d3dAdBZ4e)e)d3dCdDZ5de0fe)e)ee)ge
f ee)e2f dEdFdGZ6G dHdI dIe#Z7eddJdKdLZ8dZee2e2e)ddMdNdOZ9ee2dJdPdQZ:ej;dRdSdTZ<ej=dUd
fe
e) e>dVdWdXZ?e@dYkr*ejAe?ej=dUd
dS )[z7Quickly setup documentation source to work with Sphinx.é N)ÚOrderedDict)Úpath)ÚAnyÚCallableÚDictÚListÚUnionÚlibeditzbind ^I rl_completeTz
tab: completeF)Úcolumn_width)Ú__display_version__Úpackage_dir)Ú__)ÚboldÚcolor_terminalÚcolorizeÚnocolorÚred)Ú ensuredir)ÚSphinxRendererZautodocz,automatically insert docstrings from modulesÚdoctestz2automatically test code snippets in doctest blocksZintersphinxz7link between Sphinx documentation of different projectsÚtodoz9write "todo" entries that can be shown or hidden on buildZcoveragez!checks for documentation coverageZimgmathz+include math, rendered as PNG or SVG imagesZmathjaxz0include math, rendered in the browser by MathJaxÚifconfigz7conditional inclusion of content based on config valuesZviewcodez=include links to the source code of documented Python objectsZgithubpagesz=create .nojekyll file to publish the document on GitHub pagesÚ.Ú_z.rstÚindex)r ÚsepÚdotÚlanguageÚsuffixÚmasterÚmakefileÚ batchfilez> Úwin32r Zpurple)ÚpromptÚreturnc C s* t jdkrt| dd tdS t| S d S )Nr"