Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit b15d7fd

Browse files
committed
Updated script to generate feature catalog files to follow JSON schema for feature files
1 parent 8acd294 commit b15d7fd

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

scripts/generate_feature_catalog_page.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
import yaml
66

7-
DEFAULT_STATUS = 'unsupported'
8-
DEFAULT_EMULATION_LEVEL = 'CRUD'
97
FEATURES_FILE_NAME='features.yml'
108

119
MD_FILE_HEADER = """---
@@ -39,16 +37,16 @@ def __init__(self, file_path: str):
3937

4038
def add_service_section(self, feature_file_content: str):
4139
service_name = feature_file_content.get('name')
42-
emulation_level = feature_file_content.get('emulation_level', DEFAULT_EMULATION_LEVEL)
40+
emulation_level = feature_file_content.get('emulation_level')
4341
self.md_content.append(f"| **{service_name}** | [Details 🔍] | {emulation_level} | |")
4442

4543
def add_features_rows(self, feature_file_content: str):
4644
for feature in feature_file_content.get('features', []):
4745
feature_name = feature.get('name', '')
48-
documentation_page = feature.get('documentation_page')
49-
if documentation_page:
50-
feature_name = f'[{feature_name}]({documentation_page})'
51-
status = feature.get('status', DEFAULT_STATUS)
46+
aws_docs_url = feature.get('aws_documentation_url')
47+
if aws_docs_url:
48+
feature_name = f'[{feature_name}]({aws_docs_url})'
49+
status = feature.get('status')
5250

5351
limitations = feature.get('limitations', [])
5452
limitations_md = '\n '.join(limitations) if limitations else ''

0 commit comments

Comments
 (0)