Skip to content

Commit 6d2ddd2

Browse files
jamesmosysMSStephen
authored andcommitted
Fixes make docs CI step
1 parent 50aca17 commit 6d2ddd2

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/tools/python/make_documentation.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,12 @@ def generate_documentation(fp: typing.TextIO, doc, prefix):
6060
fp.write("\n")
6161
fp.write("\n")
6262

63-
fp.write("#### Constraints\n")
64-
fp.write("\n")
65-
fp.write(p["constraints"])
66-
fp.write("\n")
67-
fp.write("\n")
63+
if "constraints" in p and p["constraints"]:
64+
fp.write("#### Constraints\n")
65+
fp.write("\n")
66+
fp.write(p["constraints"])
67+
fp.write("\n")
68+
fp.write("\n")
6869

6970
def generate_schema(fp: typing.TextIO, schema, title):
7071
fp.write(f"## {title} JSON Schema\n")

0 commit comments

Comments
 (0)