Skip to content

Commit f26dc4c

Browse files
authored
Merge pull request #1514 from FoamyGuy/installation_instructions
installation instructions button
2 parents 47ea9b8 + 2fa2fec commit f26dc4c

File tree

4 files changed

+20
-8
lines changed

4 files changed

+20
-8
lines changed

_board/adafruit_feather_huzzah32.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ board_image: "adafruit_feather_huzzah32.jpg"
1010
date_added: 2022-08-19
1111
family: esp32
1212
downloads_display: true
13+
download_instructions: https://learn.adafruit.com/circuitpython-with-esp32-quick-start
1314
features:
1415
- Feather-Compatible
1516
- Battery Charging

_includes/download/board.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,14 @@ <h3>CircuitPython {{ version.version }}</h3>
4545
Older bootloaders cannot load the firmware. See <i>Update UF2 Bootloader</i> below.</b>
4646
</p>
4747
{% endif %}
48-
<p>
49-
<a href="https://github.com/adafruit/circuitpython/releases/tag/{{ version.version }}">Release Notes for {{ version.version }}</a>
50-
</p>
48+
<div class="release-details">
49+
<p>
50+
<a href="https://github.com/adafruit/circuitpython/releases/tag/{{ version.version }}">Release Notes for {{ version.version }}</a>
51+
</p>
52+
{% if page.download_instructions != nil and page.download_instructions != "" %}
53+
<a class="download-button install-instructions-button" target="_blank" href="{{ page.download_instructions }}">HOW TO INSTALL<i class="fas fa-arrow-circle-right" aria-hidden="true"></i></a>
54+
{% endif %}
55+
</div>
5156
<div class="download-details">
5257
{% comment %}
5358
Create a list of language codes and names so it can be sorted.

assets/sass/pages/_download.scss

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,13 @@
5858
}
5959
}
6060

61-
.download-details {
61+
.install-instructions-button{
62+
width: 100%;
63+
text-align: center;
64+
margin-bottom: 1em;
65+
}
66+
67+
.download-details, .release-details {
6268
display: grid;
6369
grid-template-columns: repeat(2, 1fr);
6470
}
@@ -192,7 +198,7 @@
192198
grid-template-columns: 1fr 1fr;
193199

194200
.download {
195-
.download-details {
201+
.download-details, .release-details {
196202
grid-template-columns: repeat(1, 1fr);
197203
}
198204

template.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ board_image: "unknown.jpg"
1111
date_added: 2020-03-31
1212
downloads_display: true
1313
blinka: false
14-
download_instructions: "BLINKA ONLY - url"
14+
download_instructions: "url"
15+
family: esp32 # See _data/bootloaders.json
16+
bootloader_id:
1517
# Features are tags; they should be limited to the items in this list and spelled exactly the same.
1618
# Include only the features your board supports, and remove these comment lines before committing.
1719
# Breadboard-Friendly is a parallel pin layout with minimal non-critical perpendicular pins
18-
family: esp32 # See _data/bootloaders.json
19-
bootloader_id:
2020
features:
2121
- Arduino Shield Compatible
2222
- Battery Charging

0 commit comments

Comments
 (0)