AlenkaF commented on code in PR #46957:
URL: https://github.com/apache/arrow/pull/46957#discussion_r2176709178


##########
docs/source/conf.py:
##########
@@ -326,6 +326,15 @@
 # documentation.
 #
 
+# To enable the version switcher during a local build, set the
+# environment variable DOCS_DEV to "1".
+docs_dev = os.environ.get("DOCS_DEV", "0")
+json_url = "/docs/_static/versions.json"
+
+if docs_dev == "1":
+    json_url = "https://arrow.apache.org/docs/_static/versions.json";
+    # json_url = "_static/versions.json"

Review Comment:
   Using the local relative path here doesn't work as expected, so the online 
`https://` URL is used for now.



-- 
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