Skip to content

Commit 19070c0

Browse files
committed
Template in latest version into brain board page.
1 parent e13d938 commit 19070c0

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

_data/kit_versions.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- version: 2022.0.0
2+
released: 2021-11-13

_layouts/updates.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ <h1>Documentation</h1>
2424
<th>Download</th>
2525
<th>Licences</th>
2626
</tr>
27-
{% for kit_version in page.kit_versions %}
27+
{% for kit_version in site.data.kit_versions %}
2828
<tr>
2929
<td>
3030
{% if forloop.first %}

kit/brain_board.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ layout: page
33
title: Brain Board
44
---
55

6+
{% comment %}
7+
The below will automatically calculate the latest version number, to be used when mentioning the version in this page.
8+
{% endcomment %}
9+
10+
{% assign latest_version = site.data.kit_versions | first %}
11+
{% assign latest_version = latest_version.version %}
12+
613
Brain Board
714
===========
815

@@ -17,7 +24,7 @@ The SD card is located on the underside of the board. Carefully open the Brain B
1724

1825
To fully update your Brain Board's software, or refresh it if you think it's not working correctly, you can flash our SD card image onto the microSD card in your Brain Board.
1926

20-
To update the SD card, you'll need to download our image from the [updates page]({{ site.baseurl }}/updates/).
27+
To update the SD card, you'll need to download our image from the [updates page]({{ site.baseurl }}/updates/). The latest version is `{{ latest_version }}`.
2128
The flashing procedure is identical to flashing Raspberry Pi images.
2229

2330
## Etcher
@@ -27,11 +34,11 @@ We recommend using [etcher](https://etcher.io), as it's simple to use, and avail
2734
![Etcher example]({{ site.baseurl }}/images/content/kit/etcher.png)
2835

2936
<div class="info" markdown="1">
30-
If you choose to use a tool other than Etcher, you may need to extract the `.img.xz` to `.img`. There are many tools available for this, e.g. [7-zip](http://www.7-zip.org/).
37+
If you choose to use a tool other than Etcher, you may need to extract the `srobo-robot-{{ latest_version }}.img.xz` to `srobo-robot-{{ latest_version }}.img`. There are many tools available for this, e.g. [7-zip](http://www.7-zip.org/).
3138
</div>
3239

3340
### Flashing
3441

35-
1. Open Etcher and select the `.img.xz` file you downloaded
42+
1. Open Etcher and select the `srobo-robot-{{ latest_version }}.img.xz` file you downloaded
3643
2. Select your SD card from the devices window
3744
3. Click 'Flash!'

updates/index.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
---
22
layout: updates
33
title: Updates
4-
kit_versions:
5-
- version: 2022.0.0
6-
released: 2021-11-13
74
---
85

96
# Updates

0 commit comments

Comments
 (0)