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

Commit

Permalink
workaround for install page display issue (#9902)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronmarkham authored and marcoabreu committed Feb 28, 2018
1 parent 9761f21 commit 48749a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/build_version_doc/AddVersion.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@
for name in files:
if not name.endswith('.html'):
continue
if 'install' in path:
print("Skipping this path: {}".format(path))
continue
with open(os.path.join(path, name), 'r') as html_file:
content = bs(html_file, 'html.parser')
navbar = content.find(id="main-nav")
Expand All @@ -74,7 +77,7 @@
outstr = str(content).replace('&lt;', '<').replace('&gt;', '>')
# Fix link
if args.current_version == tag_list[0]:
print("Fixing" + os.path.join(path, name))
print("Fixing " + os.path.join(path, name))
outstr = outstr.replace('https://mxnet.io', 'https://mxnet.incubator.apache.org')
outstr = outstr.replace('http://mxnet.io', 'https://mxnet.incubator.apache.org')
else:
Expand Down

0 comments on commit 48749a5

Please sign in to comment.