jorisvandenbossche commented on code in PR #38241: URL: https://github.com/apache/arrow/pull/38241#discussion_r1361584270
########## docs/source/conf.py: ########## @@ -288,6 +288,14 @@ # documentation. # +switcher_version = version +if ".dev" in version: + switcher_version = "dev/" +else: + # If we are not building dev version of the docs, we are building + # docs for the stable version + switcher_version = "" Review Comment: Actually, can we just include both entries in the json file? Both one with "" for the old docs, and one with the actual version for the stable docs, so something like: ``` { "name": "13.0 (stable)", "version": "13.0.0/", "url": "https://arrow.apache.org/docs/", "preferred": true }, { "name": "13.0 (stable)", "version": "", "url": "https://arrow.apache.org/docs/", }, ``` ? -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org