U
    /e#                     @  sL   d Z ddlmZ ddlZeeZddlmZ ddl	m
Z
 dZd
dd	ZdS )z> Install some functions for the bokeh theme to make use of.


    )annotationsN)	Resources)settings)get_sphinx_resourcesFc                 C  s   t  }|d krtdd}nP|dkr2tddd}n:|dr`|dd	 }tdd
| dd}ntd|d}| r||jd |S )NZcdn)modelocalserverz/en/latest/)r   Zroot_urlztest::   z/en//)r   versionz	bokeh-api)r   docs_cdnr   
startswithsplitZjs_componentsappend)Zinclude_bokehjs_apir   	resourcesr    r   8/tmp/pip-unpacked-wheel-f5fndrjf/bokeh/sphinxext/util.pyr   ,   s    
r   )F)__doc__
__future__r   logging	getLogger__name__logZbokeh.resourcesr   Zbokeh.settingsr   __all__r   r   r   r   r   <module>   s   
