Skip to content

Commit

Permalink
Merge pull request #684 from jvican/master
Browse files Browse the repository at this point in the history
Fix #607: Improve build times drastically
  • Loading branch information
heathermiller authored Feb 13, 2017
2 parents 9f1576d + 8c933e9 commit 44c22d5
Show file tree
Hide file tree
Showing 202 changed files with 208 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ before_script: chmod +x coursier
script:
- ./scripts/run-tut.sh
- rm -r tut-tmp
- travis_wait 30 bundle exec jekyll build
- bundle exec jekyll build
15 changes: 5 additions & 10 deletions _includes/tutorial-tour-list.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
{% for pg in site.pages %}
{% if pg.tutorial == "scala-tour" and pg.outof and pg.language == page.language %}
{% assign totalPagesTour = pg.outof %}
{% endif %}
{% endfor %}
{% assign sorted_tour_posts = site.categories.tour | sort: 'num' %}
{% assign tour_posts_size = sorted_tour_posts | size %}

{% if totalPagesTour %}
{% if tour_posts_size %}
<ul>
{% for i in (1..totalPagesTour) %}
{% for pg in site.pages %}
{% if pg.tutorial == "scala-tour" and pg.num and pg.num == i and pg.language == page.language %}
{% for pg in sorted_tour_posts %}
{% if pg.language == page.language %}
<li class="tour-of-scala {% if page.title == pg.title %} current-page {% endif %}">
<a href="{{ pg.url }}">{{ pg.title }}</a>
</li>
{% endif %}
{% endfor %}
{% endfor %}
</ul>
{% 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?
{% endif %}
7 changes: 4 additions & 3 deletions _layouts/tutorial.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: default
layout: post
permalink: /tutorials/:categories/:title/
---
{% include header.txt %}
<div class="wrapper">
Expand All @@ -10,8 +11,8 @@

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

{% for pg in site.pages %}
{% if pg.tutorial == "scala-tour" and pg.languages %}
{% for pg in site.categories.tour %}
{% if pg.languages %}
{% assign languages = pg.languages %}
{% endif %}
{% endfor %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Apstraktni tipovi
disqus: true

tutorial: scala-tour
categories: tour
num: 22
outof: 33
language: ba
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Anotacije
disqus: true

tutorial: scala-tour
categories: tour
num: 31
outof: 33
language: ba
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Sintaksa anonimnih funkcija
disqus: true

tutorial: scala-tour
categories: tour
num: 6
outof: 33
language: ba
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Automatska konstrukcija tipno zavisnih closura (zatvarajućih funkcija)
disqus: true

tutorial: scala-tour
categories: tour
num: 30
outof: 33
language: ba
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Case klase
disqus: true

tutorial: scala-tour
categories: tour
num: 30
outof: 33
language: ba
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Klase
disqus: true

tutorial: scala-tour
categories: tour
num: 3
outof: 33
language: ba
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Složeni tipovi
disqus: true

tutorial: scala-tour
categories: tour
num: 23
outof: 33
language: ba
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Curry-jevanje
disqus: true

tutorial: scala-tour
categories: tour
num: 9
outof: 33
language: ba
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Podrazumijevane vrijednosti parametara
disqus: true

tutorial: scala-tour
categories: tour
num: 32
outof: 33
language: ba
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Eksplicitno tipizirane samo-reference
disqus: true

tutorial: scala-tour
categories: tour
num: 24
outof: 33
language: ba
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Ekstraktor objekti
disqus: true

tutorial: scala-tour
categories: tour
num: 15
outof: 33
language: ba
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Generičke klase
disqus: true

tutorial: scala-tour
categories: tour
num: 17
outof: 33
language: ba
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Funkcije višeg reda
disqus: true

tutorial: scala-tour
categories: tour
num: 7
outof: 33
language: ba
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Implicitne konverzije
disqus: true

tutorial: scala-tour
categories: tour
num: 26
outof: 33
language: ba
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Implicitni parametri
disqus: true

tutorial: scala-tour
categories: tour
num: 25
outof: 33
language: ba
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Unutarnje klase
disqus: true

tutorial: scala-tour
categories: tour
num: 21
outof: 33
language: ba
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Lokalno zaključivanje tipova (type inference)
disqus: true

tutorial: scala-tour
categories: tour
num: 28
outof: 33
language: ba
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Donja granica tipa
disqus: true

tutorial: scala-tour
categories: tour
num: 20
outof: 33
language: ba
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Kompozicija mixin klasa
disqus: true

tutorial: scala-tour
categories: tour
num: 5
outof: 33
language: ba
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Imenovani parametri
disqus: true

tutorial: scala-tour
categories: tour
num: 33
outof: 33
language: ba
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Ugniježdene funkcije
disqus: true

tutorial: scala-tour
categories: tour
num: 8
outof: 33
language: ba
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Operatori
disqus: true

tutorial: scala-tour
categories: tour
num: 29
outof: 33
language: ba
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Podudaranje uzoraka (pattern matching)
disqus: true

tutorial: scala-tour
categories: tour
num: 11

outof: 33
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Polimorfne metode
disqus: true

tutorial: scala-tour
categories: tour
num: 27

outof: 33
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Regularni izrazi
disqus: true

tutorial: scala-tour
categories: tour
num: 14

outof: 33
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Komprehensije sekvenci
disqus: true

tutorial: scala-tour
categories: tour
num: 16
outof: 33
language: ba
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Singlton objekti
disqus: true

tutorial: scala-tour
categories: tour
num: 12

outof: 33
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Uvod
disqus: true

tutorial: scala-tour
categories: tour
num: 1
outof: 33
language: ba
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Trejtovi
disqus: true

tutorial: scala-tour
categories: tour
num: 4
outof: 33
language: ba
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Sjedinjeni tipovi
disqus: true

tutorial: scala-tour
categories: tour
num: 2
outof: 33
language: ba
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Gornja granica tipa
disqus: true

tutorial: scala-tour
categories: tour
num: 19
outof: 33
language: ba
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Varijanse
disqus: true

tutorial: scala-tour
categories: tour
num: 18
outof: 33
language: ba
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Procesiranje XML-a
disqus: true

tutorial: scala-tour
categories: tour
num: 13
outof: 33
language: ba
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Polymorphe Methoden
disqus: true

tutorial: scala-tour
categories: tour
num: 21
language: de
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Tipos Abstractos
disqus: true

tutorial: scala-tour
categories: tour
num: 2
outof: 33
language: es
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Anotaciones
disqus: true

tutorial: scala-tour
categories: tour
num: 3
language: es
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Sintaxis de funciones anónimas
disqus: true

tutorial: scala-tour
categories: tour
num: 14
language: es
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Construcción de closures automáticas
disqus: true

tutorial: scala-tour
categories: tour
num: 16
language: es
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Clases Case
disqus: true

tutorial: scala-tour
categories: tour
num: 5
language: es
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Clases
disqus: true

tutorial: scala-tour
categories: tour
num: 4
language: es
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Tipos Compuestos
disqus: true

tutorial: scala-tour
categories: tour
num: 6
language: es
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Currying
disqus: true

tutorial: scala-tour
categories: tour
num: 15
language: es
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ title: Valores de parámetros por defecto
disqus: true

tutorial: scala-tour
categories: tour
num: 34
language: es
---
Expand Down
Loading

0 comments on commit 44c22d5

Please sign in to comment.