Skip to content

Commit 44c22d5

Browse files
Merge pull request #684 from jvican/master
Fix #607: Improve build times drastically
2 parents 9f1576d + 8c933e9 commit 44c22d5

File tree

202 files changed

+208
-14
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

202 files changed

+208
-14
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ before_script: chmod +x coursier
1616
script:
1717
- ./scripts/run-tut.sh
1818
- rm -r tut-tmp
19-
- travis_wait 30 bundle exec jekyll build
19+
- bundle exec jekyll build

_includes/tutorial-tour-list.txt

+5-10
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,15 @@
1-
{% for pg in site.pages %}
2-
{% if pg.tutorial == "scala-tour" and pg.outof and pg.language == page.language %}
3-
{% assign totalPagesTour = pg.outof %}
4-
{% endif %}
5-
{% endfor %}
1+
{% assign sorted_tour_posts = site.categories.tour | sort: 'num' %}
2+
{% assign tour_posts_size = sorted_tour_posts | size %}
63

7-
{% if totalPagesTour %}
4+
{% if tour_posts_size %}
85
<ul>
9-
{% for i in (1..totalPagesTour) %}
10-
{% for pg in site.pages %}
11-
{% if pg.tutorial == "scala-tour" and pg.num and pg.num == i and pg.language == page.language %}
6+
{% for pg in sorted_tour_posts %}
7+
{% if pg.language == page.language %}
128
<li class="tour-of-scala {% if page.title == pg.title %} current-page {% endif %}">
139
<a href="{{ pg.url }}">{{ pg.title }}</a>
1410
</li>
1511
{% endif %}
1612
{% endfor %}
17-
{% endfor %}
1813
</ul>
1914
{% else %} **ERROR**. Couldn't find the total number of pages in this set of tutorial articles. Have you declared the `outof` tag in your YAML front matter?
2015
{% endif %}

_layouts/tutorial.html

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
2-
layout: default
2+
layout: post
3+
permalink: /tutorials/:categories/:title/
34
---
45
{% include header.txt %}
56
<div class="wrapper">
@@ -10,8 +11,8 @@
1011

1112
<div class="span10">{% if page.title %}<h1>{{ page.title }}</h1>{% else %}<h1>{{ site.title }}</h1>{% endif %}</div>
1213

13-
{% for pg in site.pages %}
14-
{% if pg.tutorial == "scala-tour" and pg.languages %}
14+
{% for pg in site.categories.tour %}
15+
{% if pg.languages %}
1516
{% assign languages = pg.languages %}
1617
{% endif %}
1718
{% endfor %}

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

+1

ba/tutorials/tour/annotations.md renamed to ba/tutorials/tour/_posts/2017-02-13-annotations.md

+1

ba/tutorials/tour/anonymous-function-syntax.md renamed to ba/tutorials/tour/_posts/2017-02-13-anonymous-function-syntax.md

+1

ba/tutorials/tour/automatic-closures.md renamed to ba/tutorials/tour/_posts/2017-02-13-automatic-closures.md

+1

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

+1

ba/tutorials/tour/classes.md renamed to ba/tutorials/tour/_posts/2017-02-13-classes.md

+1

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

+1

ba/tutorials/tour/currying.md renamed to ba/tutorials/tour/_posts/2017-02-13-currying.md

+1

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

+1

ba/tutorials/tour/explicitly-typed-self-references.md renamed to ba/tutorials/tour/_posts/2017-02-13-explicitly-typed-self-references.md

+1

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

+1

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

+1

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

+1

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

+1

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

+1

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

+1

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

+1

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

+1

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

+1

ba/tutorials/tour/named-parameters.md renamed to ba/tutorials/tour/_posts/2017-02-13-named-parameters.md

+1

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

+1

ba/tutorials/tour/operators.md renamed to ba/tutorials/tour/_posts/2017-02-13-operators.md

+1

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

+1

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

+1

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

+1

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

+1

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

+1

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

+1

ba/tutorials/tour/traits.md renamed to ba/tutorials/tour/_posts/2017-02-13-traits.md

+1

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

+1

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

+1

ba/tutorials/tour/variances.md renamed to ba/tutorials/tour/_posts/2017-02-13-variances.md

+1

ba/tutorials/tour/xml-processing.md renamed to ba/tutorials/tour/_posts/2017-02-13-xml-processing.md

+1

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

+1

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

+1

es/tutorials/tour/annotations.md renamed to es/tutorials/tour/_posts/2017-02-13-annotations.md

+1

es/tutorials/tour/anonymous-function-syntax.md renamed to es/tutorials/tour/_posts/2017-02-13-anonymous-function-syntax.md

+1

es/tutorials/tour/automatic-closures.md renamed to es/tutorials/tour/_posts/2017-02-13-automatic-closures.md

+1

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

+1

es/tutorials/tour/classes.md renamed to es/tutorials/tour/_posts/2017-02-13-classes.md

+1

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

+1

es/tutorials/tour/currying.md renamed to es/tutorials/tour/_posts/2017-02-13-currying.md

+1

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

+1

0 commit comments

Comments
 (0)