This is an automated email from the ASF dual-hosted git repository.
lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git
The following commit(s) were added to refs/heads/main by this push:
new 2695e3e36 docs: fix version switcher (#4378)
2695e3e36 is described below
commit 2695e3e367de6714da36cd0610db0c6b3a177931
Author: David Li <[email protected]>
AuthorDate: Wed Jun 10 15:08:57 2026 -0700
docs: fix version switcher (#4378)
Closes #4247.
---
docs/source/_static/version.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/source/_static/version.js b/docs/source/_static/version.js
index 9fe0ad073..ac73e30b1 100644
--- a/docs/source/_static/version.js
+++ b/docs/source/_static/version.js
@@ -53,7 +53,7 @@ function adbcInjectVersionSwitcher() {
try {
let relativePart = window.location.pathname.replace(/^\//, "");
// Remove the adbc/ prefix
- relativePart = relativePart.replace(/^adbc[^\/]+\//, "");
+ relativePart = relativePart.replace(/^adbc\//, "");
// Remove the version number
relativePart = relativePart.replace(/^[^\/]+\//, "");
const newUrl = `${el.getAttribute("href")}/${relativePart}`;