Skip to content

Commit

Permalink
Sms voice fix (#3640)
Browse files Browse the repository at this point in the history
Remove sms-voice from docs.
  • Loading branch information
jonathan343 authored Mar 29, 2023
1 parent 8204519 commit bad3273
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion boto3/docs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
# language governing permissions and limitations under the License.
import os

from botocore.docs import DEPRECATED_SERVICE_NAMES

from boto3.docs.service import ServiceDocumenter


Expand All @@ -31,7 +33,14 @@ def generate_docs(root_dir, session):
if not os.path.exists(services_doc_path):
os.makedirs(services_doc_path)

for service_name in session.get_available_services():
# Prevents deprecated service names from being generated in docs.
available_services = [
service
for service in session.get_available_services()
if service not in DEPRECATED_SERVICE_NAMES
]

for service_name in available_services:
docs = ServiceDocumenter(
service_name, session, services_doc_path
).document_service()
Expand Down

0 comments on commit bad3273

Please sign in to comment.