Skip to content

Commit 1627215

Browse files
committed
Merge branch 'copychanges'
2 parents 18116b7 + 8ae0c34 commit 1627215

38 files changed

+118
-54
lines changed

_includes/pager.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<nav>
2+
<div class="pager">
3+
{% if page.previous-page %}
4+
<div class="previous"><a href="{{ page.previous-page }}.html""><span aria-hidden="true">&larr;</span> Previous</a></div>
5+
{% endif %}
6+
{% if page.next-page %}
7+
<div class="next"><a href="{{ page.next-page }}.html">Next <span aria-hidden="true">&rarr;</span></a></div>
8+
{% endif %}
9+
</div>
10+
</nav>

_includes/sidebar-toc.html

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,35 @@
11
{% if page.includeTOC or layout.includeTOC %}
22
{% if page.includeTOC != false %}
33
<!-- Don't include TOC -->
4+
5+
{% for pg in site.posts %}
6+
{% if pg.overview == page.overview and pg.languages %}
7+
{% assign languages = pg.languages %}
8+
{% endif %}
9+
{% endfor %}
10+
11+
{% for pg in site.pages %}
12+
{% if pg.overview == page.overview and pg.languages %}
13+
{% assign languages = pg.languages %}
14+
{% endif %}
15+
{% endfor %}
16+
17+
{% if page.language %}
18+
{% capture intermediate %}{{ page.url | remove_first: page.language }}{% endcapture %}
19+
{% capture rootTutorialURL %}{{ intermediate | remove_first: '/' }}{% endcapture %}
20+
{% else %}
21+
{% assign rootTutorialURL = page.url %}
22+
{% endif %}
23+
424
<div class="content-nav">
525
<div class="inner-box sidebar-toc-wrapper" style="">
26+
27+
<li><a href="{{ site.baseurl }}{{ rootTutorialURL }}" class="lang">English</a></li>
28+
{% for l in languages %}
29+
{% assign lang = site.data.languages[l] %}
30+
<li><a href="{{ site.baseurl }}/{{ l }}{{ rootTutorialURL }}" class="lang">{{lang.name}}</a></li>
31+
{% endfor %}
32+
633
<h5>Contents</h5>
734
<div class="inner-toc" id="sidebar-toc">
835
{% if page.includeCollectionTOC or layout.includeCollectionTOC %}

_includes/tutorial-toc.html

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
2+
{% for pg in site.categories.tour %}
3+
{% if pg.languages %}
4+
{% assign languages = pg.languages %}
5+
{% endif %}
6+
{% endfor %}
7+
8+
{% if page.language %}
9+
{% capture intermediate %}{{ page.url | remove_first: page.language }}{% endcapture %}
10+
{% capture rootTutorialURL %}{{ intermediate | remove_first: '/' }}{% endcapture %}
11+
{% else %}
12+
{% assign rootTutorialURL = page.url %}
13+
{% endif %}
14+
15+
<div class="content-nav">
16+
<div class="inner-box sidebar-toc-wrapper" style="">
17+
<li><a href="{{ site.baseurl }}{{ rootTutorialURL }}" class="lang">English</a></li>
18+
{% for l in languages %}
19+
{% assign lang = site.data.languages[l] %}
20+
<li><a href="{{ site.baseurl }}/{{ l }}{{ rootTutorialURL }}" class="lang">{{lang.name}}</a></li>
21+
{% endfor %}
22+
<h5>Contents</h5>
23+
<div class="inner-toc" id="sidebar-toc">
24+
{% include tutorial-tour-list.txt %}
25+
</div>
26+
<hr>
27+
<div class="help-us"><a href="/contribute/documentation/#updating-scala-langorg">Problem with this page?<br> Please help us fix it!</a></div>
28+
</div>
29+
</div>

_layouts/overview.html

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,5 @@
2323
{% assign rootTutorialURL = page.url %}
2424
{% endif %}
2525

26-
<div class="span6">
27-
{% if languages %}
28-
<ul class="langbar">
29-
<li><a href="{{ site.baseurl }}{{ rootTutorialURL }}" class="lang">English</a></li>
30-
{% for l in languages %}
31-
{% assign lang = site.data.languages[l] %}
32-
<li><a href="{{ site.baseurl }}/{{ l }}{{ rootTutorialURL }}" class="lang">{{lang.name}}</a></li>
33-
{% endfor %}
34-
</ul>
35-
{% endif %}
36-
</div>
37-
3826
<!-- Main content -->
3927
{% include inner-page-main-content.html %}

_layouts/tour.html

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
---
2-
layout: inner-page-no-masthead
3-
includeTOC: true
4-
includeCollectionTOC: true
2+
layout: inner-page-parent
3+
permalink: /tutorials/:categories/:title/
54
---
6-
{{content}}
5+
<section class="content">
6+
<div class="wrap">
7+
<div class="content-primary">
8+
<div class="inner-box">
9+
{{content}}
10+
{% include pager.txt %}
11+
</div>
12+
</div>
13+
14+
<!-- TOC -->
15+
{% include tutorial-toc.html %}
16+
</div>
17+
</section>

guides.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,10 @@ redirect_from:
3232
* [Iterators](/overviews/collections/iterators.html)
3333
* [Creating Collections From Scratch](/overviews/collections/creating-collections-from-scratch.html)
3434
* [Conversions Between Java and Scala Collections](/overviews/collections/conversions-between-java-and-scala-collections.html)
35-
* [Migrating from Scala 2.7](/overviews/collections/migrating-from-scala-27.html)
3635
* [The Architecture of Scala Collections](/overviews/core/architecture-of-scala-collections.html)
37-
* [String Interpolation](/overviews/core/string-interpolation.html) <span class="label success">New in 2.10</span>
38-
* [Implicit Classes](/overviews/core/implicit-classes.html) <span class="label success">New in 2.10</span>
39-
* [Value Classes and Universal Traits](/overviews/core/value-classes.html) <span class="label success">New in 2.10</span>
36+
* [String Interpolation](/overviews/core/string-interpolation.html)
37+
* [Implicit Classes](/overviews/core/implicit-classes.html)
38+
* [Value Classes and Universal Traits](/overviews/core/value-classes.html)
4039
* [Binary Compatibility of Scala Releases](/overviews/core/binary-compatibility-of-scala-releases.html)
4140

4241
<div class="page-header-index">
@@ -52,7 +51,7 @@ redirect_from:
5251
<div class="page-header-index">
5352
<h2>Parallel and Concurrent Programming</h2>
5453
</div>
55-
* [Futures and Promises](/overviews/core/futures.html) <span class="label success">New in 2.10</span>
54+
* [Futures and Promises](/overviews/core/futures.html)
5655
* Scala's Parallel Collections Library
5756
* [Overview](/overviews/parallel-collections/overview.html)
5857
* [Concrete Parallel Collection Classes](/overviews/parallel-collections/concrete-parallel-collections.html)
@@ -62,7 +61,7 @@ redirect_from:
6261
* [Creating Custom Parallel Collections](/overviews/parallel-collections/custom-parallel-collections.html)
6362
* [Configuring Parallel Collections](/overviews/parallel-collections/configuration.html)
6463
* [Measuring Performance](/overviews/parallel-collections/performance.html)
65-
* [The Scala Actors Migration Guide](/overviews/core/actors-migration-guide.html) <span class="label success">New in 2.10</span>
64+
* [The Scala Actors Migration Guide](/overviews/core/actors-migration-guide.html)
6665
* [The Scala Actors API](/overviews/core/actors.html) <span class="label important">Deprecated</span>
6766

6867
<div class="page-header-index">

tutorials/tour/_posts/2017-02-13-abstract-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: overview
2+
layout: tour
33
title: Abstract Types
44

55
disqus: true

tutorials/tour/_posts/2017-02-13-annotations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: overview
2+
layout: tour
33
title: Annotations
44

55
disqus: true

tutorials/tour/_posts/2017-02-13-basics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: overview
2+
layout: tour
33
title: Basics
44

55
disqus: true

tutorials/tour/_posts/2017-02-13-by-name-parameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: overview
2+
layout: tour
33
title: By-name Parameters
44

55
disqus: true

tutorials/tour/_posts/2017-02-13-case-classes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: overview
2+
layout: tour
33
title: Case Classes
44

55
disqus: true

tutorials/tour/_posts/2017-02-13-classes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: overview
2+
layout: tour
33
title: Classes
44

55
disqus: true

tutorials/tour/_posts/2017-02-13-compound-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: overview
2+
layout: tour
33
title: Compound Types
44

55
disqus: true

tutorials/tour/_posts/2017-02-13-currying.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: overview
2+
layout: tour
33
title: Currying
44

55
disqus: true

tutorials/tour/_posts/2017-02-13-default-parameter-values.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: overview
2+
layout: tour
33
title: Default Parameter Values
44

55
disqus: true

tutorials/tour/_posts/2017-02-13-extractor-objects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: overview
2+
layout: tour
33
title: Extractor Objects
44

55
disqus: true

tutorials/tour/_posts/2017-02-13-generic-classes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: overview
2+
layout: tour
33
title: Generic Classes
44

55
disqus: true

tutorials/tour/_posts/2017-02-13-higher-order-functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: overview
2+
layout: tour
33
title: Higher-order Functions
44

55
disqus: true

tutorials/tour/_posts/2017-02-13-implicit-conversions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: overview
2+
layout: tour
33
title: Implicit Conversions
44

55
disqus: true

tutorials/tour/_posts/2017-02-13-implicit-parameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: overview
2+
layout: tour
33
title: Implicit Parameters
44

55
disqus: true

tutorials/tour/_posts/2017-02-13-inner-classes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: overview
2+
layout: tour
33
title: Inner Classes
44

55
disqus: true

tutorials/tour/_posts/2017-02-13-local-type-inference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: overview
2+
layout: tour
33
title: Local Type Inference
44

55
disqus: true

tutorials/tour/_posts/2017-02-13-lower-type-bounds.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: overview
2+
layout: tour
33
title: Lower Type Bounds
44

55
disqus: true

tutorials/tour/_posts/2017-02-13-mixin-class-composition.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: overview
2+
layout: tour
33
title: Mixin Class Composition
44

55
disqus: true

tutorials/tour/_posts/2017-02-13-named-arguments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: overview
2+
layout: tour
33
title: Named Arguments
44

55
disqus: true

tutorials/tour/_posts/2017-02-13-nested-functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: overview
2+
layout: tour
33
title: Nested Methods
44

55
disqus: true

tutorials/tour/_posts/2017-02-13-operators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: overview
2+
layout: tour
33
title: Operators
44

55
disqus: true

tutorials/tour/_posts/2017-02-13-pattern-matching.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: overview
2+
layout: tour
33
title: Pattern Matching
44

55
disqus: true

tutorials/tour/_posts/2017-02-13-polymorphic-methods.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: overview
2+
layout: tour
33
title: Polymorphic Methods
44

55
disqus: true

tutorials/tour/_posts/2017-02-13-regular-expression-patterns.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: overview
2+
layout: tour
33
title: Regular Expression Patterns
44

55
disqus: true

tutorials/tour/_posts/2017-02-13-self-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: overview
2+
layout: tour
33
title: Self-type
44

55
disqus: true

tutorials/tour/_posts/2017-02-13-sequence-comprehensions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: overview
2+
layout: tour
33
title: Sequence Comprehensions
44

55
disqus: true

tutorials/tour/_posts/2017-02-13-singleton-objects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: overview
2+
layout: tour
33
title: Singleton Objects
44

55
disqus: true

tutorials/tour/_posts/2017-02-13-tour-of-scala.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: overview
2+
layout: tour
33
title: Introduction
44

55
disqus: true

tutorials/tour/_posts/2017-02-13-traits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: overview
2+
layout: tour
33
title: Traits
44

55
disqus: true

tutorials/tour/_posts/2017-02-13-unified-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: overview
2+
layout: tour
33
title: Unified Types
44

55
disqus: true

tutorials/tour/_posts/2017-02-13-upper-type-bounds.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: overview
2+
layout: tour
33
title: Upper Type Bounds
44

55
disqus: true

tutorials/tour/_posts/2017-02-13-variances.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: overview
2+
layout: tour
33
title: Variances
44

55
disqus: true

0 commit comments

Comments
 (0)