Skip to content

Commit

Permalink
added cross ref to schema spec
Browse files Browse the repository at this point in the history
  • Loading branch information
lzehl committed Jul 14, 2023
1 parent 1f3bc24 commit 2c2cd23
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pipeline/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,11 @@ def _target_file_without_extension(self, target_basename:str) -> str:
def _build_terminology(self, target_file:str, name:str, data_to_display:Dict):
with open(f"{target_file}.rst", "w") as output_file:
doc = RstCloth(output_file, line_width=100000)
name = "".join([name[0].capitalize(), name[1:]])
doc.heading(f"{name}", char="#", overline=True)
name_CamelCase = "".join([name[0].capitalize(), name[1:]])
doc.heading(f"{name_CamelCase}", char="#", overline=True)
doc.newline()
schema_link = os.path.join(self.readthedocs_url, self.version, "specifications", "controlledTerms", f"{name}.html")
doc.content(f"All instances listed below can be validated against the `{name_CamelCase} schema specification <{schema_link}>`_.")
doc.newline()
doc.content("------------")
doc.newline()
Expand Down

0 comments on commit 2c2cd23

Please sign in to comment.