You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by sk...@apache.org on 2018/09/15 03:26:11 UTC

[incubator-mxnet] branch master updated: redirecting navigation items to latest info (#12540)

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

skm 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 9a5c3ff  redirecting navigation items to latest info (#12540)
9a5c3ff is described below

commit 9a5c3ff5d9826e032d9ff5e012824430ba161eee
Author: Aaron Markham <ma...@amazon.com>
AuthorDate: Fri Sep 14 20:25:55 2018 -0700

    redirecting navigation items to latest info (#12540)
    
    * redirecting navigation items to latest info
    
    * adjust onnx redirects based on version
---
 docs/build_version_doc/artifacts/.htaccess | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/docs/build_version_doc/artifacts/.htaccess b/docs/build_version_doc/artifacts/.htaccess
index caedaba..95b311a 100644
--- a/docs/build_version_doc/artifacts/.htaccess
+++ b/docs/build_version_doc/artifacts/.htaccess
@@ -4,6 +4,21 @@ RewriteRule ^get_started.*$ /install/ [R=301,L]
 RewriteRule ^how_to.*$ /faq/ [R=301,L]
 RewriteRule ^api/python/symbol.html$ /api/python/symbol/symbol.html [R=301,L]
 RewriteRule ^community/index.html$ /community/contribute.html [R=301,L]
+
+# Navigation bar redirects to latest info
+RewriteRule ^versions/[^\/]+/architecture/.*$ /architecture/ [R=301,L]
+RewriteRule ^versions/[^\/]+/community/.*$ /community/ [R=301,L]
+RewriteRule ^versions/[^\/]+/faq/.*$ /faq/ [R=301,L]
+RewriteRule ^versions/[^\/]+/gluon/.*$ /gluon/ [R=301,L]
+RewriteRule ^versions/[^\/]+/install/.*$ /install/ [R=301,L]
+RewriteRule ^versions/[^\/]+/tutorials/.*$ /tutorials/ [R=301,L]
+
+# Redirect navbar APIs that did not exist
+RewriteRule ^versions/0.11.0/api/python/contrib/onnx.html /error/api.html [R=301,L]
+RewriteRule ^versions/0.12.1/api/python/contrib/onnx.html /error/api.html [R=301,L]
+RewriteRule ^versions/1.0.0/api/python/contrib/onnx.html /error/api.html [R=301,L]
+RewriteRule ^versions/1.1.0/api/python/contrib/onnx.html /error/api.html [R=301,L]
+
 RewriteRule ^versions/0.11.0/api/clojure/.*$ /error/api.html [R=301,L]
 RewriteRule ^versions/0.12.1/api/clojure/.*$ /error/api.html [R=301,L]
 RewriteRule ^versions/1.0.0/api/clojure/.*$ /error/api.html [R=301,L]