From 306453f9d636cd0f47464f75d28111db40feb4fe Mon Sep 17 00:00:00 2001 From: shahasad <43590019+shahasad@users.noreply.github.com> Date: Thu, 2 May 2019 19:21:41 -0700 Subject: [PATCH] fix the link to the script in the doc. fix some error messages (#960) --- docs/ContribOperators.md | 2 +- tools/ci_build/build.py | 2 +- tools/python/gen_doc.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/ContribOperators.md b/docs/ContribOperators.md index 9f33e67cf5..6b38182627 100644 --- a/docs/ContribOperators.md +++ b/docs/ContribOperators.md @@ -1,6 +1,6 @@ ## Contrib Operator Schemas *This file is automatically generated from the - [def files](/onnxruntime/core/graph/contrib_ops/contrib_defs.cc) via [this script](/onnxruntime/python/tools/gen_doc.py). + [def files](/onnxruntime/core/graph/contrib_ops/contrib_defs.cc) via [this script](/tools/python/gen_doc.py). Do not modify directly and instead edit operator definitions.* * com.microsoft diff --git a/tools/ci_build/build.py b/tools/ci_build/build.py index 930167a07a..1511e049a2 100755 --- a/tools/ci_build/build.py +++ b/tools/ci_build/build.py @@ -658,7 +658,7 @@ def generate_documentation(source_dir, build_dir, configs): if len(docdiff) > 0: - raise BuildError("The updated operator document file "+operator_doc_path+" must be checked in.\n diff:\n"+docdiff) + raise BuildError('The updated operator document file '+str(operator_doc_path)+' must be checked in.\n diff:\n'+str(docdiff)) def main(): diff --git a/tools/python/gen_doc.py b/tools/python/gen_doc.py index 28580ed9fc..eea81e392f 100644 --- a/tools/python/gen_doc.py +++ b/tools/python/gen_doc.py @@ -307,7 +307,7 @@ def main(args): # type: (Type[Args]) -> None fout.write('## Contrib Operator Schemas\n') fout.write( "*This file is automatically generated from the\n" - " [def files](/onnxruntime/core/graph/contrib_ops/contrib_defs.cc) via [this script](/onnxruntime/python/tools/gen_doc.py).\n" + " [def files](/onnxruntime/core/graph/contrib_ops/contrib_defs.cc) via [this script](/tools/python/gen_doc.py).\n" " Do not modify directly and instead edit operator definitions.*\n") # domain -> support level -> name -> [schema]