File: //usr/local/CyberCP/lib64/python3.10/site-packages/boto3/docs/__pycache__/__init__.cpython-310.pyc
o
�h5 � @ s, d dl Z d dlmZ d dlmZ dd� ZdS )� N��DEPRECATED_SERVICE_NAMES)�ServiceDocumenterc C s� t j�| dd�}t j�|�st �|� dd� |�� D �}|D ]-}t|||��� }t j�||d �}t|d��
}|� |� W d � n1 sFw Y qdS )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 loacated at
root_dir/reference/services/service-name.rst
:param session: The boto3 session
� reference�servicesc S s g | ]}|t vr|�qS � r )�.0�servicer r �F/usr/local/CyberCP/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