| 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/ext/__pycache__/ |
Upload File : |
a
�ab� � @ sr d Z ddlZddlZddlmZmZ ddlZddlmZ ddl m
Z
ee
dd�dd�Zeeeef d �d
d�Z
dS )z�
sphinx.ext.githubpages
~~~~~~~~~~~~~~~~~~~~~~
To publish HTML docs at GitHub Pages, create .nojekyll file.
:copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
� N)�Any�Dict)�Sphinx)�BuildEnvironment)�app�env�returnc C s� | j jdkr�ttj�| j jd�d��� | jj }|r�t
j�|�j
}|r�|�d�s�ttj�| j jd�d��}|�|� W d � n1 s�0 Y d S )NZhtmlz .nojekyllZwtz
.github.ioZCNAME)Zbuilder�format�open�os�path�joinZoutdir�closeZconfig�html_baseurl�urllib�parse�urlparse�hostname�endswith�write)r r r �domain�f� r �:/usr/lib/python3.9/site-packages/sphinx/ext/githubpages.py�create_nojekyll_and_cname s r )r r c C s | � dt� tjdd�S )Nzenv-updatedT)�versionZparallel_read_safe)Zconnectr �sphinxZ__display_version__)r r r r �setup"