Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Fix doc build break for v1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
frankfliu committed Jan 10, 2019
1 parent 8ece68c commit b017c33
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/mxdoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ def build_scala_docs(app):
scala_doc_sources = 'find . -type f -name "*.scala" | egrep \"\.\/core|\.\/infer\" | egrep -v \"\/javaapi\" | egrep -v \"Suite\"'
scala_doc_classpath = ':'.join([
'`find native -name "*.jar" | grep "target/lib/" | tr "\\n" ":" `',
'`find macros -name "*-INTERNAL.jar" | tr "\\n" ":" `',
'`find core -name "*-INTERNAL.jar" | tr "\\n" ":" `',
'`find infer -name "*-INTERNAL.jar" | tr "\\n" ":" `'
'`find macros \\( -name "*-INTERNAL.jar" -o -name "*-SNAPSHOT.jar" \\) | tr "\\n" ":" `',
'`find core \\( -name "*-INTERNAL.jar" -o -name "*-SNAPSHOT.jar" \\) | tr "\\n" ":" `',
'`find infer \\( -name "*-INTERNAL.jar" -o -name "*-SNAPSHOT.jar" \\) | tr "\\n" ":" `'
])
# There are unresolvable errors on mxnet 1.2.x. We are ignoring those errors while aborting the ci on newer versions
scala_ignore_errors = '; exit 0' if '1.2.' in _BUILD_VER else ''
Expand All @@ -132,12 +132,12 @@ def build_scala_docs(app):
def build_java_docs(app):
"""build java docs and then move the outdir"""
java_path = app.builder.srcdir + '/../scala-package'
java_doc_sources = 'find . -type f -name "*.scala" | egrep \"\.\/core|\.\/infer\" | egrep \"\/javaapi\" | egrep -v \"Suite\"'
java_doc_sources = 'find . -type f -name "*.scala" | egrep \"\.\/core|\.\/infer\" | egrep -v \"\/javaapi\" | egrep -v \"Suite\"'
java_doc_classpath = ':'.join([
'`find native -name "*.jar" | grep "target/lib/" | tr "\\n" ":" `',
'`find macros -name "*-INTERNAL.jar" | tr "\\n" ":" `',
'`find core -name "*-INTERNAL.jar" | tr "\\n" ":" `',
'`find infer -name "*-INTERNAL.jar" | tr "\\n" ":" `'
'`find macros \\( -name "*-INTERNAL.jar" -o -name "*-SNAPSHOT.jar" \\) | tr "\\n" ":" `',
'`find core \\( -name "*-INTERNAL.jar" -o -name "*-SNAPSHOT.jar" \\) | tr "\\n" ":" `',
'`find infer \\( -name "*-INTERNAL.jar" -o -name "*-SNAPSHOT.jar" \\) | tr "\\n" ":" `'
])
_run_cmd('cd {}; scaladoc `{}` -classpath {} -feature -deprecation'
.format(java_path, java_doc_sources, java_doc_classpath))
Expand Down

0 comments on commit b017c33

Please sign in to comment.