Onboarding: accordion + distro list updates
This commit is contained in:
@@ -54,22 +54,32 @@
|
|||||||
<h3>Install the Pi-Kit CA (recommended, one-time)</h3>
|
<h3>Install the Pi-Kit CA (recommended, one-time)</h3>
|
||||||
<p>This removes future warnings for both Pi-Kit and DietPi dashboards.</p>
|
<p>This removes future warnings for both Pi-Kit and DietPi dashboards.</p>
|
||||||
<details>
|
<details>
|
||||||
<summary>Linux (Arch/Endeavour)</summary>
|
<summary>Windows</summary>
|
||||||
<code id="archCmd">curl -s http://pikit.local/assets/pikit-ca.crt -o /tmp/pikit-ca.crt && sudo install -m644 /tmp/pikit-ca.crt /etc/ca-certificates/trust-source/anchors/ && sudo trust extract-compat</code>
|
<p>Run <strong>mmc</strong> → Add/Remove Snap-in → Certificates (Computer) → Trusted Root CAs → Import <em>pikit-ca.crt</em>.</p>
|
||||||
<button class="copy" data-target="archCmd">Copy</button>
|
|
||||||
</details>
|
|
||||||
<details>
|
|
||||||
<summary>Linux (Debian/Ubuntu)</summary>
|
|
||||||
<code id="debCmd">curl -s http://pikit.local/assets/pikit-ca.crt -o /tmp/pikit-ca.crt && sudo cp /tmp/pikit-ca.crt /usr/local/share/ca-certificates/pikit-ca.crt && sudo update-ca-certificates</code>
|
|
||||||
<button class="copy" data-target="debCmd">Copy</button>
|
|
||||||
</details>
|
</details>
|
||||||
<details>
|
<details>
|
||||||
<summary>macOS</summary>
|
<summary>macOS</summary>
|
||||||
<p>Double-click <em>pikit-ca.crt</em> → Always Trust.</p>
|
<p>Double-click <em>pikit-ca.crt</em> → Always Trust.</p>
|
||||||
</details>
|
</details>
|
||||||
<details>
|
<details>
|
||||||
<summary>Windows</summary>
|
<summary>Linux (Arch / Manjaro / Garuda, etc.)</summary>
|
||||||
<p>Run <strong>mmc</strong> → Add/Remove Snap-in → Certificates (Computer) → Trusted Root CAs → Import <em>pikit-ca.crt</em>.</p>
|
<code id="archCmd">curl -s http://pikit.local/assets/pikit-ca.crt -o /tmp/pikit-ca.crt && sudo install -m644 /tmp/pikit-ca.crt /etc/ca-certificates/trust-source/anchors/ && sudo trust extract-compat</code>
|
||||||
|
<button class="copy" data-target="archCmd">Copy</button>
|
||||||
|
</details>
|
||||||
|
<details>
|
||||||
|
<summary>Linux (Debian / Ubuntu)</summary>
|
||||||
|
<code id="debCmd">curl -s http://pikit.local/assets/pikit-ca.crt -o /tmp/pikit-ca.crt && sudo cp /tmp/pikit-ca.crt /usr/local/share/ca-certificates/pikit-ca.crt && sudo update-ca-certificates</code>
|
||||||
|
<button class="copy" data-target="debCmd">Copy</button>
|
||||||
|
</details>
|
||||||
|
<details>
|
||||||
|
<summary>Linux (Fedora)</summary>
|
||||||
|
<code id="fedoraCmd">curl -s http://pikit.local/assets/pikit-ca.crt -o /tmp/pikit-ca.crt && sudo cp /tmp/pikit-ca.crt /etc/pki/ca-trust/source/anchors/pikit-ca.crt && sudo update-ca-trust</code>
|
||||||
|
<button class="copy" data-target="fedoraCmd">Copy</button>
|
||||||
|
</details>
|
||||||
|
<details>
|
||||||
|
<summary>BSD (FreeBSD / OpenBSD)</summary>
|
||||||
|
<code id="bsdCmd">fetch -o /tmp/pikit-ca.crt http://pikit.local/assets/pikit-ca.crt && sudo install -m644 /tmp/pikit-ca.crt /usr/local/share/certs/pikit-ca.crt && sudo certctl rehash</code>
|
||||||
|
<button class="copy" data-target="bsdCmd">Copy</button>
|
||||||
</details>
|
</details>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -122,6 +132,17 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Accordion: keep only one platform section open at a time
|
||||||
|
const detailBlocks = Array.from(document.querySelectorAll("details"));
|
||||||
|
detailBlocks.forEach((d) => {
|
||||||
|
d.addEventListener("toggle", () => {
|
||||||
|
if (!d.open) return;
|
||||||
|
detailBlocks.forEach((other) => {
|
||||||
|
if (other !== d) other.removeAttribute("open");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
probe();
|
probe();
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user