Skip to content

Commit

Permalink
workaround for install page display issue (apache#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 a565dfe commit 8138dc6
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 8138dc6

Please sign in to comment.