ó ÿgdSc@sdZddlZddlZddlZddlZddlmZddlmZddlm Z ddl m Z ddl m Z ddlmZmZmZdd lmZmZmZdd lmZmZdd lmZmZdd „Zd „ZdS(s sphinx.cmdline ~~~~~~~~~~~~~~ sphinx-build command-line handling. :copyright: Copyright 2007-2014 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. iÿÿÿÿN(tpath(t SystemMessage(t __version__(t SphinxError(tSphinx(tTeetformat_exception_cut_framestsave_traceback(tredtnocolortcolor_terminal(tabspatht fs_encoding(t terminal_safetbytescCs<|rtj|IJtjJntjdt|dfIJdS(Ns¼Sphinx v%s Usage: %s [options] sourcedir outdir [filenames...] General options ^^^^^^^^^^^^^^^ -b builder to use; default is html -a write all files; default is to only write new and changed files -E don't use a saved environment, always read all files -d path for the cached environment and doctree files (default: outdir/.doctrees) -j build in parallel with N processes where possible -M "make" mode -- used by Makefile, like "sphinx-build -M html" Build configuration options ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -c path where configuration file (conf.py) is located (default: same as sourcedir) -C use no config file at all, only -D options -D override a setting in configuration file -t define tag: include "only" blocks with -A pass a value into the templates, for HTML builder -n nit-picky mode, warn about all missing references Console output options ^^^^^^^^^^^^^^^^^^^^^^ -v increase verbosity (can be repeated) -q no output on stdout, just warnings on stderr -Q no output at all, not even warnings -w write warnings (and errors) to given file -W turn warnings into errors -T show full traceback on exception -N do not emit colored output -P run Pdb on exception Filename arguments ^^^^^^^^^^^^^^^^^^ * without -a and without filenames, write new and changed files. * with -a, write all files. * with filenames, write these. Standard options ^^^^^^^^^^^^^^^^ -h, --help show this help and exit --version show version information and exit i(tsyststderrR(targvtmsg((s8/usr/local/lib/python2.7/site-packages/sphinx/cmdline.pytusages   -c"Cs¤tƒstƒny)tj|ddddgƒ\}}Wn(tjk rf}t|d|ƒdSXtd„|Dƒƒ}d|ks•d|kr·t|ƒtjJtjd IJd Sd |krÐd tGHd Sy”t |d ƒ}}t j |ƒstjd |fIJdSt j t j |dƒƒ rSd|krSd|krStjdIJdSt |dƒ}WnAtk r…t|dƒdStk r§tjdtIJdSX|d}d }x7|D]/} t j | ƒs¿tjd| IJd}q¿q¿W|rüdSytdƒ} | jƒ} Wntk r1d} nXd} t} }}}t}d }d }tj}tj}tj}d}i}g}t j |dƒ}x‚|D]z\}}|dkrÃ|} q¢|dkrï|ræt|dƒdSt} q¢|dkr |j|ƒq¢|dkr&t |ƒ}q¢|dkrmt |ƒ}t j t j |dƒƒstjdIJdSq¢|dkr‚d}q¢|dkr9y|jdƒ\}}Wntk rÈtjd IJdSXyt|ƒ}WnPtk r+| r,t|tƒr,y|j| ƒ}Wq(tk r$q(Xq,nX|||_ss-hs--helps3For more information, see .is --versionsSphinx (sphinx-build) %ss)Error: Cannot find source directory `%s'.sconf.pys-cs-Cs7Error: Source directory doesn't contain a conf.py file.sError: Insufficient arguments.sIError: Multibyte filename not supported on this filesystem encoding (%r).isError: Cannot find file %r.tlocales .doctreess-bs-as.Error: Cannot combine -a option and filenames.s-ts-ds<Error: Configuration directory doesn't contain conf.py file.s-Dt=s9Error: -D option argument must be in the form name=value.s-As9Error: -A option argument must be in the form name=value.shtml_context.%ss-ntnitpickys-Ns-Es-qs-Qs-Ws-ws-Ps-Ts-vs-js-Error: -j option argument must be an integer.twsMaking output directory...iÿÿÿÿs5Exception occurred while building, starting debugger:s interrupted!sreST markup error:s%s:sEncoding error:s[The full traceback has been saved in %s, if you want to report the issue to the developers.sException occurred:siPlease also report this if it was a user error, so that a better error message can be provided next time.sfA bug report can be filed in the tracker at . Thanks!(6R R tgetoptterrorRtsetRRRR Rtisdirtisfiletjoint IndexErrort UnicodeErrorR t __import__tgetpreferredencodingt ExceptiontNonetFalsetstdouttTruetappendtsplitt ValueErrortintt isinstanceRtdecodetopenRtostmakedirsRtbuildt statuscodetKeyboardInterrupttpdbRt tracebackt print_exct post_mortemtexc_infoRR targsRtcategorytunicodeRRtrstrip("RtoptsR<terrtalloptstsrcdirtconfdirtoutdirt filenamestfilenameRtlikely_encodingt buildernamet force_alltfreshenvtwarningiserrortuse_pdbtshow_tracebackt verbositytparalleltstatustwarningRtwarnfilet confoverridesttagst doctreedirRtvaltkeytwarnfptappR7ttbpath((s8/usr/local/lib/python2.7/site-packages/sphinx/cmdline.pytmainQst                                                                                      (t__doc__R2RRR8Rtdocutils.utilsRtsphinxRt sphinx.errorsRtsphinx.applicationRt sphinx.utilRRRtsphinx.util.consoleRR R tsphinx.util.osutilR R tsphinx.util.pycompatR RR'RR\(((s8/usr/local/lib/python2.7/site-packages/sphinx/cmdline.pyt s     4