Skip to content

Support “next” and “previous” links between pages of overviews #1440

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 2 commits into from
Jul 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions _data/overviews.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- title: Trait Iterable
url: "collections-2.13/trait-iterable.html"
- title: The sequence traits Seq, IndexedSeq, and LinearSeq
url: "collections-2.13/seqs.html"
- title: Concrete Immutable Collection Classes
url: "collections-2.13/concrete-immutable-collection-classes.html"
- title: Concrete Mutable Collection Classes
Expand Down
11 changes: 11 additions & 0 deletions _layouts/multipage-overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@
{{content}}
</div>

<div class="two-columns">
{% if page.previous-page %}
<a href="{{page.previous-page}}.html">&larr; <strong>previous</strong></a>
{% else %}
<div></div>
{% endif %}
{% if page.next-page %}
<a href="{{page.next-page}}.html"><strong>next</strong> &rarr;</a>
{% endif %}
</div>

{% include contributors-list.html %}
</div>
</div>
Expand Down
2 changes: 2 additions & 0 deletions _overviews/collections-2.13/arrays.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ partof: collections-213
overview-name: Collections

num: 10
previous-page: concrete-mutable-collection-classes
next-page: strings

permalink: /overviews/collections-2.13/:title.html
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ partof: collections-213
overview-name: Collections

num: 8
previous-page: maps
next-page: concrete-mutable-collection-classes

permalink: /overviews/collections-2.13/:title.html
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ partof: collections-213
overview-name: Collections

num: 9
previous-page: concrete-immutable-collection-classes
next-page: arrays

permalink: /overviews/collections-2.13/:title.html
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ partof: collections-213
overview-name: Collections

num: 17
previous-page: creating-collections-from-scratch

permalink: /overviews/collections-2.13/:title.html
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ partof: collections-213
overview-name: Collections

num: 16
previous-page: iterators
next-page: conversions-between-java-and-scala-collections

permalink: /overviews/collections-2.13/:title.html
---
Expand Down
2 changes: 2 additions & 0 deletions _overviews/collections-2.13/equality.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ partof: collections-213
overview-name: Collections

num: 13
previous-page: performance-characteristics
next-page: views

permalink: /overviews/collections-2.13/:title.html
---
Expand Down
1 change: 1 addition & 0 deletions _overviews/collections-2.13/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ partof: collections-213
overview-name: Collections

num: 1
next-page: overview

permalink: /overviews/collections-2.13/:title.html
---
Expand Down
2 changes: 2 additions & 0 deletions _overviews/collections-2.13/iterators.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ partof: collections-213
overview-name: Collections

num: 15
previous-page: views
next-page: creating-collections-from-scratch

permalink: /overviews/collections-2.13/:title.html
---
Expand Down
4 changes: 3 additions & 1 deletion _overviews/collections-2.13/maps.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ partof: collections-213
overview-name: Collections

num: 7
previous-page: sets
next-page: concrete-immutable-collection-classes

permalink: /overviews/collections2.13/:title.html
permalink: /overviews/collections-2.13/:title.html
---

A [Map](http://www.scala-lang.org/api/current/scala/collection/Map.html) is an [Iterable](http://www.scala-lang.org/api/current/scala/collection/Iterable.html) consisting of pairs of keys and values (also named _mappings_ or _associations_). Scala's [Predef](http://www.scala-lang.org/api/current/scala/Predef$.html) object offers an implicit conversion that lets you write `key -> value` as an alternate syntax for the pair `(key, value)`. For instance `Map("x" -> 24, "y" -> 25, "z" -> 26)` means exactly the same as `Map(("x", 24), ("y", 25), ("z", 26))`, but reads better.
Expand Down
2 changes: 2 additions & 0 deletions _overviews/collections-2.13/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ partof: collections-213
overview-name: Collections

num: 2
previous-page: introduction
next-page: trait-iterable

permalink: /overviews/collections-2.13/:title.html
---
Expand Down
2 changes: 2 additions & 0 deletions _overviews/collections-2.13/performance-characteristics.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ partof: collections-213
overview-name: Collections

num: 12
previous-page: strings
next-page: equality

permalink: /overviews/collections-2.13/:title.html
---
Expand Down
2 changes: 2 additions & 0 deletions _overviews/collections-2.13/seqs.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ partof: collections-213
overview-name: Collections

num: 5
previous-page: trait-iterable
next-page: sets

permalink: /overviews/collections-2.13/:title.html
---
Expand Down
2 changes: 2 additions & 0 deletions _overviews/collections-2.13/sets.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ partof: collections-213
overview-name: Collections

num: 6
previous-page: seqs
next-page: maps

permalink: /overviews/collections-2.13/:title.html
---
Expand Down
2 changes: 2 additions & 0 deletions _overviews/collections-2.13/strings.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ partof: collections-213
overview-name: Collections

num: 11
previous-page: arrays
next-page: performance-characteristics

permalink: /overviews/collections-2.13/:title.html
---
Expand Down
2 changes: 2 additions & 0 deletions _overviews/collections-2.13/trait-iterable.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ partof: collections-213
overview-name: Collections

num: 4
previous-page: overview
next-page: seqs

permalink: /overviews/collections-2.13/:title.html
---
Expand Down
2 changes: 2 additions & 0 deletions _overviews/collections-2.13/views.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ partof: collections-213
overview-name: Collections

num: 14
previous-page: equality
next-page: iterators

permalink: /overviews/collections-2.13/:title.html
---
Expand Down