Skip to content

Commit

Permalink
Docs: Add missing newline after keyword aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
oschuett committed Jun 12, 2023
1 parent e790daf commit 4047e19
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions docs/generate_input_reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,18 +217,15 @@ def render_keyword(
if default_value:
output += [f":value: '{default_value}'"]
output += [""]
if len(keyword_names) > 1:
aliases = " ,".join(keyword_names)
output += [f"**Aliase:** {aliases}"]
if repeats:
output += [f"**Keyword can be repeated.**", ""]
if len(keyword_names) > 1:
aliases = " ,".join(keyword_names[1:])
output += [f"**Aliase:** {aliases}", ""]
if lone_leyword_value:
output += [f"**Lone keyword:** `{escape_markdown(lone_leyword_value)}`", ""]
if usage:
output += [
f"**Usage:** _{escape_markdown(usage)}_",
"",
]
output += [f"**Usage:** _{escape_markdown(usage)}_", ""]
if data_type == "enum":
output += [f"**Valid values:**"]
for item in keyword.findall("DATA_TYPE/ENUMERATION/ITEM"):
Expand All @@ -238,10 +235,7 @@ def render_keyword(
output += [""]
if references:
citations = ", ".join([f"{{ref}}`{r}`" for r in references])
output += [
f"**References:** {citations}",
"",
]
output += [f"**References:** {citations}", ""]
output += [f"{escape_markdown(description)} {github_link(location)}", ""]

output += ["```", ""] # Close py:data directive.
Expand Down

0 comments on commit 4047e19

Please sign in to comment.