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/builders/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

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

�ab�$�
@s�dZddlZddlmZddlmZmZmZmZmZm	Z	ddl
mZddlm
Z
ddlmZddlmZdd	lmZmZdd
lmZddlmZddlmZdd
lmZddlmZddlm Z m!Z!ddl"m#Z#m$Z$m%Z%ddl&m'Z'ddl(m)Z)ddl*m+Z+ddl,m-Z-ddl.m/Z/m0Z0m1Z1ddl2m3Z3m4Z4e#�5e6�Z7ej�8edd�Z9Gdd�de�Z:eeee;e;e;e;e;e;e;fd�dd�Z<eee;efd�dd �Z=dS)!z�
    sphinx.builders.texinfo
    ~~~~~~~~~~~~~~~~~~~~~~~

    Texinfo builder.

    :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�N)�path)�Any�Dict�Iterable�List�Tuple�Union)�nodes)�OptionParser)�
FileOutput)�Node)�addnodes�package_dir)�Sphinx)�Builder)�Config)�ImageAdapter)�NoUri)�_�__)�logging�progress_message�status_iterator)�	darkgreen)�new_document)�copy_asset_file)�inline_all_toctrees)�SEP�	ensuredir�make_filename_from_project)�TexinfoTranslator�
TexinfoWriterZ	templates�texinfoc@s�eZdZdZdZdZed�Zejdkr2eed�7Zgd�Z	e
Zdd�d	d
�Ze
eeefd�dd�Zd"eeed
�dd�Zd#eeeed�dd�Zdd�dd�Zedd�dd�Zeeeeejd�dd�Zdd�dd�Zedd�dd�Zdd�d d!�ZdS)$�TexinfoBuilderz=
    Builds Texinfo output to create Info documentation.
    r"z$The Texinfo files are in %(outdir)s.�posixzl
Run 'make' in that directory to run these through makeinfo
(use 'make info' here to do that automatically).)z	image/pngz
image/jpegz	image/gifN)�returncCsg|_g|_dS�N)�docnames�
document_data��self�r+�;/usr/lib/python3.9/site-packages/sphinx/builders/texinfo.py�init7szTexinfoBuilder.initcCsdS)Nz
all documentsr+r)r+r+r,�get_outdated_docs;sz TexinfoBuilder.get_outdated_docs)�docname�typr%cCs"||jvrt||��nd|SdS)N�%)r'r)r*r/r0r+r+r,�get_target_uri>s
zTexinfoBuilder.get_target_uri)�from_�tor0r%cCs|�||�Sr&)r2)r*r3r4r0r+r+r,�get_relative_uriDszTexinfoBuilder.get_relative_uricCs�dd�|jjD�}|s(t�td��dSg|_|D]d}|d}||jjvr\t�td�|�q2|j�	|�|�
td�r�|dd�}|j�	||df�q2dS)	NcSsg|]}t|��qSr+)�list)�.0�xr+r+r,�
<listcomp>I�z5TexinfoBuilder.init_document_data.<locals>.<listcomp>zGno "texinfo_documents" config value found; no documents will be writtenrz?"texinfo_documents" config value references unknown document %s�index����)�config�texinfo_documents�logger�warningr�titles�envZall_docsr(�append�endswithr)r*Zpreliminary_document_data�entryr/r+r+r,�init_document_dataHs 
�z!TexinfoBuilder.init_document_data)�ignoredr%c	Gs�|��|jD�]�}|dd�\}}}}|d7}d}}}	t|�dkrZ|dd�\}}}	d}
t|�dkrr|d}
tt�|j|�dd�}ttd	�|��,|j	j
p�g}|j||
|d
�}
Wd�n1s�0Yttd����|�|
�t
|�}t|jj|fdd
���}||_||_|dd�d|_|j	j|_|�p<d|_|	�pHd|_|�pTd|_||_||
_|�|
|�|�|dd��Wd�q1�s�0YqdS)N�z.texi���Fzutf-8)Zdestination_path�encodingz
processing %s)�
appendicesZwritingT)�defaults�
componentsZread_config_filesr<z.info)rGr(�lenrr�join�outdirrrr>�texinfo_appendices�assemble_doctreeZpost_process_imagesr!r
rC�settingsZget_default_values�author�titleZtexinfo_filename�texinfo_elementsZtexinfo_dir_entryZtexinfo_dir_categoryZtexinfo_dir_descriptionr/�write�copy_image_files)r*rHrFr/�
targetnamerXrWZdirentry�description�category�toctree_onlyZdestinationrNZdoctreeZ	docwriterrVr+r+r,rZ[sH�.
�

zTexinfoBuilder.write)�	indexfiler_rNr%c	Cs�t|g|�|_tjt|�ddd�|j�|�}||d<|r�td�}t�	�}|t�
dd�7}||7}|�tj
�D]}||7}qr|}t||j||t|g�}||d<|D]"}	|j�|	�}
|	|
d<|�|
�q�t�d�t�td��|j�|||�|�tj�D]�}|d	}	|d
}t�||�g}
|jD]Z\}}|	�|��r&|
�t�td�td���|
�t�||��|
�t�dd���q��q&|�|
�q�|S)
N� T�Znonlr/z<texinfo output>z<Set title in conf.py>rJzresolving references...Z
refdocnameZrefsectnamez (in �))�setr'r@�inforrCZget_doctreerr	�sectionrX�findallr
ZtoctreerrDrZresolve_referencesZpending_xrefZemphasisrB�
startswith�TextrZreplace_self)r*r`r_rNZtreeZnew_treeZnew_sectZnodeZ	largetreer/ZappendixZpendingnodeZsectnameZnewnodesZsubdirrXr+r+r,rU�sJ�
�

zTexinfoBuilder.assemble_doctreecCs|��dSr&)�copy_support_filesr)r+r+r,�finish�szTexinfoBuilder.finish)r\r%cCs�|jr�t|jj�j}t|jtd�dt|j�|jj|d�D]�}|j|}z:t	�
|j|d�}t|�t
t	�
|j|�t	�
||��Wq8ty�}z(t�td�t	�
|j|�|�WYd}~q8d}~00q8dS)Nzcopying images... Zbrown)�stringify_funcz-figureszcannot copy image file %r: %s)Zimagesr�apprCZget_original_image_urirrrQ�	verbosityrrRrSrrZsrcdir�	Exceptionr@rA)r*r\rl�src�destZimagedir�errr+r+r,r[�s"�


�
�zTexinfoBuilder.copy_image_filesc
Cs�zTttd���4tjddd�ttj�td�|j	�Wd�n1sH0YWn4t
y�}zt�td�|�WYd}~n
d}~00dS)Nzcopying Texinfo support filesz	Makefile TrbZMakefilezerror writing file Makefile: %s)rrr@rer�osrrR�template_dirrS�OSErrorrA)r*rrr+r+r,rj�s8z!TexinfoBuilder.copy_support_files)N)N)�__name__�
__module__�__qualname__�__doc__�name�formatr�epilogrsZsupported_image_typesr Zdefault_translator_classr-r�strrr.r2r5rGrrZ�boolr	ZdocumentrUrkr[rjr+r+r+r,r#'s$
%*r#)r>r%cCs$t|j�}|j||j|j|ddfgS)z, Better default texinfo_documents settings. zOne line description of projectZ
Miscellaneous)rZprojectZroot_docrW)r>�filenamer+r+r,�default_texinfo_documents�s
�r�)rmr%cCs||�t�|�dtd�|�dgd�|�did�|�dddtg�|�ddd�|�dd	d�|�d
dd�dddd�S)
Nr?rTrYZtexinfo_domain_indicesTZtexinfo_show_urlsZfootnoteZtexinfo_no_detailmenuFZtexinfo_cross_referencesZbuiltin)�versionZparallel_read_safeZparallel_write_safe)Zadd_builderr#Zadd_config_valuer�r6)rmr+r+r,�setup�s
�r�)>ryrsr�typingrrrrrrZdocutilsr	Zdocutils.frontendr
Zdocutils.iorZdocutils.nodesrZsphinxr
rZsphinx.applicationrZsphinx.buildersrZ
sphinx.configrZ!sphinx.environment.adapters.assetrZ
sphinx.errorsrZ
sphinx.localerrZsphinx.utilrrrZsphinx.util.consolerZsphinx.util.docutilsrZsphinx.util.fileutilrZsphinx.util.nodesrZsphinx.util.osutilrrrZsphinx.writers.texinfor r!Z	getLoggerrvr@rRrtr#r}r�r�r+r+r+r,�<module>s6
 
 &

Youez - 2016 - github.com/yon3zu
LinuXploit