-
Notifications
You must be signed in to change notification settings - Fork 467
Docs Arrow version selector #1360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 13 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
16dbbc6
WIP initial implementation. Main and docs sections
AntonioMateoGomez c5bcc45
Doc version dropdown in home section
AntonioMateoGomez 6cbd9a3
WIP adding top warning div
AntonioMateoGomez 3bb65a6
Small screen size settings for navigation menu
AntonioMateoGomez ce131b2
Top doc version warning modifications
AntonioMateoGomez 838106b
New design for the top bar and minor style changes
AntonioMateoGomez 594bd10
Modifications in the top bar warning to adjust styles in any browser
AntonioMateoGomez 754edf0
Merge branch 'master' into paolo-arrow-1309-doc-version-selector
AntonioMateoGomez b7c8387
Removes window.onclick instead addEvenListener, and other requested c…
AntonioMateoGomez 2e02433
Merge branch 'master' into paolo-arrow-1309-doc-version-selector
AntonioMateoGomez 7800a01
Slight updates to doc version management
calvellido d53fa71
Gitter action bara fix
calvellido 4085a07
Sidebar behaviour improvements: not showing behind elements overflow
calvellido 0dcef73
Merge branch 'master' into paolo-arrow-1309-doc-version-selector
calvellido File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| docVersions: | ||
|
|
||
| - title: "v0.8.2" | ||
| url: https://0-8-2.arrow-kt.io/ | ||
| previous: https://0-8-0.arrow-kt.io/ | ||
|
|
||
| - title: "v0.9.0" | ||
| url: https://arrow-kt.io/ | ||
| previous: https://0-8-2.arrow-kt.io/ | ||
|
|
||
| - title: "v0.9.1" | ||
| url: https://next.arrow-kt.io/ | ||
| previous: https://arrow-kt.io/ | ||
|
|
||
| docMenu: | ||
| title: Documentation | ||
| url: /docs | ||
| icon: "fa-book" | ||
|
|
||
| # Literals | ||
| previous: PREVIOUS | ||
| stable: STABLE | ||
| next: NEXT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,4 @@ | ||
| nav: | ||
| - title: Documentation | ||
| url: /docs | ||
| icon: "fa-book" | ||
|
|
||
| - title: Blog | ||
| url: /blog | ||
| icon: "fa-rss" | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
modules/docs/arrow-docs/docs/_includes/_home-doc-versions.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| <div class="masthead-doc-version"> | ||
| <ul> | ||
| <li> | ||
| <a class="masthead-button secondary-button button" | ||
| href="{{ previous_version.url | append: 'docs/' }}"> | ||
| <span>{{ previous_version.title }}</span> | ||
| <span class="secondary-doc-version-text"> | ||
| {{ site.data.doc-versions.previous }} | ||
| </span> | ||
| </a> | ||
| </li> | ||
|
|
||
| <li> | ||
| <a class="masthead-button button" | ||
| href="{{ stable_version.url | append: 'docs/' }}"> | ||
| <span>{{ stable_version.title }}</span> | ||
| <span class="secondary-doc-version-text"> | ||
| {{ site.data.doc-versions.stable }} | ||
| </span> | ||
| </a> | ||
| </li> | ||
|
|
||
| <li> | ||
| <a class="masthead-button secondary-button button" | ||
| href="{{ next_version.url | append: 'docs/' }}"> | ||
| <span>{{ next_version.title }}</span> | ||
| <span class="secondary-doc-version-text"> | ||
| {{ site.data.doc-versions.next }} | ||
| </span> | ||
| </a> | ||
| </li> | ||
| </ul> | ||
| </div> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
modules/docs/arrow-docs/docs/_includes/_navigation-doc-versions.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| <li id="version-dropdown" class="navigation-menu-item | ||
| {% if site.data.doc-versions.docMenu.url == category.url %}active {% endif %}"> | ||
|
|
||
| <a href="#" onclick="displayToggle(event)" title="{{ site.data.doc-versions.docMenu.title }}" alt="{{ item.title }}"> | ||
| {% if site.data.doc-versions.docMenu.icon != "" %} | ||
| <i class="nav-item-icon fa fa-lg {{ site.data.doc-versions.docMenu.icon }}" aria-hidden="true"></i> | ||
| <span class="nav-item-text">{{ site.data.doc-versions.docMenu.title }}</span> | ||
| {% else %} | ||
| <span>{{ site.data.doc-versions.docMenu.title }}</span> | ||
| {% endif %} | ||
| </a> | ||
|
|
||
| <div class="dropdown dropdown-content"> | ||
|
|
||
| <a href="{{ site.data.commons.stable_version | append: 'docs/' }}"> | ||
| <span> | ||
| {{ stable_version.title }} - | ||
| {{ site.data.doc-versions.stable }} | ||
| </span> | ||
| </a> | ||
| <a href="{{ next_version.url | append: 'docs/' }}"> | ||
| <span> | ||
| {{ next_version.title }} - | ||
| {{ site.data.doc-versions.next }} | ||
| </span> | ||
| </a> | ||
| <a href="{{ previous_version.url | append: 'docs/' }}"> | ||
| <span> | ||
| {{ previous_version.title }} - | ||
| {{ site.data.doc-versions.previous }} | ||
| </span> | ||
| </a> | ||
|
|
||
| {% 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 %} | ||
| <a href="{{ item.url | append: 'docs/' }}"> | ||
| <span>{{ item.title }}</span> | ||
| </a> | ||
| {% endif %} | ||
| {% endfor %} | ||
| </div> | ||
| </li> |
46 changes: 46 additions & 0 deletions
46
modules/docs/arrow-docs/docs/_includes/_sidebar-doc-versions.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| <ul class="sidebar-nav sidebar-doc-versions"> | ||
| <li class="sidebar-nav-item"> | ||
| <a href="#"> | ||
| <span>Arrow version</span> | ||
| <span id="arrow-version"></span> | ||
| </a> | ||
| <ul> | ||
| <li> | ||
| <a href="{{ site.data.commons.stable_version | append: 'docs/' }}"> | ||
| <span> | ||
| {{ stable_version.title }} - {{ site.data.doc-versions.stable }} | ||
| </span> | ||
| </a> | ||
| </li> | ||
|
|
||
| <li> | ||
| <a href="{{ next_version.url | append: 'docs/' }}"> | ||
| <span> | ||
| {{ next_version.title }} - {{ site.data.doc-versions.next }} | ||
| </span> | ||
| </a> | ||
| </li> | ||
|
|
||
| <li> | ||
| <a href="{{ previous_version.url | append: 'docs/' }}"> | ||
| <span> | ||
| {{ previous_version.title }} - | ||
| {{ site.data.doc-versions.previous }} | ||
| </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 %} | ||
| <li> | ||
| <a href="{{ item.url | append: 'docs/' }}"> | ||
| <span>{{ item.title }}</span> | ||
| </a> | ||
| </li> | ||
| {% endif %} | ||
| {% endfor %} | ||
| </ul> | ||
| </li> | ||
| </ul> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
modules/docs/arrow-docs/docs/_includes/_top-version-warning.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| {% for item in site.data.doc-versions.docVersions %} | ||
| {% if item.url == site.data.commons.stable_version %} | ||
| {% assign stable_version = item %} | ||
| {% endif %} | ||
| {% if item.url == site.data.commons.next_version %} | ||
| {% assign next_version = item %} | ||
| {% endif %} | ||
| {% endfor %} | ||
|
|
||
| {% for item in site.data.doc-versions.docVersions %} | ||
| {% if item.url == stable_version.previous %} | ||
| {% assign previous_version = item %} | ||
| {% endif %} | ||
| {% endfor %} | ||
|
|
||
| <div id="topWarning" class="top-warning"> | ||
| <div class="top-container"> | ||
| <a href="{{ previous_version.url | append: 'docs/' }}"> | ||
| <span id="top-previous" data-title="{{ previous_version.title }}" data-url="{{ previous_version.url }}"> | ||
| {{ site.data.doc-versions.previous }} {{ previous_version.title }} | ||
| </span> | ||
| </a> | ||
| <a href="{{ stable_version.url | append: 'docs/' }}" class="middle-tab"> | ||
| <span id="top-stable" data-title="{{ stable_version.title }}" data-url="{{ stable_version.url }}"> | ||
| {{ site.data.doc-versions.stable }} {{ stable_version.title }} | ||
| </span> | ||
| </a> | ||
| <a href="{{ next_version.url | append: 'docs/' }}"> | ||
| <span id="top-next" data-title="{{ next_version.title }}" data-url="{{ next_version.url }}"> | ||
| {{ site.data.doc-versions.next }} {{ next_version.title }} | ||
| </span> | ||
| </a> | ||
| </div> | ||
| <div onclick="closeTop()" class="close"> | ||
| <img src="/img/close.svg" alt="close" /> | ||
| </div> | ||
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.