Current File : /opt/alt/python311/lib/python3.11/site-packages/boto3/docs/__pycache__//__init__.cpython-311.pyc
�
��;f5 � �, � d dl Z d dlmZ d dlmZ d� ZdS )� N��DEPRECATED_SERVICE_NAMES)�ServiceDocumenterc � � t j � | dd� � }t j � |� � st j |� � d� |� � � D � � }|D ]�}t
|||� � � � � }t j � ||dz � � }t |d� � 5 }|� |� � ddd� � n# 1 swxY w Y ��dS )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 �$ � g | ]
}|t v�|��S � r )�.0�services �F/opt/alt/python311/lib/python3.11/site-packages/boto3/docs/__init__.py�
<listcomp>z!generate_docs.<locals>.<listcomp>% s. � � � � ���2�2�2� �2�2�2� 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�fs r
�
generate_docsr"