ci(site): add format/lint/test/build workflow for astro site

Add Site GitHub Actions workflow running prettier format check, astro
check, tests, and build on changes under site/. Wire prettier into the
site package with config, ignore, and scripts, and format existing
sources.
This commit is contained in:
Christian Visintin
2026-06-07 23:10:24 +02:00
parent f92cb93755
commit a2d766d688
19 changed files with 445 additions and 107 deletions

View File

@@ -2,7 +2,10 @@
import ThemeToggle from "./ThemeToggle.astro";
import { DOCS_URL, GITHUB_URL } from "../consts";
---
<header class="sticky top-0 z-50 border-b border-line bg-mantle/90 backdrop-blur">
<header
class="sticky top-0 z-50 border-b border-line bg-mantle/90 backdrop-blur"
>
<nav class="mx-auto flex max-w-5xl items-center justify-between px-4 py-3">
<a href="/" class="flex items-center gap-2 text-text">
<img src="/assets/images/termscp.webp" alt="termscp" class="h-7 w-7" />
@@ -19,8 +22,13 @@ import { DOCS_URL, GITHUB_URL } from "../consts";
<!-- Mobile -->
<details class="relative sm:hidden">
<summary class="cursor-pointer list-none rounded p-2 text-text hover:bg-mantle" aria-label="Menu">☰</summary>
<div class="absolute right-0 mt-2 flex w-48 flex-col gap-3 rounded-lg border border-line bg-mantle p-4 text-sm shadow-xl">
<summary
class="cursor-pointer list-none rounded p-2 text-text hover:bg-mantle"
aria-label="Menu">☰</summary
>
<div
class="absolute right-0 mt-2 flex w-48 flex-col gap-3 rounded-lg border border-line bg-mantle p-4 text-sm shadow-xl"
>
<a href="/install" class="text-overlay hover:text-text">Install</a>
<a href={DOCS_URL} class="text-overlay hover:text-text">User manual</a>
<a href={GITHUB_URL} class="text-overlay hover:text-text">GitHub</a>