Skip to content

Commit

Permalink
Julia path patch (apache#15561)
Browse files Browse the repository at this point in the history
* fix path to be static

* add MXNET_HOME setting for Julia docs

* Update docs/mxdoc.py

Co-Authored-By: Iblis Lin <iblis@hs.ntnu.edu.tw>
  • Loading branch information
2 people authored and Ubuntu committed Aug 20, 2019
1 parent 659da89 commit 7e7991a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/mxdoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ def build_mxnet(app):

def build_julia_docs(app):
"""build Julia docs"""
os.environ['MXNET_HOME'] = os.path.abspath(os.path.join(app.builder.srcdir, '..'))
print("Julia will check for MXNet in {}/lib".format(os.environ.get('MXNET_HOME')))
dest_path = app.builder.outdir + '/api/julia/site'
_run_cmd('cd {}/.. && make -C julia/docs'.format(app.builder.srcdir))
_run_cmd('mkdir -p {}'.format(dest_path))
Expand Down

0 comments on commit 7e7991a

Please sign in to comment.