
    Dh                         d dl Z d dlmZ d Zy)    N)ServiceDocumenterc                    t         j                  j                  | dd      }t         j                  j                  |      st        j                  |       |j                         D ]e  }t        ||      j                         }t         j                  j                  ||dz         }t        |d      5 }|j                  |       ddd       g y# 1 sw Y   rxY w)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servicesz.rstwbN)
ospathjoinexistsmakedirsget_available_servicesr   document_serviceopenwrite)root_dirsessionservices_doc_pathservice_namedocsservice_doc_pathfs          u/var/www/fastuser/data/www/generator.snapmosaic.io/flask_app/venv/lib/python3.12/site-packages/boto3/docs/__init__.pygenerate_docsr      s     X{JG77>>+,
%&668  w7HHJ77<<|f4
 "D) 	QGGDM	 	
	 	s   2CC	)r   boto3.docs.servicer   r        r   <module>r      s    
 0r   