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__/quickstart.cpython-39.opt-2.pyc
a

�ab�]�
@s(ddlZddlZddlZddlZddlZddlmZddlmZddlm	Z	m
Z
mZmZm
Z
z:ddlZejr�dejvr�e�d�dZne�d�d	ZWney�dZd	ZYn0dd
lmZddlZddlmZmZddlmZdd
lmZmZmZmZmZddl m!Z!ddl"m#Z#eded�fded�fded�fded�fded�fded�fded�fded�fd ed!�fd"ed#�fg
�Z$d$d	d%dd&d'ddd(�Z%d)Z&ej'd*k�r�d+Z(nd,Z(e)e)d-�d.d/�Z*Gd0d1�d1e+�Z,e)e)d2�d3d4�Z-e)e)d2�d5d6�Z.e)e)d2�d7d8�Z/e)e)d2�d9d:�Z0e)e
e)ge)fd;�d<d=�Z1e)e2d2�d>d?�Z3e)e)d2�d@dA�Z4e)e)d2�dBdC�Z5de0fe)e)e
e)ge	fe
e)e2fdD�dEdF�Z6GdGdH�dHe#�Z7eddI�dJdK�Z8dYee2e2e)ddL�dMdN�Z9ee2dI�dOdP�Z:ej;dQ�dRdS�Z<ej=dTd�fee)e>dU�dVdW�Z?e@dXk�r$e�Ae?ej=dTd���dS)Z�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 modulesZdoctestz2automatically test code snippets in doctest blocksZintersphinxz7link between Sphinx documentation of different projectsZtodoz9write "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 MathJaxZifconfigz7conditional 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�.�_�.rst�index)r�sep�dot�language�suffix�master�makefile�	batchfilez> �win32rZpurple)�prompt�returncCs*tjdkrt|dd�td�St|�SdS)Nr ���end)�sys�platform�print�input)r!�r*�9/usr/lib/python3.9/site-packages/sphinx/cmd/quickstart.py�
term_inputLs
r,c@seZdZdS)�ValidationErrorN)�__name__�
__module__�__qualname__r*r*r*r+r-Wsr-��xr"cCs$t�|�}t�|�s ttd���|S)NzPlease enter a valid path name.)r�
expanduser�isdirr-r
�r2r*r*r+�is_path[s

r6cCs|dkr|St|�S�Nr#)r6r5r*r*r+�is_path_or_emptybsr8cCs|S�Nr*r5r*r*r+�allow_emptyhsr:cCs|sttd���|S)NzPlease enter some text.)r-r
r5r*r*r+�nonemptylsr;)�lr"csttd��fdd�}|S)Nr1cs"|�vrttd�d�����|S)NzPlease enter one of %s.�, )r-r
�joinr5�r<r*r+�valsszchoice.<locals>.val)�str)r<r@r*r?r+�choicersrBcCs$|��dvrttd���|��dvS)N)�Y�YES�NZNOzPlease enter either 'y' or 'n'.)rCrD)�upperr-r
r5r*r*r+�booleanzsrGcCs,|dd�dkrt|�dks(ttd���|S)Nr�rz2Please enter a file suffix, e.g. '.rst' or '.txt'.)�lenr-r
r5r*r*r+r�srcCs|Sr9r*r5r*r*r+�ok�srJ)�text�default�	validatorr"c
Cs�|durtd||f}nt|d}tr,n"tr@tt|dd�}ntt|dd�}t|���}|rf|sf|}z||�}Wq�ty�}z,tt	dt
|���WYd}~qWYd}~q�d}~00q�q|S)Nz	%s [%s]: z: T)Z
input_modeFz* )�
PROMPT_PREFIX�USE_LIBEDIT�readliner�COLOR_QUESTIONr,�stripr-r(rrA)rKrLrMr!r2�errr*r*r+�	do_prompt�s$"rTcsJeZdZedd��fdd�Zeed�dd�Zeeed��fd	d
�Z�Z	S)�QuickstartRendererN)�templatedirr"cs|pd|_t���dSr7)rV�super�__init__)�selfrV��	__class__r*r+rX�s
zQuickstartRenderer.__init__)�
template_namer"cCs0t�|jt�|��}|jr(t�|�r(dSdSdS)NTF)rr>rV�basename�exists)rYr\�templater*r*r+�_has_custom_template�sz'QuickstartRenderer._has_custom_template)r\�contextr"cs<|�|�r*t�|jt�|��}|�||�St��||�SdSr9)r`rr>rVr]Zrender_from_filerW�render)rYr\raZcustom_templaterZr*r+rb�s
zQuickstartRenderer.render)
r.r/r0rArX�boolr`rrb�
__classcell__r*r*rZr+rU�srU)�dr"c	Cstttd��t�t�ttd��d|vrNt�tttd��|d�n&t�ttd��ttd�dt�|d<t�t�|dd��s�t�t�|dd	d��r�t�tttd
���ttd��t�ttd�d
t	�|d<|dstt
�d�qtd|v�r"t�ttd��ttd�dt�|d<d|v�rRt�ttd��ttd�dt
�|d<d|v�r~t�ttd��ttd��|d<d|v�r�ttd��|d<d|v�r�t�ttd��ttd�d
t�|d<d|v�r�ttd �|dt�|d<d!|v�r.t�ttd"��ttd#�d$�|d!<|d!d$k�r.d|d!<d%|v�r^t�ttd&��ttd'�d(t�|d%<d)|v�r�t�ttd*��ttd+�d,�|d)<t�t�|d|d)|d%���s�t�t�|dd	|d)|d%���r(t�tttd-�|d)|d%��ttd.��t�ttd/�|d)�|d)<�q�d0|v�r�ttd1��g|d0<t��D]2\}}td2||fdt��rN|d0�d3|��qNd4d5h�|d0��r�ttd6��|d0�d4�d7|v�r�t�ttd8��ttd9�d:t�|d7<d;|v�r�ttd<�d:t�|d;<t�dS)=Nz,Welcome to the Sphinx %s quickstart utility.zyPlease enter values for the following settings (just press Enter to
accept a default value, if one is given in brackets).rzSelected root path: %sz&Enter the root path for documentation.zRoot path for the documentationr�conf.py�sourcezDError: an existing conf.py has been found in the selected root path.z>sphinx-quickstart will not overwrite existing Sphinx projects.z4Please enter a new root path (or just Enter to exit)r#rHrz�You have two options for placing the build directory for Sphinx output.
Either, you use a directory "_build" within the root path, or you separate
"source" and "build" directories within the root path.z+Separate source and build directories (y/n)�nrz�Inside the root directory, two more directories will be created; "_templates"
for custom HTML templates and "_static" for custom stylesheets and other static
files. You can enter another prefix (such as ".") to replace the underscore.z(Name prefix for templates and static dirr�projectzIThe project name will occur in several places in the built documentation.zProject name�authorzAuthor name(s)�versiona-Sphinx has the notion of a "version" and a "release" for the
software. Each version can have multiple releases. For example, for
Python the version is something like 2.5 or 3.0, while the release is
something like 2.5.1 or 3.0a1. If you don't need this dual structure,
just set both to the same value.zProject version�releasezProject releasera3If the documents are to be written in a language other than English,
you can select a language here by its language code. Sphinx will then
translate text that it generates into that language.

For a list of supported codes, see
https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-language.zProject language�enrz�The file name suffix for source files. Commonly, this is either ".txt"
or ".rst". Only files with this suffix are considered documents.zSource file suffixrraOne document is special in that it is considered the top node of the
"contents tree", that is, it is the root of the hierarchical structure
of the documents. Normally, this is "index", but if your "index"
document is a custom template, you can also set this to another filename.z-Name of your master document (without suffix)rzKError: the master file %s has already been found in the selected root path.z7sphinx-quickstart will not overwrite the existing file.zIPlease enter a new file name, or rename the existing file and press Enter�
extensionszDIndicate which of the following Sphinx extensions should be enabled:z%s: %s (y/n)�
sphinx.ext.%szsphinx.ext.imgmathzsphinx.ext.mathjaxzZNote: imgmath and mathjax cannot be enabled at the same time. imgmath has been deselected.rz�A Makefile and a Windows command file can be generated for you so that you
only have to run e.g. `make html' instead of invoking sphinx-build
directly.zCreate Makefile? (y/n)�yrz"Create Windows command file? (y/n))r(rr
rrTr6r�isfiler>r8r&�exitrGrJr:r�
EXTENSIONS�items�append�issubset�remove)re�name�descriptionr*r*r+�ask_user�s���








$"�
��


rz)re�	overwrite�silentrVr"cs�t|d�}d�vrd�d<d�vr*d�d<�d�d<t���d<t�d	�d
�d<��dg�t�d
�d�d�d<tj��d��d<t	�d��dr�t�
�dd�n�d}t	|��dr�t�
�dd�}d�d<n:t�
|�dd�}tt�ddddg�}d�
|��d<t	|�t	t�
|�dd��t	t�
|�dd��d;t
t
t
dd���fdd�
}|�r�tj�
|d�nd}	|	�r�t�|	��s�tj�
tddd�}	t|	��}
|
��}Wd�n1�s�0Y|t�
|d �|�|���t�
|�d�d!�}|�d"��rFd#}
ttd$|
��|||�d"���n|||�d%�����d&�d'u�rrd(}d)}nd*}d+}�d,d'u�r܈d�r�dnd-�d.<�d�r�dn
�dd�d/<|t�
�dd0�|�|��d1��d2d'u�r>�d�r�dnd-�d.<�d�rdn
�dd�d/<|t�
�dd3�|�|��d4�|�rHdSt�tttd5���t�ttd6�|dd7��d,�s��d2�r�ttd8��nttd9�||f�ttd:��t�dS)<N)rVZ
mastertoctreer#Zmastertocmaxdepth�rZroot_docZnowri�=Zproject_underlinernz%Yr=rj�	copyrightrrrgZbuild�exclude_patternsrz	Thumbs.dbz	.DS_Store�	templates�static)�fpath�content�newliner"cs~�st�|�sbd�vr&ttd�|�t|dd|d��}|�|�Wd�qz1sV0Ynd�vrzttd�|�dS)N�quietzCreating file %s.Zwtzutf-8)�encodingr�z!File %s already exists, skipping.)rrqr(r
�open�write)r�r�r��f�rer{r*r+�
write_filems*zgenerate.<locals>.write_filez	conf.py_tZ
quickstartrfrzquickstart/master_doc.rst_tz{A custom template `master_doc.rst_t` found. It has been renamed to `root_doc.rst_t`.  Please rename it on your project too.rzquickstart/root_doc.rst_t�	make_modeTzquickstart/Makefile.new_tzquickstart/make.bat.new_tzquickstart/Makefile_tzquickstart/make.bat_trrZrsrcdirZ	rbuilddir�Makefile�
r�make.batz
z:Finished: An initial directory structure has been created.zYYou should now populate your master file %s and create other documentation
source files. r$z<Use the Makefile to build the docs, like so:
   make builderzYUse the sphinx-build command to build the docs, like so:
   sphinx-build -b builder %s %szPwhere "builder" is one of the supported builders, e.g. html, latex or linkcheck.)N)rU�time�asctimer
�
setdefault�strftime�osr�abspathrr>�map�reprrArqrr��readZ
render_stringr`r(rrb�getrr
)rer{r|rVr_ZsrcdirZbuilddirr�r�Z	conf_pathr�Z	conf_textZ
masterfile�msgZmakefile_templateZbatchfile_templater*r�r+�generateIs�
 

�

(�����r�cCs�|d}t�|�sdSt�|�s$dSddhtt�|��@r>dS|drptj�d|�}t�|�sbdSt�|�spdSd|d	d
|d	d|d|d
g}t|�tt�|��@r�dSdS)NrTFr�r�rrgrfrr�r�rr)rr^r4�setr��listdirr>)re�dir�reserved_namesr*r*r+�	valid_dir�s*





�r�)r"cCs�td�}tjdtd�|d�}|jdddddtd	�d
�|jddd
dtd�|jddddtd�d�|�td��}|jddddtd�d
�|jdddtd�d�|jddd td!�d"�|�td#��}|jd$d%d&d'td(�d)�|jd*d+d,d-td.�d)�|jd/d0dd1td2�d3�|jd4d5d6d7td8�d)�|jd9d:d;d<td=�d)�|jd>d?d@tdA�d"�|jdBdCdDtdE�d"�|jdFddGtdH�dI�|�tdJ��}tD]*}|jdK|dLdM|dNtdO�|dP��q�|jdQdRdNdStdT�dU�|�tdV��}|jdWddXdYtdZ�d
�|jd[ddXtd\�d�|jd]dd^dYtd_�d
�|jd`dd^tda�d�|jdbdcddddYtde�d
�|jdfdgdddtdh�d�|�tdi��}|jdjdkdldmtdn�d)�|jdodpdSdqtdr�ds�|S)tNz�
Generate required files for a Sphinx project.

sphinx-quickstart is an interactive tool that asks some questions about your
project and then generates a complete documentation directory and sample
Makefile to be used with sphinx-build.
z %(prog)s [OPTIONS] <PROJECT_DIR>z:For more information, visit <https://www.sphinx-doc.org/>.)�usage�epilogryz-qz--quiet�
store_truer�z
quiet mode)�action�destrL�helpz	--versionrkZshow_versionz%%(prog)s %s)r�r�rkrZPROJECT_DIRr�?zproject root)�metavarrL�nargsr�zStructure optionsz--seprz,if specified, separate source and build dirsz--no-sep�store_falsez/if specified, create build dir under source dir)r�r�r�z--dot�DOTrz&replacement for dot in _templates etc.)r�rLr�zProject basic optionsz-pz	--projectZPROJECTrizproject name)r�r�r�z-az--authorZAUTHORrjzauthor namesz-vZVERSIONr#zversion of project)r�r�rLr�z-rz	--releaseZRELEASErlzrelease of projectz-lz
--language�LANGUAGErzdocument languagez--suffixZSUFFIXrzsource file suffixz--masterZMASTERrzmaster document namez--epubFzuse epub)r�rLr�zExtension optionsz--ext-%s�append_constrornzenable %s extension)r��constr�r�z--extensionsrsruzenable arbitrary extensions)r�r�r�r�zMakefile and Batchfile creationz
--makefilerTzcreate makefilez
--no-makefilezdo not create makefilez--batchfilerzcreate batchfilez--no-batchfilezdo not create batchfilez-mz--use-make-moder�z#use make-mode for Makefile/make.batz-Mz--no-use-make-modez*do not use make-mode for Makefile/make.batzProject templatingz-tz
--templatedirZTEMPLATEDIRrVz%template directory for template filesz-dz
NAME=VALUE�	variableszdefine a template variable)r�r�r�r�)r
�argparse�ArgumentParser�add_argumentr�add_argument_grouprs)ry�parser�group�extr*r*r+�
get_parser�s����
���
�
������
�
�
�
�

��
���
�
�
�
�r�rH)�argvr"c

Cstj�tjd�tj�tj�td�d�t	�s4t
�t�}z|�|�}Wn*t
yr}z|jWYd}~Sd}~00t|�}dd�|��D�}|�dg�|ddd�D].}d|vr�|d�|�|d�|�d��q�z�d|v�rd	d
h�|��sttd��WdShd
��|��r~|�dd�|�d|d�t��}|�|�|}t|��s�t�tttd���ttd��WdSnt|�Wn(ttf�y�t�td�YdS0|� dg�D]F}z|�d�\}}	|	||<Wn$t!�yttd�|�Yn0�q�t"|d|j#d�dS)Nr#�locale�sphinxcSsi|]\}}|dur||�qSr9r*)�.0�k�vr*r*r+�
<dictcomp>0�zmain.<locals>.<dictcomp>rn�,r�rirjzH"quiet" is specified, but any of "project" or "author" is not specified.rH>r�rjrirkrlzHError: specified path is not a directory, or sphinx files already exist.zWsphinx-quickstart only generate into a empty directory. Please specify a new root path.z[Interrupted.]�r�r~zInvalid template variable: %sF)r{rVr)$r�r��	setlocale�LC_ALLZinit_consoler�rr>rrrr��
parse_args�
SystemExit�code�varsrtr�rw�extend�splitrvr(r
�DEFAULTS�copy�updater�rrz�KeyboardInterrupt�EOFErrorr��
ValueErrorr�rV)
r�r��argsrSrer�Zd2�variablerx�valuer*r*r+�main sZ


r��__main__)TFN)Br�r�r�r&r��collectionsrr�typingrrrrrrP�__doc__�parse_and_bindrO�ImportErrorZdocutils.utilsr
Z
sphinx.localer�rrr
Zsphinx.util.consolerrrrrZsphinx.util.osutilrZsphinx.util.templaterrsr�rNr'rQrAr,�	Exceptionr-r6r8r:r;rBrcrGrrJrTrUrzr�r�r�r�r��intr�r.rrr*r*r*r+�<module>s�












��,
�eU"A


Youez - 2016 - github.com/yon3zu
LinuXploit