܁[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((sh/private/var/folders/71/gccz42bs2nl23mxwq3vp1qmhw5xjlw/T/pip-install-k836tR/boto3/boto3/docs/__init__.pyt generate_docss  (Rtboto3.docs.serviceRR(((sh/private/var/folders/71/gccz42bs2nl23mxwq3vp1qmhw5xjlw/T/pip-install-k836tR/boto3/boto3/docs/__init__.pyt s