Skip to content

Commit

Permalink
Fix download link (apache#6431)
Browse files Browse the repository at this point in the history
* Fix Download Button

* Small fix
  • Loading branch information
kevinthesun authored and Olivier committed May 30, 2017
1 parent d90e89b commit 5d01f7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions docs/_static/mxnet.css
Original file line number Diff line number Diff line change
Expand Up @@ -1062,3 +1062,6 @@ table.docutils tr:nth-child(even) {
transform: translate(-50%);
}

button.download {
color: #0079b2;
}
4 changes: 2 additions & 2 deletions docs/mxdoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ def _get_src_download_btn(out_prefix, langs, lines):
f.write('\n'.join(_get_source(lang, lines)))
for f in [ipynb, src]:
f = f.split('/')[-1]
btn += '<button type="button" class="btn btn-default">'
btn += '<a href="%s"><span class="glyphicon glyphicon-download-alt"></span> %s </a></button>\n' % (f, f)
btn += '<button type="button" class="btn btn-default download" '
btn += 'onclick="window.location=\'%s\'"><span class="glyphicon glyphicon-download-alt"></span> %s </a></button>\n' % (f, f)
btn += '</div>\n'
return btn

Expand Down

0 comments on commit 5d01f7a

Please sign in to comment.