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

Commit

Permalink
Julia path patch (#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 <[email protected]>
  • Loading branch information
aaronmarkham and iblislin committed Jul 18, 2019
1 parent dd14c81 commit c8a1de4
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 c8a1de4

Please sign in to comment.