| 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 : |
a
�abx1 � @ s� d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlmZ d dl m
Z
mZmZ d dl
mZ d dlZd dlmZmZ d dlmZ d dlmZ d dlmZ d d lmZmZmZ d d
lmZmZmZm Z d dl!m"Z"m#Z# d dl$m%Z%m&Z& ej'feee(e
dd
�dd�Z)e*e+d�dd�Z,e j-d�dd�Z.ej/dd� fee* e+d�dd�Z0ej/dd� fee* e+d�dd�Z1ej/dd� fee* e+d�dd�Z2e3dk�r�e�4e2ej/dd� �� dS )� 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�returnc C s( t |tj�rd S |jrHtttd��|d� t�� t� t
�� d � �n�t|d� |js^|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� d S )Nz5Exception occurred while building, starting debugger:)�file� zInterrupted!zreST markup error:r z%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�printr r � traceback� print_excZpost_mortem�sys�exc_info� verbosity�KeyboardInterruptr r r r
�category�str�UnicodeErrorr �RuntimeErrorr
�rstrip)r r r r Ztbpath� r- �4/usr/lib/python3.9/site-packages/sphinx/cmd/build.py�handle_exception# sf �
��
�
����r/ )�valuer c C s8 | dkrt �� S t| �}|dkr0t�td���n|S d S )N�autor z&job number should be a positive number)�multiprocessing� cpu_count�int�argparse�ArgumentTypeErrorr )r0 �jobsr- r- r. �
jobs_argumentW s r8 )r c C sx t jdtd�td�d�} | jddddt d � | 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� |jd4d5d6d7g td8�d9� |jd:d;d6d<g td=�d9� |jd>d?d6d@g tdA�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�versionZshow_versionz%%(prog)s %s)�action�destr<