o
    é’Oj4  ã                   @   s,   d dl Z d dlmZ d dlmZ dd„ ZdS )é    N©ÚDEPRECATED_SERVICE_NAMES)ÚServiceDocumenterc              	   C   sž   t j | dd¡}t j |¡st  |¡ dd„ | ¡ D ƒ}|D ].}t|||ƒ ¡ }t j ||› d�¡}t|dƒ�}| 	|¡ W d  ƒ n1 sGw   Y  qdS )aŒ  Generates the reference documentation for botocore

    This will go through every available AWS service and output ReSTructured
    text files documenting each service.

    :param root_dir: The directory to write the reference files to. Each
        service's reference documentation is located at
        root_dir/reference/services/service-name.rst

    :param session: The boto3 session
    Ú	referenceÚservicesc                 S   s   g | ]}|t vr|‘qS © r   )Ú.0Úservicer   r   úY/var/www/html/pharmsmart-cdr-gen/venv/lib/python3.10/site-packages/boto3/docs/__init__.pyÚ
<listcomp>%   s    ýÿz!generate_docs.<locals>.<listcomp>z.rstÚwbN)
ÚosÚpathÚjoinÚexistsÚmakedirsÚget_available_servicesr   Údocument_serviceÚopenÚwrite)Úroot_dirÚsessionÚservices_doc_pathÚavailable_servicesÚservice_nameÚdocsÚservice_doc_pathÚfr   r   r
   Úgenerate_docs   s(   
þÿþ
ÿÿ€ùr   )r   Úbotocore.docsr   Úboto3.docs.servicer   r   r   r   r   r
   Ú<module>   s   