diff --git a/README.md b/README.md index b6781908..dedc18ef 100644 --- a/README.md +++ b/README.md @@ -12,13 +12,13 @@ This is a monorepo containing all GHGA file backend microservices. ## Services: -[Download Controller Service](services/dcs/README.md) -[Encryption Key Store Service](services/ekss/README.md) -[File Ingest Service](services/fis/README.md) -[Internal File Registry Service](services/ifrs/README.md) -[Interrogation Room Service](services/irs/README.md) -[Purge Controller Service](services/pcs/README.md) -[Upload Controller Service](services/ucs/README.md) +[Download Controller Service](services/dcs) +[Encryption Key Store Service](services/ekss) +[File Ingest Service](services/fis) +[Internal File Registry Service](services/ifrs) +[Interrogation Room Service](services/irs) +[Purge Controller Service](services/pcs) +[Upload Controller Service](services/ucs) ## Development: diff --git a/scripts/update_readme_monorepo.py b/scripts/update_readme_monorepo.py index dbfcfb05..dabaa653 100755 --- a/scripts/update_readme_monorepo.py +++ b/scripts/update_readme_monorepo.py @@ -125,14 +125,14 @@ def read_package_description() -> str: return DESCRIPTION_PATH.read_text() -def get_service_readmes() -> str: +def get_service_links() -> str: """Get links to all service readmes.""" service_readme_links = [] for service_dir in sorted(list_service_dirs()): service_description = read_service_description(service_dir) - readme_link = service_dir.relative_to(ROOT_DIR) / "README.md" + readme_link = service_dir.relative_to(ROOT_DIR) if "-" in service_description: service_description = service_description.split("-")[0].strip() service_readme_links.append(f"[{service_description}]({readme_link})") @@ -150,7 +150,7 @@ def get_package_details() -> PackageDetails: **header.model_dump(), **name.model_dump(), description=description, - service_readmes=get_service_readmes(), + service_readmes=get_service_links(), )