From be389c6db46619744380fe1171c1947b8be1f910 Mon Sep 17 00:00:00 2001
From: foamyguy
Date: Fri, 25 Oct 2024 15:27:35 -0500
Subject: [PATCH 1/3] installation instructions button
---
_board/adafruit_feather_huzzah32.md | 1 +
_includes/download/board.html | 6 ++++++
template.md | 6 +++---
3 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/_board/adafruit_feather_huzzah32.md b/_board/adafruit_feather_huzzah32.md
index 44671d2502..31b14d5736 100644
--- a/_board/adafruit_feather_huzzah32.md
+++ b/_board/adafruit_feather_huzzah32.md
@@ -10,6 +10,7 @@ board_image: "adafruit_feather_huzzah32.jpg"
date_added: 2022-08-19
family: esp32
downloads_display: true
+download_instructions: https://learn.adafruit.com/circuitpython-with-esp32-quick-start
features:
- Feather-Compatible
- Battery Charging
diff --git a/_includes/download/board.html b/_includes/download/board.html
index 7cfceef5d3..02f53fe7a8 100644
--- a/_includes/download/board.html
+++ b/_includes/download/board.html
@@ -142,6 +142,12 @@ CircuitPython {{ version.version }}
version="{{ version.version }}"
>OPEN INSTALLER
{% endif %}
+ {% if page.download_instructions != nil and page.download_instructions != "" %}
+
+ {% endif %}
{% if version.modules %}
diff --git a/template.md b/template.md
index 81b20698c1..cc216e3412 100644
--- a/template.md
+++ b/template.md
@@ -11,12 +11,12 @@ board_image: "unknown.jpg"
date_added: 2020-03-31
downloads_display: true
blinka: false
-download_instructions: "BLINKA ONLY - url"
+download_instructions: "url"
+family: esp32 # See _data/bootloaders.json
+bootloader_id:
# Features are tags; they should be limited to the items in this list and spelled exactly the same.
# Include only the features your board supports, and remove these comment lines before committing.
# Breadboard-Friendly is a parallel pin layout with minimal non-critical perpendicular pins
-family: esp32 # See _data/bootloaders.json
-bootloader_id:
features:
- Arduino Shield Compatible
- Battery Charging
From 21ef7f6b561a7c5a1fc806044051f4b76d3a95d9 Mon Sep 17 00:00:00 2001
From: foamyguy
Date: Mon, 28 Oct 2024 09:48:01 -0500
Subject: [PATCH 2/3] move install instructions button next to release notes
link
---
_includes/download/board.html | 17 ++++++++---------
assets/sass/pages/_download.scss | 9 +++++++--
2 files changed, 15 insertions(+), 11 deletions(-)
diff --git a/_includes/download/board.html b/_includes/download/board.html
index 02f53fe7a8..d92a248b19 100644
--- a/_includes/download/board.html
+++ b/_includes/download/board.html
@@ -45,9 +45,14 @@ CircuitPython {{ version.version }}
Older bootloaders cannot load the firmware. See Update UF2 Bootloader below.
{% endif %}
-
- Release Notes for {{ version.version }}
-
+
{% comment %}
Create a list of language codes and names so it can be sorted.
@@ -142,12 +147,6 @@
CircuitPython {{ version.version }}
version="{{ version.version }}"
>OPEN INSTALLER
{% endif %}
- {% if page.download_instructions != nil and page.download_instructions != "" %}
-
- {% endif %}
{% if version.modules %}
diff --git a/assets/sass/pages/_download.scss b/assets/sass/pages/_download.scss
index 10ab3e50e9..95a2c2673e 100644
--- a/assets/sass/pages/_download.scss
+++ b/assets/sass/pages/_download.scss
@@ -58,7 +58,12 @@
}
}
- .download-details {
+ .install-instructions-button{
+ width: 100%;
+ margin-bottom: 1em;
+ }
+
+ .download-details, .release-details {
display: grid;
grid-template-columns: repeat(2, 1fr);
}
@@ -192,7 +197,7 @@
grid-template-columns: 1fr 1fr;
.download {
- .download-details {
+ .download-details, .release-details {
grid-template-columns: repeat(1, 1fr);
}
From 2fa2fec871a11c4aa5cdb35bd289eaf3bff73bc5 Mon Sep 17 00:00:00 2001
From: foamyguy
Date: Mon, 28 Oct 2024 10:41:05 -0500
Subject: [PATCH 3/3] use 'how to install' and center
---
_includes/download/board.html | 2 +-
assets/sass/pages/_download.scss | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/_includes/download/board.html b/_includes/download/board.html
index d92a248b19..85a66af0c6 100644
--- a/_includes/download/board.html
+++ b/_includes/download/board.html
@@ -50,7 +50,7 @@ CircuitPython {{ version.version }}
Release Notes for {{ version.version }}
{% if page.download_instructions != nil and page.download_instructions != "" %}
- INSTALL INSTRUCTIONS
+ HOW TO INSTALL
{% endif %}
diff --git a/assets/sass/pages/_download.scss b/assets/sass/pages/_download.scss
index 95a2c2673e..86fb14c733 100644
--- a/assets/sass/pages/_download.scss
+++ b/assets/sass/pages/_download.scss
@@ -60,6 +60,7 @@
.install-instructions-button{
width: 100%;
+ text-align: center;
margin-bottom: 1em;
}