Skip to content

Commit 518daeb

Browse files
committed
Make readme renderer resilient to missing metadata files
1 parent 71c8b3e commit 518daeb

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

recipes/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,11 @@ You can use an HPC Recipe for AWS in several ways:
141141

142142
### :arrow_right: res: Research and Engineering Studio on AWS
143143

144+
#### entra_id ![tag](https://img.shields.io/badge/-beta-%23800080) ![tag](https://img.shields.io/badge/-entra_id-%23AAB7B8) ![tag](https://img.shields.io/badge/-identity-%23AAB7B8) ![tag](https://img.shields.io/badge/-res-%237DCEA0)
145+
146+
* **About**: Set up Entra ID with RES
147+
* **Usage**: [README.md](res/entra_id/README.md)
148+
144149
#### res_demo_env ![tag](https://img.shields.io/badge/-ad-%23AAB7B8) ![tag](https://img.shields.io/badge/-cognito-%237DCEA0) ![tag](https://img.shields.io/badge/-dcv-%23AAB7B8) ![tag](https://img.shields.io/badge/-ec2-%23AAB7B8) ![tag](https://img.shields.io/badge/-efs-%237DCEA0) ![tag](https://img.shields.io/badge/-res-%237DCEA0) ![tag](https://img.shields.io/badge/-sso-%23AAB7B8)
145150

146151
* **About**: Research and Engineering Studio (RES) on AWS demo environment

scripts/render_readme.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,12 @@ def main():
2020
ns = Path(Path.joinpath(utils.RECIPES, dir))
2121
for entry in ns.iterdir():
2222
if entry.is_dir():
23-
config = utils.load_config(Path.joinpath(ns, entry, "metadata.yml"))
24-
# TODO - add tags to config - hard to compute in template
25-
data["namespaces"][dir]["recipes"].append(config)
23+
try:
24+
config = utils.load_config(Path.joinpath(ns, entry, "metadata.yml"))
25+
# TODO - add tags to config - hard to compute in template
26+
data["namespaces"][dir]["recipes"].append(config)
27+
except FileNotFoundError:
28+
pass
2629

2730
# Render file
2831
environment = Environment(loader=FileSystemLoader(utils.RECIPES_README_TEMPLATES), autoescape=select_autoescape())

0 commit comments

Comments
 (0)