Skip to content

Commit dbf10d1

Browse files
authored
Merge pull request #337 from srobo/dgt/brain-updates-page
Get Brain Updates page ready for SR2023
2 parents 05cb09d + 596b48c commit dbf10d1

File tree

3 files changed

+9
-13
lines changed

3 files changed

+9
-13
lines changed

_data/kit_versions.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
# The latest version should be the first in this file.
2-
- version: 2022.2.0
3-
released: 2022-04-18
4-
- version: 2022.1.0
5-
released: 2022-02-04
6-
- version: 2022.0.2
7-
released: 2021-11-23
8-
- version: 2022.0.1
9-
released: 2021-11-20
10-
- version: 2022.0.0
11-
released: 2021-11-13
2+
# The format of this file should be like such:
3+
# - version: 20xx.y.z
4+
# released: 2038-01-19
5+
[]

_includes/updates-table.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<th></th>
44
<th>Release Date</th>
55
<th>Download</th>
6-
<th>Licences</th>
76
</tr>
87
{% for kit_version in site.data.kit_versions %}
98
{% assign version = kit_version.version %}
@@ -17,11 +16,10 @@
1716
</td>
1817
<td>{{ kit_version.released | date_to_string }}</td>
1918
<td>
20-
<a class="kit-download-link" data-version="{{ version }}" href="https://kit-downloads.studentrobotics.org/kit-software/{{ version }}/srobo-robot-{{ version }}.img.xz">
19+
<a class="kit-download-link" data-version="{{ version }}" href="https://github.com/srobo/robot-image/releases/download/v{{ version }}/srobo-robot-{{ version }}.img.xz">
2120
Download {{ version }}
2221
</a>
2322
</td>
24-
<td><a href="https://kit-downloads.studentrobotics.org/kit-software/{{ version }}/srobo-robot-{{ version }}-licences">Licences</a></td>
2523
</tr>
2624
{% endfor %}
2725
</table>

kit/brain_board/updates.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ Once you have downloaded the file you need, refer to the documentation on [updat
1212

1313
Each update file is a complete upgrade. Each file contains the changes of those before it. If you need to jump up multiple versions, you can do so by using the latest file.
1414

15+
{% if site.data.kit_versions.size > 0 %}
1516
The following table outlines the updates which have been published.
1617

1718
{% include updates-table.html %}
19+
{% else %}
20+
There are currently no updates available.
21+
{% endif %}

0 commit comments

Comments
 (0)