From b15d7fdade5c31ac19f8709de15392905bc6bcf1 Mon Sep 17 00:00:00 2001 From: Anastasia Dusak <61540676+k-a-il@users.noreply.github.com> Date: Wed, 16 Apr 2025 18:30:35 +0200 Subject: [PATCH] Updated script to generate feature catalog files to follow JSON schema for feature files --- scripts/generate_feature_catalog_page.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/scripts/generate_feature_catalog_page.py b/scripts/generate_feature_catalog_page.py index a8b03dcaaf..67d1ab5a4d 100644 --- a/scripts/generate_feature_catalog_page.py +++ b/scripts/generate_feature_catalog_page.py @@ -4,8 +4,6 @@ import yaml -DEFAULT_STATUS = 'unsupported' -DEFAULT_EMULATION_LEVEL = 'CRUD' FEATURES_FILE_NAME='features.yml' MD_FILE_HEADER = """--- @@ -39,16 +37,16 @@ def __init__(self, file_path: str): def add_service_section(self, feature_file_content: str): service_name = feature_file_content.get('name') - emulation_level = feature_file_content.get('emulation_level', DEFAULT_EMULATION_LEVEL) + emulation_level = feature_file_content.get('emulation_level') self.md_content.append(f"| **{service_name}** | [Details 🔍] | {emulation_level} | |") def add_features_rows(self, feature_file_content: str): for feature in feature_file_content.get('features', []): feature_name = feature.get('name', '') - documentation_page = feature.get('documentation_page') - if documentation_page: - feature_name = f'[{feature_name}]({documentation_page})' - status = feature.get('status', DEFAULT_STATUS) + aws_docs_url = feature.get('aws_documentation_url') + if aws_docs_url: + feature_name = f'[{feature_name}]({aws_docs_url})' + status = feature.get('status') limitations = feature.get('limitations', []) limitations_md = '\n '.join(limitations) if limitations else ''