Skip to content

Commit

Permalink
Update schema.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyuba Zehl committed Jun 30, 2023
1 parent 81da2e6 commit 2cdd5dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pipeline/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ def _define_target_objects(self, object_list) -> str:
if object_list:
o_name_list = []
for o in object_list:
o_name_list.append(f"`{o.split('/')[-1]} <{o}>`_")
o_name = o.split('/')[-1]
o_html_path = f"https://openminds-documentation.readthedocs.io/en/{self.version}/specifications/{self.relative_path_by_schema[o_name]}.html"
o_name_list.append(f"`{o_name} <{o_html_path}>`_")
if len(o_name_list) > 1:
target_objects = " or ".join([", ".join(o_name_list[:-1]), o_name_list[-1]])
else:
Expand Down

0 comments on commit 2cdd5dd

Please sign in to comment.