This is an automated email from the ASF dual-hosted git repository.

marcoabreu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new 48749a5  workaround for install page display issue (#9902)
48749a5 is described below

commit 48749a5d43864a41653ccd8746cdccf1477b2ae4
Author: Aaron Markham <[email protected]>
AuthorDate: Tue Feb 27 17:41:34 2018 -0800

    workaround for install page display issue (#9902)
---
 docs/build_version_doc/AddVersion.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/docs/build_version_doc/AddVersion.py 
b/docs/build_version_doc/AddVersion.py
index 2c9ee22..c4d088a 100755
--- a/docs/build_version_doc/AddVersion.py
+++ b/docs/build_version_doc/AddVersion.py
@@ -57,6 +57,9 @@ if __name__ == '__main__':
         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")
@@ -74,7 +77,7 @@ if __name__ == '__main__':
                 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:

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to