Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Roll out latest changes to production #3971

Merged
merged 5 commits into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
== NVMe SSD boot

NVMe (Non-Volatile Memory express) is a standard for external storage access over a PCIe bus. You can connect NVMe drives via the PCIe slot on a IO Boards since Compute Module 4 and or Raspberry Pi 5 using an M.2 HAT+. With some additional configuration, you can boot from an NVMe drive.
NVMe (Non-Volatile Memory express) is a standard for external storage access over a PCIe bus. You can connect NVMe drives via the PCIe slot on Compute Module 4 IO Board, the M.2 slot on Compute Module 5 IO Board, and Raspberry Pi 5 using an M.2 HAT+. With some additional configuration, you can boot from an NVMe drive.

=== Prerequisites

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ a|
* 2.4/5GHz dual-band 802.11ac Wi-Fi (120Mb/s)
* Bluetooth 5, Bluetooth Low Energy (BLE)
* microSD card slot
* USB-C power (5V, 3A (15W))
* USB-C power (5V 3A (15W))
^.^a|
.Raspberry Pi 5
image::images/5.jpg[alt="Raspberry Pi 5"]
Expand Down Expand Up @@ -206,7 +206,7 @@ a|
* 2.4/5GHz dual-band 802.11ac Wi-Fi (120Mb/s)
* Bluetooth 5, Bluetooth Low Energy (BLE)
* microSD card slot
* USB-C power (5V, 3A (15W))
* USB-C power (5V 3A (15W))
^.^a|
.Raspberry Pi 500
image::images/500.png[alt="Raspberry Pi 500"]
Expand Down
25 changes: 11 additions & 14 deletions jekyll-assets/scripts/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ function toggleTheme() {
var theme = localStorage.getItem('theme');
// if the theme has never been set, or is light, set the theme to the dark symbol in local storage to change it
if (localStorage.getItem('theme') !== null && theme == '🌝' ) {
if (document.cookie.indexOf("cookiebanner_accepted") != -1) {
if (cookiePermission != -1) {
localStorage.setItem('theme', '🌚');
}
} else {
if (document.cookie.indexOf("cookiebanner_accepted") != -1) {
if (cookiePermission != -1) {
// otherwise, the theme is currently set to dark, so set the theme to the light symbol in local storage to change it
localStorage.setItem('theme', '🌝');
}
Expand All @@ -25,17 +25,14 @@ function toggleTheme() {
// from the site's perspective, we default to a dark theme, but toggle it to a light theme on load if the user doesn't ask for dark.
// why do this? To prevent an annoying light 'flash' for dark theme users. light theme users don't really notice or care if there's a dark anti-flash.
function initTheme() {
var cookiePermission = document.cookie.indexOf("cookiebanner_accepted");
if (document.cookie.indexOf("cookiebanner_accepted") != -1) {
// fetch the theme from local storage (if it exists)
var theme = localStorage.getItem('theme');
// if the theme has been set to light (null check to short circuit if not set)
if(theme !== null && theme === '🌝'
// if we can use matchMedia and the browser supports the dark color scheme
|| (window.matchMedia && !window.matchMedia('(prefers-color-scheme: dark)').matches)
&& theme !== '🌚') {
// toggles the theme from the default dark mode to the light version (which actually _shows_ by default to many users)
document.body.classList.toggle('light');
}
// fetch the theme from local storage (if it exists)
var theme = localStorage.getItem('theme');
// if the theme has been set to light (null check to short circuit if not set)
if(theme !== null && theme === '🌝'
// if we can use matchMedia and the browser supports the dark color scheme
|| (window.matchMedia && !window.matchMedia('(prefers-color-scheme: dark)').matches)
&& theme !== '🌚') {
// toggles the theme from the default dark mode to the light version (which actually _shows_ by default to many users)
document.body.classList.toggle('light');
}
}
Loading