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__/make_mode.cpython-39.pyc
a

�ab��@s�dZddlZddlZddlZddlmZddlmZddlZddlm	Z	ddl
mZmZm
Z
mZddlmZmZgd�ZGd	d
�d
�Zeeed�dd
�ZdS)a�
    sphinx.cmd.make_mode
    ~~~~~~~~~~~~~~~~~~~~

    sphinx-build -M command-line handling.

    This replaces the old, platform-dependent and once-generated content
    of Makefile / make.bat.

    This is in its own module so that importing it is fast.  It should not
    import the main Sphinx modules (like sphinx.applications, sphinx.builders).

    :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�N)�path)�List)�
build_main)�blue�bold�color_terminal�nocolor)�cd�rmtree))�Zhtmlzto make standalone HTML files)rZdirhtmlz2to make HTML files named index.html in directories)rZ
singlehtmlz to make a single large HTML file)r�picklezto make pickle files)rZjsonzto make JSON files)rZhtmlhelpz+to make HTML files and an HTML help project)rZqthelpz'to make HTML files and a qthelp project)rZdevhelpz(to make HTML files and a Devhelp project)rZepubzto make an epub)r�latexz9to make LaTeX files, you can set PAPER=a4 or PAPER=letter)�posixZlatexpdfz.to make LaTeX and PDF files (default pdflatex))rZ
latexpdfjaz8to make LaTeX files and run them through platex/dvipdfmx)r�textzto make text files)rZmanzto make manual pages)r�texinfozto make Texinfo files)r�infoz3to make Texinfo files and run them through makeinfo)r�gettextzto make PO message catalogs)rZchangesz9to make an overview of all changed/added/deprecated items)rZxmlz!to make Docutils-native XML files)rZ	pseudoxmlz0to make pseudoxml-XML files for display purposes)rZ	linkcheckz)to check all external links for integrity)rZdoctestz>to run all doctests embedded in the documentation (if enabled))rZcoveragez7to run coverage check of the documentation (if enabled))rZcleanz+to remove everything in the build directoryc@s�eZdZeeeedd�dd�Zeed�dd�Zed�d	d
�Zdd�dd�Z	ed�d
d�Z
ed�dd�Zed�dd�Zed�dd�Z
deeed�dd�ZdS)�MakeN)�srcdir�builddir�opts�returncCs&||_||_||_tj�dd�|_dS)N�MAKE�make)rrr�os�environ�get�makecmd)�selfrrr�r�8/usr/lib/python3.9/site-packages/sphinx/cmd/make_mode.py�__init__:sz
Make.__init__)�compsrcGstj|jg|�R�S)N)r�joinr)rr"rrr �
builddir_join@szMake.builddir_join)rcCs�t�|j�}t�|j�}t�|j�s(dSt�|j�sFtd|j�dS||kr`td|j�dSt�||g�|kr�td|j�dStd|j�t�	|j�D]}t
|�|��q�dS)NrzError: %r is not a directory!�z&Error: %r is same as source directory!z.Error: %r directory contains source directory!zRemoving everything under %r...)r�abspathrr�exists�isdir�print�
commonpathr�listdirr
r$)rrr�itemrrr �build_cleanCs"zMake.build_cleancCspt�st�ttdtj��tdtd�fd�tD]2\}}}|rPtj	|kr8tdt|�
d��|f�q8dS)Nz
Sphinx v%sz'Please use `make %s' where %s is one of�target�z  %s  %s�
)rrr)r�sphinxZ__display_version__r�BUILDERSr�name�ljust)rZosnameZbname�descriptionrrr �
build_helpVszMake.build_helpcCs�|�d�dkrdStjdkr,tj�dd�}n|j}zBt|�d��� t	�
|dg�Wd�WS1sh0YWn ty�td|�YdS0dS�	Nr
rr%�win32rzmake.batzall-pdf�Error: Failed to run: %s�
�run_generic_build�sys�platformrrrrr	r$�
subprocess�call�OSErrorr)�rrrrr �build_latexpdf`s
2zMake.build_latexpdfcCs�|�d�dkrdStjdkr,tj�dd�}n|j}zBt|�d��� t	�
|dg�Wd�WS1sh0YWn ty�td|�YdS0dSr7r:rArrr �build_latexpdfjaos
2zMake.build_latexpdfjacCs~|�d�dkrdSzDt|�d���"t�|jdg�Wd�WS1sJ0YWn"tyxtd|j�YdS0dS)Nrrr%rr9)r;r	r$r>r?rr@r))rrrr �
build_info~s4zMake.build_infocCs&|�dd�}|jd|d�dkr"dSdS)Nrz	.doctrees)�
doctreedirrr%)r$r;)rZdtdirrrr �
build_gettext�szMake.build_gettext)�builderrErcCsft�dd�}|j}|dvr0|�dd|dg�|durB|�d�}d|d	||j|�|�g}t||�S)
NZPAPERr)Za4Zletterz-Dzlatex_elements.papersize=ZpaperZdoctreesz-bz-d)r�getenvr�extendr$rr)rrGrEZ	papersizer�argsrrr r;�s
�zMake.run_generic_build)N)�__name__�
__module__�__qualname__�strrr!r$�intr-r6rBrCrDrFr;rrrr r9s

r)rJrcCsjt|�dkrtdtjd�dSt|d|d|dd��}d|d}t||�r\t||��S|�|d�S)N�zJError: at least 3 arguments (builder, source dir, build dir) are required.)�filer%r/Zbuild_r)�lenr)r<�stderrr�hasattr�getattrr;)rJrZ
run_methodrrr �
run_make_mode�s�
rV)�__doc__rr>r<r�typingrr1Zsphinx.cmd.buildrZsphinx.util.consolerrrrZsphinx.util.osutilr	r
r2rrNrOrVrrrr �<module>se

Youez - 2016 - github.com/yon3zu
LinuXploit