diff --git a/.gitignore b/.gitignore index 797267bae6..2c54a5b1a4 100644 --- a/.gitignore +++ b/.gitignore @@ -141,4 +141,4 @@ dmypy.json # Generated files /website/index.html /website/style.css -/website/members-data.json +/website/ecosystem.json diff --git a/ecosystem/cli/members.py b/ecosystem/cli/members.py index 6fe4fa26f5..7db83af512 100644 --- a/ecosystem/cli/members.py +++ b/ecosystem/cli/members.py @@ -107,5 +107,8 @@ def update_stars(self): def compile_json(self, output_file: str): """Compile JSON file for consumption by ibm.com""" - data = {"members": [repo.to_dict() for repo in self.dao.get_all()]} + data = { + "members": [repo.to_dict() for repo in self.dao.get_all()], + "labels": json.loads(Path(self.resources_dir, "labels.json").read_text()), + } Path(output_file).write_text(json.dumps(data)) diff --git a/tox.ini b/tox.ini index 7828243879..662bd0114e 100644 --- a/tox.ini +++ b/tox.ini @@ -39,4 +39,4 @@ allowlist_externals = bash basepython = python3 commands = bash -ec "python manager.py build --resources ecosystem/resources --output website/index.html" - bash -ec "python manager.py members compile_json 'website/members-data.json'" + bash -ec "python manager.py members compile_json 'website/ecosystem.json'"