summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-12-04 09:05:16 +0100
committerGitHub <noreply@github.com>2019-12-04 09:05:16 +0100
commitf0ae0a9958689175b3e401a143ffb751ccbd63b4 (patch)
tree29c489a5ce9a0fbb92f594009e2ac57ae5bc26d2 /doc
parentfec8c164a0fd68cd01e3c3433841e12fe0e8e13c (diff)
parentbc4dbcf79307b934d7f78f212e544cc3a3773fc7 (diff)
Merge pull request #34097 from Calinou/travis-doc-makerst
Travis CI: Run `makerst.py` to check for documentation errors
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/tools/makerst.py8
1 files changed, 6 insertions, 2 deletions
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}<enum_{1}_{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