-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
53 lines (46 loc) · 1.92 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
layout: default
---
<div class="home">
<h3>
Hello!
<br><br>
This set of tutorials will walk through the <a href="https://developer.android.com/training/index.html">Android developer trainings</a>
and translate things into Ruby. The two styles of development are actually very different, so it wont be a word-for-word
translation. Instead, my goal is to produce the same final programs.
<br><br>
These tutorials <i>will</i> get you started developing in Ruboto, but they aren't really worthwhile unless they
also teach you how to use the Android documentation. So throughout these tutorials I will introduce you to the Android docs,
and how to translate them to JRuby. When we get to that, I'll assume that you're reading along with me, so please follow the links!
<br><br>
These are still being written. If you'd like to be alerted when new tutorials are added or report issues then please visit <a href="https://github.com/KCErb/hello-ruboto">the github
repo</a> that hosts this site.
</h3>
<!-- Generate Tutorial Links -->
<!-- First, create an array of the tutorials by splitting a string, and get all the pages -->
{% assign categories = "first_app toolbox" | split: ' ' %}
{% assign pages = site.pages | sort:'order' %}
<!-- Next go through each category and create its links -->
{% for category in categories %}
<!-- Now find the title of this category and put it as a header -->
{% for page in pages %}
{% if page.category == category %}
<h2>
{{ page.category-title }}
</h2>
{% break %}
{% endif %}
{% endfor %}
<!-- With the title in place, find all the pages that belong to this category and link'em up -->
<div class="trigger">
{% for page in pages %}
{% if page.category == category %}
<div>
<a class="page-link" href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a>
</div>
{% endif %}
{% endfor %}
</div>
<br>
{% endfor %}
</div>