
    Tid                     |    d Z ddlZddlmZ ddlmZ ddlmZ ddlm	Z	 ddl
mZ dZeZ ee      Zd Zd	 Zd
 Zd Zy)zZ
Sphinx Read the Docs theme.

From https://github.com/ryan-roemer/sphinx-bootstrap-theme.
    N)path)version_info)_)	getLoggerz3.1.0c                      t         j                  t        d             t        j                  t        j
                  t        j
                  t                          } | S )z Return list of HTML theme paths.z}Calling get_html_theme_path is deprecated. If you are calling it to define html_theme_path, you are safe to remove that code.)loggerwarningr   r   abspathdirname__file__)cur_dirs    L/home/agent/.local/lib/python3.12/site-packages/sphinx_rtd_theme/__init__.pyget_html_theme_pathr      sD    
NN	  J  	K ll4<<X(>?@GN    c                    |j                   xs i }|j                  d      rt        j                  t	        d             |j                  d      rt        j                  t	        d             |j                  d      rt        j                  t	        d             d|j
                  v rt        j                  t	        d             y y )	Ncanonical_urlzXThe canonical_url option is deprecated, use the html_baseurl option from Sphinx instead.analytics_idz_The analytics_id option is deprecated, use the sphinxcontrib-googleanalytics extension instead.analytics_anonymize_ipziThe analytics_anonymize_ip option is deprecated, use the sphinxcontrib-googleanalytics extension instead.extra_css_filesz[The extra_css_file option is deprecated, use the html_css_files option from Sphinx instead.)html_theme_optionsgetr   r	   r   html_context)appconfigtheme_optionss      r   config_initiatedr       s    --3M)hi	
 (op	
 12yz	
 F///kl	
 0r   c                     t         |d<   t        j                  j                  dd      dk(  |d<   |d   r>t        j                  j	                         D ]  \  }}|j                  d      s|||<    y y )Nsphinx_version_infoREADTHEDOCSFTrueREADTHEDOCS_)sphinx_versionosenvironr   items
startswith)r   pagenametemplatenamecontextdoctreekeyvalues          r   extend_html_contextr-   7   so    &4W"# !jjnn]EBfLW]::++- 
&ZS%~. %
& 	r   c                    t         d   dk  rt        j                  d       | j                  d       | j                  j
                  rt        j                  d       t        dk\  r*| j                  d       ddlm	}  || | j                         | j                  d	t        j                  t        j                  t                           t        j                  t        j                  t        j                  t                    d
      }| j!                  d|       | j#                  dt$               d| j                  _        | j#                  dt(               dddS )Nr      zDPython 2 is not supported with sphinx_rtd_theme, update to Python 3.z6.0z6'html4_writer' is not supported with sphinx_rtd_theme.)   r   r   zsphinxcontrib.jquery)add_js_filessphinx_rtd_themelocalesphinxzconfig-initedu   zhtml-page-contextT)parallel_read_safeparallel_write_safe)python_versionr   errorrequire_sphinxr   html4_writerr"   setup_extensionsphinxcontrib.jqueryr1   add_html_themer   r
   r   r   joinadd_message_catalogconnectr   html_permalinks_iconr-   )r   jquery_add_js_filesrtd_locale_paths      r   setuprD   F   s   a1[\u
zzMN
 " 	23 	MC, )4<<X8N+OP iiT\\(-C DhOOHo6KK!12 '/CJJ# KK#%89"&tDDr   )__doc__r#   r   sysr   r7   r4   r"   sphinx.localer   sphinx.util.loggingr   __version____version_full____name__r   r   r   r-   rD    r   r   <module>rM      sJ    
  . 1  )  	8	
.
&$Er   