kou commented on code in PR #979:
URL: https://github.com/apache/arrow-adbc/pull/979#discussion_r1295099284


##########
docs/source/_static/version.js:
##########
@@ -48,7 +51,11 @@ window.addEventListener("DOMContentLoaded", () => {
             el.addEventListener("click", (e) => {
                 e.preventDefault();
                 try {
-                    const relativePart = 
window.location.pathname.replace(/^\/[^\/]+\//, "");
+                    let relativePart = window.location.pathname;
+                    // Remove the adbc/ prefix
+                    relativePart = relativePart.replace(/^\/adbc[^\/]+\//, "");

Review Comment:
   Or we may want to use the following if `adbc*` part is optional.
   
   ```suggestion
                       let relativePart = 
window.location.pathname.replace(/^/\/, "");
                       // Remove the adbc/ prefix
                       relativePart = relativePart.replace(/^adbc[^\/]+\//, "");
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to