From bc4dbcf79307b934d7f78f212e544cc3a3773fc7 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Wed, 4 Dec 2019 08:41:38 +0100 Subject: Travis CI: Run `makerst.py` to check for documentation errors --- doc/tools/makerst.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'doc/tools/makerst.py') diff --git a/doc/tools/makerst.py b/doc/tools/makerst.py index de53259827..91240e9550 100755 --- a/doc/tools/makerst.py +++ b/doc/tools/makerst.py @@ -14,7 +14,7 @@ GODOT_DOCS_PATTERN = re.compile(r'^http(?:s)?://docs\.godotengine\.org/(?:[a-zA- def print_error(error, state): # type: (str, State) -> None - print(error) + print("ERROR: {}".format(error)) state.errored = True @@ -982,7 +982,11 @@ def make_enum(t, state): # type: (str, State) -> str if c in state.classes and e in state.classes[c].enums: return ":ref:`{0}`".format(e, c) - print_error("Unresolved enum '{}', file: {}".format(t, state.current_class), state) + + # Don't fail for `Vector3.Axis`, as this enum is a special case which is expected not to be resolved. + if "{}.{}".format(c, e) != "Vector3.Axis": + print_error("Unresolved enum '{}', file: {}".format(t, state.current_class), state) + return t -- cgit v1.2.3