From fb10c3c7291237a39ffb6eca71dc8b09057f3efd Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Fri, 1 Oct 2021 11:44:04 +0200 Subject: [PATCH 1/4] ARROW-14189: [Docs] Add version dropdown to the sphinx docs --- docs/source/_static/versions.json | 18 +++++++ docs/source/_templates/docs-sidebar.html | 2 + docs/source/_templates/version-switcher.html | 56 ++++++++++++++++++++ docs/source/conf.py | 10 ++++ 4 files changed, 86 insertions(+) create mode 100644 docs/source/_static/versions.json create mode 100644 docs/source/_templates/version-switcher.html diff --git a/docs/source/_static/versions.json b/docs/source/_static/versions.json new file mode 100644 index 00000000000..f5d3fa050df --- /dev/null +++ b/docs/source/_static/versions.json @@ -0,0 +1,18 @@ +[ + { + "name": "5.0 (stable)", + "version": "5.0" + }, + { + "version": "4.0" + }, + { + "version": "3.0" + }, + { + "version": "2.0" + }, + { + "version": "1.0" + } +] \ No newline at end of file diff --git a/docs/source/_templates/docs-sidebar.html b/docs/source/_templates/docs-sidebar.html index f6ee66cadaa..9ae2e19031f 100644 --- a/docs/source/_templates/docs-sidebar.html +++ b/docs/source/_templates/docs-sidebar.html @@ -3,6 +3,8 @@ +{% include "version-switcher.html" %} +