Skip to content

Commit

Permalink
Refine the Arrow version selector (#2770)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
franciscodr and i-walker committed Jul 26, 2022
1 parent 0c50804 commit 228dd60
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 42 deletions.
30 changes: 8 additions & 22 deletions 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
22 changes: 3 additions & 19 deletions arrow-site/docs/_includes/_sidebar-doc-versions.html
Expand Up @@ -17,37 +17,21 @@
{% assign stable_base_doc_link = site.data.commons.stable_version | append: 'docs/' %}
<a href="{{ stable_base_doc_link | append: doc-link }}">
<span>
{{ stable_version.title }} - {{ site.data.doc-versions.stable }}
{{ site.data.doc-versions.stable }} - {{ stable_version.title }}
</span>
</a>
</li>

<li>
<a href="{{ next_version.url | append: doc-link }}">
<span>
{{ next_version.title }} - {{ site.data.doc-versions.next }}
{{ next_version.title }}
</span>
</a>
</li>

<li>
<a href="{{ previous_version.url | append: doc-link }}">
<span>
{{ previous_version.title }} - {{ site.data.doc-versions.previous }}
</span>
</a>
</li>

<li>
<a href="https://arrow-kt.io/docs/0.9/">
<span>v0.9.0</span>
</a>
</li>

{% 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 %}
<li>
<a href="{{ item.url | append: doc-link }}">
<span>{{ item.title }}</span>
Expand Down
2 changes: 1 addition & 1 deletion arrow-site/docs/_sass/components/docs/_sidebar-menu.scss
Expand Up @@ -110,7 +110,7 @@
}
}

li:nth-child(4) {
li:nth-child(3) {
border-top: solid 1px rgba(255, 255, 255, 0.5);
}
}
Expand Down

0 comments on commit 228dd60

Please sign in to comment.