
                             S SK r S SKJr  S rg)    N)ServiceDocumenterc                    [         R                  R                  U SS5      n[         R                  R                  U5      (       d  [         R                  " U5        UR                  5        Hd  n[        X15      R                  5       n[         R                  R                  X#S-   5      n[        US5       nUR                  U5        SSS5        Mf     g! , (       d  f       Mx  = f)aq  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          &lib/third_party/boto3/docs/__init__.pygenerate_docsr      s     X{JG77>>+,,
%&668 7HHJ77<<f46"D)QGGDM *)	 9 *)s   6C
C$	)r   boto3.docs.servicer   r        r   <module>r      s    
 0r   