You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/09/15 03:25:56 UTC

[GitHub] sandeep-krishnamurthy closed pull request #12540: redirecting navigation items to latest info

sandeep-krishnamurthy closed pull request #12540: redirecting navigation items to latest info
URL: https://github.com/apache/incubator-mxnet/pull/12540
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/docs/build_version_doc/artifacts/.htaccess b/docs/build_version_doc/artifacts/.htaccess
index caedabad359..95b311a9464 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]


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services