T!\c@s)ddlZddlmZdZdS(iN(tServiceDocumentercCstjj|dd}tjj|s:tj|nxg|jD]Y}t||j}tjj||d}t|d}|j |WdQXqGWdS(sGenerates 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 t referencetservicess.rsttwbN( tostpathtjointexiststmakedirstget_available_servicesRtdocument_servicetopentwrite(troot_dirtsessiontservices_doc_patht service_nametdocstservice_doc_pathtf((s4/tmp/pip-install-usGedi/boto3/boto3/docs/__init__.pyt generate_docss  (Rtboto3.docs.serviceRR(((s4/tmp/pip-install-usGedi/boto3/boto3/docs/__init__.pyt s