## Description ## This PR improves version switching on the website. The new feature helps with searching for APIs mostly, but can also work for pages you're searching for that exist in different versions.
The current version selector will kick you to the home page from the search page. I fixed this behavior for the API section of the docs last week, but thought fixing search would be a big UX improvement too. It's generalized now too. * It should work for any section of the site. * It should retain both bookmarks `#` and query strings `?`. * It is overridden by the .htaccess file, so sections like tutorials will still always go to the latest. ## Usage As this is a javascript update, please be sure to clear your cache. Let's say you're looking for `allreduce`, but for whatever reason you're on the v1.0.0 of the site (like coming in from Google): http://34.201.8.176/versions/1.0.0/search.html?q=allreduce&check_keywords=yes&area=default# You get no results, but you're prompted to use the versions dropdown. So you choose 1.3.0: http://34.201.8.176/versions/1.3.0/search.html?q=allreduce&check_keywords=yes&area=default You get a result. ## Preview  ## Comment It would be awesome if the search fails we have it return other versions as suggestions, but I'm not that familiar yet with how Sphinx does its search magic... so that can be another day! [ Full content available at: https://github.com/apache/incubator-mxnet/pull/12689 ] This message was relayed via gitbox.apache.org for [email protected]
