From 228dd60ab20cadc142b0edfca03260f3ca254bc2 Mon Sep 17 00:00:00 2001 From: Francisco Diaz Date: Tue, 26 Jul 2022 14:24:47 +0200 Subject: [PATCH] Refine the Arrow version selector (#2770) * Update SASS file to show separator bar before the third item * Update the list of available Arrow versions * Remove link for the previous version * Address review comments Co-authored-by: Imran Malic Settuba <46971368+i-walker@users.noreply.github.com> --- arrow-site/docs/_data/doc-versions.yml | 30 +++++-------------- .../docs/_includes/_sidebar-doc-versions.html | 22 ++------------ .../_sass/components/docs/_sidebar-menu.scss | 2 +- 3 files changed, 12 insertions(+), 42 deletions(-) diff --git a/arrow-site/docs/_data/doc-versions.yml b/arrow-site/docs/_data/doc-versions.yml index 3d01425cb81..8c5d3f557f5 100644 --- a/arrow-site/docs/_data/doc-versions.yml +++ b/arrow-site/docs/_data/doc-versions.yml @@ -1,34 +1,20 @@ docVersions: - - title: "v0.10.5" - url: https://arrow-kt.io/docs/0.10/ - previous: https://arrow-kt.io/docs/0.9/ - - - title: "v0.11.0" - url: https://arrow-kt.io/docs/0.11/ - previous: https://arrow-kt.io/docs/0.10/ - - - title: "v0.12.1" + - title: "Version 0.12.x" url: https://arrow-kt.io/docs/0.12/ - previous: https://arrow-kt.io/docs/0.11/ - - title: "v0.13.2" + - title: "Version 0.13.x" url: https://arrow-kt.io/docs/0.13/ - previous: https://arrow-kt.io/docs/0.12/ - - title: "v1.0.0" - url: https://arrow-kt.io/ - previous: https://arrow-kt.io/docs/0.13/ + - title: "Version 1.0.x" + url: https://arrow-kt.io/docs/1.0/ - - title: "v1.0.1" + - title: "Version 1.1.x" url: https://arrow-kt.io/ - previous: https://arrow-kt.io/docs/1.0.0/ - - title: "v1.0.2-SNAPSHOT" + - title: "Latest Alpha/RC version" url: https://arrow-kt.io/docs/next/ - previous: https://arrow-kt.io/ # Literals -previous: PREVIOUS -stable: STABLE -next: NEXT +stable: Current version +next: Latest Alpha/RC version diff --git a/arrow-site/docs/_includes/_sidebar-doc-versions.html b/arrow-site/docs/_includes/_sidebar-doc-versions.html index 646a1716239..3d5853ee7ef 100644 --- a/arrow-site/docs/_includes/_sidebar-doc-versions.html +++ b/arrow-site/docs/_includes/_sidebar-doc-versions.html @@ -17,7 +17,7 @@ {% assign stable_base_doc_link = site.data.commons.stable_version | append: 'docs/' %} - {{ stable_version.title }} - {{ site.data.doc-versions.stable }} + {{ site.data.doc-versions.stable }} - {{ stable_version.title }} @@ -25,29 +25,13 @@
  • - {{ next_version.title }} - {{ site.data.doc-versions.next }} + {{ next_version.title }}
  • -
  • - - - {{ previous_version.title }} - {{ site.data.doc-versions.previous }} - - -
  • - -
  • - - v0.9.0 - -
  • - {% for item in site.data.doc-versions.docVersions %} - {% if item.url != stable_version.url - and item.url != next_version.url - and item.url != previous_version.url %} + {% if item.url != stable_version.url and item.url != next_version.url %}
  • {{ item.title }} diff --git a/arrow-site/docs/_sass/components/docs/_sidebar-menu.scss b/arrow-site/docs/_sass/components/docs/_sidebar-menu.scss index d7d2a633a60..300555dc4b7 100644 --- a/arrow-site/docs/_sass/components/docs/_sidebar-menu.scss +++ b/arrow-site/docs/_sass/components/docs/_sidebar-menu.scss @@ -110,7 +110,7 @@ } } - li:nth-child(4) { + li:nth-child(3) { border-top: solid 1px rgba(255, 255, 255, 0.5); } }