9(Zc@s)ddlZddlmZdZdS(iN(tServiceDocumentercCstjj|dd}tjj|s:tj|nxg|jD]Y}t||j}tjj||d}t|d}|j |WdQXqGWdS(sfGenerates 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 t referencetservicess.rsttwbN( tostpathtjointexiststmakedirstget_available_servicesRtdocument_servicetopentwrite(troot_dirtsessiontservices_doc_patht service_nametdocstservice_doc_pathtf((s8/tmp/pip-build-wDUJoH/botocore/botocore/docs/__init__.pyt generate_docss  (Rtbotocore.docs.serviceRR(((s8/tmp/pip-build-wDUJoH/botocore/botocore/docs/__init__.pyt s