§
    €-Ph¿  ã                  ór   — d Z ddlmZ ddlZddlmZ ddlZerddlm	Z	 ddl
mZ ddlmZ dd„Zdd„Zdd„ZdS )z<To publish HTML docs at GitHub Pages, create .nojekyll file.é    )ÚannotationsN)ÚTYPE_CHECKING)ÚSphinx)ÚBuildEnvironment)ÚExtensionMetadataÚurlÚstrÚreturnc                óR   — | r$t           j                             | ¦  «        j        pdS )zGet the domain from a URL.Ú )ÚurllibÚparseÚurlparseÚhostname)r   s    úV/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/sphinx/ext/githubpages.pyÚ_get_domain_from_urlr      s%   € àÐ6•6”<×(Ò(¨Ñ-Ô-Ô6Ð<¸"Ð<ó    Úappr   Úenvr   ÚNonec                óº  — | j         j        dk    rdS | j         j                             d¦  «                             ¦   «          | j         j        dz  }t          | j        j        ¦  «        }|rW|                     d¦  «        sBt          |dd¬¦  «        5 }| 
                    |¦  «         ddd¦  «         dS # 1 swxY w Y   dS |                     d	¬
¦  «         dS )aK  Manage the ``.nojekyll`` and ``CNAME`` files for GitHub Pages.

    For HTML-format builders (e.g. 'html', 'dirhtml') we unconditionally create
    the ``.nojekyll`` file to signal that GitHub Pages should not run Jekyll
    processing.

    If the :confval:`html_baseurl` option is set, we also create a CNAME file
    with the domain from ``html_baseurl``, so long as it is not a ``github.io``
    domain.

    If this extension is loaded and the domain in ``html_baseurl`` no longer
    requires a CNAME file, we remove any existing ``CNAME`` files from the
    output directory.
    ÚhtmlNz	.nojekyllÚCNAMEz
.github.ioÚwzutf-8)ÚencodingT)Ú
missing_ok)ÚbuilderÚformatÚoutdirÚjoinpathÚtouchr   ÚconfigÚhtml_baseurlÚendswithÚopenÚwriteÚunlink)r   r   Ú
cname_pathÚdomainÚfs        r   Úcreate_nojekyll_and_cnamer+      s   € ð „{Ô˜VÒ#Ð#Øˆà„KÔ×Ò Ñ,Ô,×2Ò2Ñ4Ô4Ð4Ø”Ô# gÑ-€Jå! #¤*Ô"9Ñ:Ô:€Fàð +f—o’o lÑ3Ô3ð +Ý*˜c¨GÐ4Ñ4Ô4ð 	¸ð GŠGF‰OŒOˆOð	ð 	ð 	ñ 	ô 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	øøøð 	ð 	ð 	ð 	ð 	ð 	ð
 	×Ò TÐÑ*Ô*Ð*Ð*Ð*s   ÂB8Â8B<Â?B<r   c                óV   — |                       dt          ¦  «         t          j        ddœS )Nzenv-updatedT)ÚversionÚparallel_read_safe)Úconnectr+   ÚsphinxÚ__display_version__)r   s    r   Úsetupr2   5   s/   € Ø‡K‚KÕ8Ñ9Ô9Ð9åÔ-Ø"ðð ð r   )r   r	   r
   r	   )r   r   r   r   r
   r   )r   r   r
   r   )Ú__doc__Ú
__future__r   Úurllib.parser   Útypingr   r0   Úsphinx.applicationr   Úsphinx.environmentr   Úsphinx.util.typingr   r   r+   r2   © r   r   ú<module>r;      sÉ   ðØ BÐ Bà "Ð "Ð "Ð "Ð "Ð "à Ð Ð Ð Ø  Ð  Ð  Ð  Ð  Ð  à €€€àð 5Ø)Ð)Ð)Ð)Ð)Ð)Ø3Ð3Ð3Ð3Ð3Ð3Ø4Ð4Ð4Ð4Ð4Ð4ð=ð =ð =ð =ð
+ð +ð +ð +ð@ð ð ð ð ð r   