403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/cygwin64/lib/python3.9/site-packages/sphinx/cmd/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/sphinx/cmd/__pycache__/build.cpython-39.opt-1.pyc
a

�abx1�@s�dZddlZddlZddlZddlZddlZddlZddlZddlZddlm	Z	ddl
mZmZm
Z
ddlmZddlZddlmZmZddlmZddlmZdd	lmZdd
lmZmZmZddlmZmZm Z m!Z!ddl"m#Z#m$Z$dd
l%m&Z&m'Z'ej(feee)edd�dd�Z*e+e,d�dd�Z-ej.d�dd�Z/ej0dd�fe
e+e,d�dd�Z1ej0dd�fe
e+e,d�dd�Z2ej0dd�fe
e+e,d�dd�Z3e4dk�r�e�5e3ej0dd���dS) z�
    sphinx.cmd.build
    ~~~~~~~~~~~~~~~~

    Build documentation from a provided source.

    :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�N)�path)�IO�Any�List)�
SystemMessage)�__display_version__�package_dir)�Sphinx)�SphinxError)�__)�Tee�format_exception_cut_frames�save_traceback)�color_terminal�nocolor�red�
terminal_safe)�docutils_namespace�patch_docutils)�abspath�	ensuredir)�app�args�	exception�stderr�returncCs(t|tj�rdS|jrHtttd��|d�t��t�	t
��d��n�t|d�|js^|jrtt�d|�t|d�t|t
�r�ttd�|d��n�t|t�r�tttd��|d�tt|jd�|d��nZt|t�r�ttd|j�|d�tt|�|d��n&t|t��rTtttd��|d�ttt|��|d�t|�}tttd	�|�|d�n�t|t��r�d
t|�v�r�tttd��|d�ttt|��|d�t|d�ttd�|d�td
|d�nftttd��|d�tt���|d�t|�}tttd	�|�|d�ttd�|d�ttd�|d�dS)Nz5Exception occurred while building, starting debugger:)�file�zInterrupted!zreST markup error:rz%s:zEncoding error:z[The full traceback has been saved in %s, if you want to report the issue to the developers.zrecursion depthzRecursion error:z�This can happen with very large or deeply nested source files. You can carefully increase the default Python recursion limit of 1000 in conf.py with e.g.:z+    import sys; sys.setrecursionlimit(1500)zException occurred:ziPlease also report this if it was a user error, so that a better error message can be provided next time.zbA bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!)�
isinstance�bdbZBdbQuit�pdb�printrr�	traceback�	print_excZpost_mortem�sys�exc_info�	verbosity�KeyboardInterruptrrrr
�category�str�UnicodeErrorr�RuntimeErrorr
�rstrip)rrrrZtbpath�r-�4/usr/lib/python3.9/site-packages/sphinx/cmd/build.py�handle_exception#sf�





��
�
����r/)�valuercCs8|dkrt��St|�}|dkr0t�td���n|SdS)z�
    Special type to handle 'auto' flags passed to 'sphinx-build' via -j flag. Can
    be expanded to handle other special scaling requests, such as setting job count
    to cpu_count.
    �autorz&job number should be a positive numberN)�multiprocessing�	cpu_count�int�argparse�ArgumentTypeErrorr)r0�jobsr-r-r.�
jobs_argumentWsr8)rcCsxtjdtd�td�d�}|jddddtd	�|jd
td�d�|jd
td�d�|jddtd�d�|�td��}|jddddtd�d�|jdddtd�d�|jddd td!�d�|jd"d#d$td%�d&�|jd'd(d)td*td+�d,�|�d-�}|jd.d#d/td0�d&�|jd1dd2td3�d�|jd4d5d6d7gtd8�d9�|jd:d;d6d<gtd=�d9�|jd>d?d6d@gtdA�d9�|jdBddCtdD�d�|�tdE��}|jdFdGdHdItdJ�dK�|jdLddMtdN�d�|jdOddPtdQ�d�|jdRdSdTdUtdV�dW�|jdXdYdZdSd[td\�d]�|jd^d_d`tda�d&�|jdbddctdd�d�|jdeddftdg�d�|jdhdditdj�d�|jdkddltdm�d�|S)nNz5%(prog)s [OPTIONS] SOURCEDIR OUTPUTDIR [FILENAMES...]z:For more information, visit <https://www.sphinx-doc.org/>.a�
Generate documentation from source files.

sphinx-build generates documentation from the files in SOURCEDIR and places it
in OUTPUTDIR. It looks for 'conf.py' in SOURCEDIR for the configuration
settings. The 'sphinx-quickstart' tool may be used to generate template files,
including 'conf.py'

sphinx-build can create documentation in different formats. A format is
selected by specifying the builder name on the command line; it defaults to
HTML. Builders can also perform other tasks related to documentation
processing.

By default, everything that is outdated is built. Output only for selected
files can be built by specifying individual filenames.
)�usage�epilog�descriptionz	--version�versionZshow_versionz%%(prog)s %s)�action�destr<�	sourcedirz"path to documentation source files)�help�	outputdirzpath to output directory�	filenames�*z?a list of specific files to rebuild. Ignored if -a is specified)�nargsr@zgeneral optionsz-bZBUILDER�builderZhtmlzbuilder to use (default: html))�metavarr>�defaultr@z-a�
store_true�	force_allz;write all files (default: only write new and changed files))r=r>r@z-E�freshenvz4don't use a saved environment, always read all filesz-d�PATH�
doctreedirzPpath for the cached environment and doctree files (default: OUTPUTDIR/.doctrees))rFr>r@z-j�N�r7z`build in parallel with N processes where possible (special value "auto" will set N to cpu-count))rFrG�typer>r@zbuild configuration optionsz-c�confdirzOpath where configuration file (conf.py) is located (default: same as SOURCEDIR)z-C�noconfigz*use no config file at all, only -D optionsz-Dz
setting=value�append�definez(override a setting in configuration file)rFr=r>rGr@z-Az
name=value�
htmldefinez pass a value into HTML templatesz-tZTAG�tagsz*define tag: include "only" blocks with TAGz-n�nitpickyz1nit-picky mode, warn about all missing referenceszconsole output optionsz-v�countr&rz$increase verbosity (can be repeated))r=r>rGr@z-q�quietz,no output on stdout, just warnings on stderrz-Q�really_quietz#no output at all, not even warningsz--color�store_constZyesr1z-do emit colored output (default: auto-detect))r=�constrGr@z-Nz
--no-color�color�noz1do not emit colored output (default: auto-detect))r>r=r[r@z-w�FILE�warnfilez)write warnings (and errors) to given filez-W�warningiserrorzturn warnings into errorsz--keep-going�
keep_goingz)with -W, keep going when getting warningsz-Tr"z show full traceback on exceptionz-Pr zrun Pdb on exception)r5�ArgumentParserr�add_argumentr�add_argument_groupr8)�parser�groupr-r-r.�
get_parsergs��
����
�
�
�
��

�
�
�
�
�
��
�
�
��
�
�
�
�
�rgrN)�argvrcCsddlm}|�|dd��S)zSphinx build "make mode" entry.r)�	make_moderNN)Z
sphinx.cmdriZ
run_make_mode)rhrir-r-r.�	make_main�srjcCsBt�}|�|�}|jrd|_n|js,|j|_|jsDtj�|j	d�|_|j
}g}|D]}tj�|�sR|�|�qR|r�|�
td�|�|jr�|r�|�
td��|jdks�|jdkr�t�s�t�tj}tj}tj}|jr�d}|jr�d}}|�rj|j�rjz(t|j�}	tt�|	��t|jd�}
Wn>t�yZ}z$|�
td�|j|f�WYd}~n
d}~00t||
�}|}i}|jD]F}
z|
� d	d
�\}}
Wn"t!�y�|�
td��Yn0|
||<�qt|j"D]j}
z|
� d	�\}}
Wn"t!�y�|�
td��Yn0zt#|
�}
Wnt!�yYn0|
|d
|<�q�|j$�r>d|d<d}z�|j�pP|j}t%|���t&��lt'|j|j|j	|j|j(||||j)|j*|j+|j,|j-|j.�}|�/|j|�|j0Wd�Wd�WS1�s�0YWd�n1�s�0YWn:tt1f�y<}zt2||||�WYd}~dSd}~00dS)z'Sphinx build "main" command-line entry.Nz	.doctreeszcannot find files %rz&cannot combine -a option and filenamesr]r1�wzcannot open warning file %r: %s�=rNz1-D option argument must be in the form name=valuez1-A option argument must be in the form name=valuezhtml_context.%sTrVr)3rg�
parse_argsrQrPr?rL�osr�joinrArB�isfilerR�errorrrIr\rrr$�stdoutrrXrYr_rr�dirname�open�	ExceptionrrS�split�
ValueErrorrTr4rVrrr	rErJr`rUr&r7raZbuildZ
statuscoder'r/)rhrerrBZ
missing_files�filename�statusZwarningrqr_Zwarnfp�excZ
confoverrides�val�keyrrPr-r-r.�
build_main�s�



�



�Zr}cCsNtj�tjd�tj�tj�td�d�|dd�dgkrBt	|�St
|�SdS)N��locale�sphinxrNz-M)r�r�	setlocale�LC_ALLZinit_consolernrrorrjr})rhr-r-r.�main#s
r��__main__)6�__doc__r5rrr2rnr r$r"r�typingrrrZdocutils.utilsrZ
sphinx.localer�rrZsphinx.applicationr	Z
sphinx.errorsr
rZsphinx.utilrr
rZsphinx.util.consolerrrrZsphinx.util.docutilsrrZsphinx.util.osutilrrr�
BaseExceptionr/r)r4r8rbrgrhrjr}r��__name__�exitr-r-r-r.�<module>s8
4_""W"



Youez - 2016 - github.com/yon3zu
LinuXploit