aaronmarkham commented on a change in pull request #13921: Version switching 
user experience improvements
URL: https://github.com/apache/incubator-mxnet/pull/13921#discussion_r248852257
 
 

 ##########
 File path: docs/_static/js/docversion.js
 ##########
 @@ -18,16 +18,23 @@
  */
 
 /* Set the version of the website */
-function setVersion(){
-        let doc = window.location.pathname.match(/^\/(api\/.*)$/) || 
window.location.pathname.match(/^\/versions\/[^*]+\/(api\/.*)$/);
+function setVersion(anchor){
+        if (arguments.length==0) {
+            anchor = window.location.hash
+        };
+        console.log('anchor: ', anchor, arguments.length, 
window.location.hash, window.location.search);
 
 Review comment:
   Thanks, I removed all of the debug statements.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to