diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 00000000..481ecbe8 --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,51 @@ +# Website (website/) mit Hugo bauen und auf GitHub Pages veröffentlichen ([138]). +# Voraussetzung: in den Repo-Einstellungen Pages → Source: „GitHub Actions". +name: pages + +on: + push: + branches: [master] + paths: + - "website/**" + - ".github/workflows/pages.yml" + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: pages + cancel-in-progress: false + +env: + HUGO_VERSION: "0.147.9" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Hugo extended installieren + run: | + curl -fsSL -o hugo.tar.gz "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz" + tar -xzf hugo.tar.gz hugo + ./hugo version + - id: pages + uses: actions/configure-pages@v5 + - name: Bauen + run: ./hugo --source website --minify --panicOnWarning --baseURL "${{ steps.pages.outputs.base_url }}/" + - uses: actions/upload-pages-artifact@v3 + with: + path: website/public + + deploy: + needs: build + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - id: deployment + uses: actions/deploy-pages@v4 diff --git a/NOTICE b/NOTICE index 5a713221..a612bb15 100644 --- a/NOTICE +++ b/NOTICE @@ -70,6 +70,11 @@ Schriften (public/fonts/*, je Ordner mit OFL.txt), SIL Open Font License 1.1, lo Archivo, DM Sans, IBM Plex Sans und IBM Plex Mono (IBM Corp.), Inter, Jost, Karla, Manrope, Outfit, Public Sans, Rubik, Source Sans 3 und Source Serif 4 (Adobe), Space Grotesk, Work Sans. +Website (website/static/fonts, Lizenztexte OFL-*.txt daneben), SIL Open Font License 1.1, Quelle google/fonts: + Schibsted Grotesk (The Schibsted-Grotesk Project Authors), Schnitte 600 und 800, auf Latein beschnitten; + IBM Plex Sans 400/500 und IBM Plex Mono 400 (IBM Corp.), instanziert und auf Latein beschnitten, darum + wegen des reservierten Namens „Plex" umbenannt in „Dossier Text" und „Dossier Mono". + Webview-Oberfläche (npm, ausgeliefert): React und react-dom (https://github.com/facebook/react), MIT pdf.js (pdfjs-dist, https://github.com/mozilla/pdf.js), Apache-2.0 — PDF-Unterlagen lesen diff --git a/TODO.md b/TODO.md index 5e27e017..3dd43a7b 100644 --- a/TODO.md +++ b/TODO.md @@ -2562,24 +2562,38 @@ Reihenfolge = Abhängigkeiten. Neue Geometrie entsteht in Rust ([K]). setzt sie nur bei Abweichung, als ein Undo-Schritt. Kein Modellwechsel (Reiter waren nie im Modell). Tests `viewTabs.test.ts`, e2e `viewTabs.spec.ts`. Offen: Reiter nicht mit dem Projekt gespeichert; nicht in der Tauri-App geprüft. · S - ◐ **[138] Dokumentation und Website.** (5.11.) Inhalt von `website/` neu geschrieben (nur Markdown in - `website/content/`; Layouts/CSS/Startseiten-Design unverändert, weil der Maintainer eine Design-Vorlage liefert). - Bilder in `website/static/img` (WebP, ~0.7 MB): App aus `dist-test` (Playwright/Chromium, Linux, SVG-Rückfall statt - WebGPU) und CLI-Renders (`:musterhaus-komplex … --hatch/--sketch/--ceiling`); 3D headless leer → kein 3D-Bild. - Struktur: Startseite `content/_index.md`; `/funktionen/` (nach Gruppen, ◐ mit Nummern); `/download/`; `/stand/` - (Meilensteine, bekannte Lücken); `/docs/anleitung/` (15 Kapitel: Erste Schritte, Oberfläche, Befehlszeile mit allen - 74 Befehlen + Kürzeln aus `registry.ts`, Zeichnen, Bauteile, Geschosse/±0.00, Ansichten/Ansichtsbereich/Vorlagen, - Layout/Publikation, Bemassung, Lage/Baurecht/Gelände/Sonne, Kennzahlen, Import/Export, Kommandozeile/MCP, - Tastenkürzel, Probleme); `/docs/entwickler/` (Architektur, Rust-Kern, Anzeige/Geometrie, Bauen/Testen/CI, - Mitarbeiten). Alte Seiten (Gitea-Links, three.js/WebGL-Stand) entfernt. Gebaut mit Hugo 0.147.9 extended (Linux, - ohne Warnungen), interne Links und Anker geprüft. Nicht in der Tauri-App gegengelesen; Bedienangaben aus Code/i18n. - Offen: Design-Vorlage einbauen (Layouts/CSS; Bilder laufen in der alten CSS über die Textbreite, `img{max-width:100%}` - fehlt); `hugo.toml` `repo`/`commitsApi` und Fusszeile/`log`-Shortcode zeigen auf `git.openbureau.ch/karim/ - DOSSIER-STANDALONE` — dort letzter Commit 23.10., also kein Spiegel → auf GitHub umstellen (GitHub-Commits-API hat - dieselben Felder; Pfade `/blob/master/…`, `/commits/master`), „Letzter Commit" im Plankopf der Startseite ist bis - dahin veraltet; `{{< log >}}` aus dem Inhalt genommen. Ungenutztes Theme `website/themes/hextra` (1.6 MB) löschen. - Englisch: `[languages.de]`/`[languages.en]` in `hugo.toml`, `contentDir` je Sprache (`content/`, `content.en/`), gleiche - Dateinamen, UI-Texte in `website/i18n/`. Build-Prüfung in der CI (nur `hugo --minify` bei `website/**`). Mac-Screenshots - (Metal, echtes 3D) nachliefern. · M + `website/content/`). Bilder in `website/static/img` (WebP): App aus `dist-test` (Playwright/Chromium, Linux, SVG-Rückfall + statt WebGPU) und CLI-Renders (`:musterhaus-komplex … --hatch/--sketch/--ceiling`); 3D headless leer → kein 3D-Bild. + Struktur: `/funktionen/` (nach Gruppen, ◐ mit Nummern); `/download/`; `/stand/`; `/docs/anleitung/` (15 Kapitel); + `/docs/entwickler/` (5 Kapitel). Interne Links und Anker geprüft. + (5.11.) **Startseite und Look nach dem freigegebenen Design-Paket** (`website/_design/DESIGN-PAKET.md`, Texte wörtlich; + Titel „Open-Source-CAAD"): Startseite = `layouts/home.html` (eigenes Dokument, gleiche Partials `head`/`header`/`footer` + wie die Doku), `assets/css/home.css`, `assets/js/home.js`; gemeinsame Tokens/Schriften/Doku-Stil in `assets/css/site.css` + (hell + dunkel „Lichtpause", Umschalter ohne Inline-Skript, CSP-tauglich). Scroll-Hero (1000vh) nach dem Scrub-Standard: + Video als Blob mit Ladering und Wachhund, geglättete Zeit (rAF ruht), gegatete Seeks, DOM nur bei Änderung, fünf + Abschnitte in Scroll-Distanz mit eigenem Auftritt, Lesbarkeit mit Papier-Schleiern, fünf Bedingungen für die ruhige + Startseite live in CSS und JS (gleiche Abfragen), reduzierte Bewegung live in beide Richtungen, vollständig ohne Video. + Erkennungselement: Schnittmarken A–A … H–H als Abschnittswechsel (zeichnen sich beim Hineinscrollen), Masslinie mit + Kote, Fangpunkt je Abschnitt, Planraster als feste Ebene. „Schnitt setzen": 12 vorgerechnete Schnitte, Linie ziehen + oder Regler/Tastatur. **Hero-Video aus echten Plänen** (kein KI-Video): Varianten des Musterhauses komplex (nur Wände → + + Öffnungen → + Schraffur → + Räume/Masse; Schnitt; Ansicht Süd), mit `dossier-cli` als SVG gerechnet, in Chromium zu + 300 Bildern 1920×1200 komponiert (Striche ziehen sich, Schnittlinie fährt, Schnitt klappt hoch, Blatt), ffmpeg + `-crf 20 -g 8 -keyint_min 8 +faststart`, 3.0 MB (`static/hero/`). Werkzeuge dazu liegen nicht im Repo (Scratch); + bei Bedarf als `scripts/site-hero/` nachziehen. Schriften selbst gehostet (`static/fonts`, OFL, s. `NOTICE`; Plex + umbenannt wegen reserviertem Namen). Gitea-Links → GitHub (`/blob/master/…`), Commit-Log-Shortcode entfernt (kein Netz + beim Bauen), `themes/hextra` gelöscht, `img{max-width:100%}`. GitHub Pages: `.github/workflows/pages.yml` (Hugo 0.147.9 + extended, bei Pushes auf `website/**`, `actions/deploy-pages`); Links über `relURL` und Render-Hooks, damit die Seite + auch unter `expiredtanin.github.io/DOSSIER/` läuft. Selbsttest (Playwright/Chromium, Linux): 1280×800, 1440×900, + 1920×1080, 375×812, 375×667, Telefon quer, Tablet hoch, reduzierte Bewegung (auch live), Video gesperrt, Wischtest + 120/240/360, Lesbarkeit je Abschnitt hell/dunkel, kein seitliches Scrollen, Konsole sauber, Hugo ohne Warnungen. + Nicht in Safari/auf einem echten Telefon geprüft. + Offen: **Pages in den Repo-Einstellungen einschalten** (Settings → Pages → Source: GitHub Actions). Eigene Domain + später: erst DNS (`dossier.openbureau.ch` CNAME → `expiredtanin.github.io`), dann `website/static/CNAME` mit + `dossier.openbureau.ch` anlegen und in den Pages-Einstellungen eintragen. Releases-Seite ist noch leer (Knopf + „Dossier herunterladen" führt dorthin). Doku-Texte haben noch Halbgeviertstriche als Gedankenstriche und vereinzelt + „robust"/„Lösung"/„nicht nur" (Textprüfung des Pakets gilt bisher nur für die Startseite). Bilder der Fenster- und + Türliste: das SVG von `schedule --openings --format svg` überlappt Spalten (Textbreiten), darum zeigt die Startseite dort + einen Grundriss-Ausschnitt. Englisch: `[languages.en]`, `content.en/`. Mac-Screenshots (Metal, echtes 3D). · M ## Priorität 4 — später diff --git a/website/.gitignore b/website/.gitignore index 96a70eee..dabb1e97 100644 --- a/website/.gitignore +++ b/website/.gitignore @@ -1,3 +1,4 @@ /public/ /resources/ .hugo_build.lock +/assets/jsconfig.json diff --git a/website/assets/css/home.css b/website/assets/css/home.css new file mode 100644 index 00000000..59cddfcd --- /dev/null +++ b/website/assets/css/home.css @@ -0,0 +1,288 @@ +/* Startseite. Grundlage (Tokens, Schriften, Kopf/Fuss) in site.css. + Ohne .scrub (Telefone, reduzierte Bewegung, ohne JS) gilt die ruhige Startseite mit dem Schlussbild; + .scrub setzt home.js nur, wenn keine der fünf Bedingungen zutrifft (gleiche Abfragen unten im CSS). */ + +:root { + --tshadow: 0 0 1px rgba(var(--scrim), .95), 0 1px 10px rgba(var(--scrim), .85), 0 0 36px rgba(var(--scrim), .75); +} +.home-page .top { position: absolute; left: 0; right: 0; top: 0; max-width: none; padding-inline: max(16px, 5vw); } +.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; } +.vh-only { display: none; } + +/* ---- Hero: ruhige Grundform ------------------------------------------- */ + +.hero { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 6.5rem 16px 1rem; } +.stage { position: relative; } +.poster, .hero-video, .scrim, .ring, .cue { display: none; } +.band { display: none; position: relative; --k: 1; } +.band.b5 { display: block; } +.static-sheet { margin: 2.5rem 0 0; } +.static-sheet img { display: block; width: 100%; border: 1px solid var(--hatch); background: var(--panel); } +.only-scrub { display: none !important; } + +.say { margin: 0; font: 800 clamp(2rem, 3.3vw, 3.4rem)/1.04 var(--display); letter-spacing: -.028em; text-wrap: balance; } +.title { margin: 0; font: 800 clamp(2.75rem, 4.4vw, 4.6rem)/1 var(--display); letter-spacing: -.038em; overflow-wrap: anywhere; } +.kicker { margin: 1rem 0 0; font: 400 clamp(.875rem, 1vw, 1rem)/1.4 var(--mono); letter-spacing: .03em; color: var(--text-secondary); } +.sub { margin: 1.25rem 0 0; max-width: 34ch; font-size: 1.1875rem; line-height: 1.5; } +.cta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1rem 1.75rem; margin-top: 1.75rem; } + +.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .75rem 1.5rem; border-radius: 2px; + background: var(--accent); color: var(--on-accent); font: 500 1.0625rem/1 var(--sans); text-decoration: none; text-shadow: none; + transition: background-color .25s var(--ease-out), transform .25s var(--ease-out), color .25s var(--ease-out); } +.btn:hover { background: var(--accent-hover); color: var(--on-accent); transform: translateY(-1px); } +.btn.ghost { background: transparent; color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--text-primary); } +.btn.ghost:hover { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); } +.link { font: 500 1.0625rem var(--sans); text-shadow: none; } + +/* ---- Hero: Scroll-Video ------------------------------------------------ */ + +.scrub .hero { height: 1000vh; max-width: none; padding: 0; margin: 0; } +.scrub .stage { position: sticky; top: 0; height: 100vh; overflow: hidden; } +.scrub .poster, .scrub .hero-video { display: block; position: absolute; inset: 0; width: 100%; height: 100%; } +.scrub .poster { background: var(--canvas) 70% 50% / cover no-repeat; } +.scrub .hero-video { object-fit: cover; object-position: 70% 50%; opacity: 0; transform: translateZ(0); will-change: transform; transition: opacity .7s var(--ease-out); } +.scrub .stage.video-ready .hero-video { opacity: 1; } +.scrub .stage.video-failed .hero-video { display: none; } +/* Lichtpause: das Planblatt im dunklen Schema invertiert, Farbtöne bleiben */ +:root[data-theme="dark"] .poster, :root[data-theme="dark"] .hero-video, :root[data-theme="dark"] .static-sheet img { filter: invert(.92) hue-rotate(180deg); } +@media (prefers-color-scheme: dark) { + :root:not([data-theme="light"]) .poster, :root:not([data-theme="light"]) .hero-video, :root:not([data-theme="light"]) .static-sheet img { filter: invert(.92) hue-rotate(180deg); } +} + +/* Lesbarkeit: 1 Grundschleier (Papier) über der Textspur links */ +.scrub .scrim { display: block; position: absolute; inset: 0; pointer-events: none; + background: linear-gradient(90deg, rgba(var(--scrim), .9) 0%, rgba(var(--scrim), .7) 30%, rgba(var(--scrim), 0) 47%); } +/* 2 Schleier je Abschnitt, 3 Textschatten */ +.scrub .band { display: flex; flex-direction: column; justify-content: center; position: absolute; top: 0; bottom: 0; left: 0; + width: min(46vw, 46rem); padding: 4.5rem 0 3rem max(16px, 5vw); opacity: 0; pointer-events: none; isolation: isolate; text-shadow: var(--tshadow); } +.scrub .band::before { content: ""; position: absolute; inset: 8% -8% 8% 0; z-index: -1; pointer-events: none; + opacity: calc(.25 + .75 * var(--k, 1)); + background: radial-gradient(ellipse 72% 56% at 40% 50%, rgba(var(--scrim), .82) 0%, rgba(var(--scrim), .55) 48%, rgba(var(--scrim), 0) 76%); } +.scrub .band.on .cta { pointer-events: auto; } +.scrub .band:not(.on) .cta { visibility: hidden; } +.scrub .static-sheet, .scrub .only-static { display: none; } +.scrub .only-scrub { display: inline-flex !important; } +.scrub .b1 .say { font-size: clamp(2.6rem, 4.6vw, 4.75rem); } +.scrub .b2 .say { max-width: 17ch; } + +/* Ladering, danach ein ehrlicher Scroll-Hinweis */ +.scrub .ring, .scrub .cue { display: block; position: absolute; left: max(16px, 5vw); bottom: 2rem; width: 2rem; height: 2rem; color: var(--text-secondary); transition: opacity .5s var(--ease-out); } +.ring circle { stroke-dashoffset: var(--ld, 126); transform: rotate(-90deg); transform-origin: 50% 50%; } +.scrub .cue { opacity: 0; } +.scrub .stage.video-ready .ring, .scrub .stage.video-failed .ring { opacity: 0; } +.scrub .stage.video-ready .cue, .scrub .stage.video-failed .cue { opacity: 1; } +.scrub .stage.moved .cue { opacity: 0; } +.cue svg { width: 100%; height: 100%; } +.scrub .stage.video-ready .cue svg, .scrub .stage.video-failed .cue svg { animation: cue-bob 2.4s var(--ease-io) infinite; animation-delay: -.6s; } +@keyframes cue-bob { 50% { transform: translateY(5px); } } +@media (max-height: 560px) { .scrub .cue, .scrub .ring { display: none; } } + +/* Zerlegter Text: unsichtbare Kopie für Vorleser, sichtbare aus Wörtern/Zeichen */ +.w, .c { display: inline-block; } +.ln, .half { display: block; } + +/* 1 Zeichne eine Wand: Zeichen rasten von links ein, darunter zieht sich die Wand */ +.b1 .c { --kc: clamp(0, (var(--k, 1) - var(--th, 0)) * 5, 1); opacity: var(--kc); transform: translateX(calc((1 - var(--kc)) * -28px)); } +@supports (width: round(nearest, 10px, 4px)) { + .b1 .c { transform: translateX(round(nearest, calc((1 - var(--kc)) * -28px), 7px)); } +} +.b1 .say::after { content: ""; display: block; width: 5.2em; height: .2em; margin-top: .3em; border-block: 2px solid currentColor; + transform: scaleX(var(--k, 1)); transform-origin: left; } + +/* 2 Wörter rasten ein wie Fangpunkte, kurzes Überschwingen; Öffnungen in Rot */ +.b2 .w { --kc: clamp(0, (var(--k, 1) - var(--th, 0)) * 3, 1); --ks: clamp(0, (var(--k, 1) - var(--th, 0) - var(--sd, .1)) * var(--ss, 3.2), 1); + opacity: var(--kc); transform-origin: 50% 80%; transform: scale(calc(.6 + (.4 + var(--ov, .12)) * var(--kc) - var(--ov, .12) * var(--ks))); } +.b2 .w.em { --ov: .24; --sd: .16; --ss: 2.6; color: var(--accent); } + +/* 3 Zeilen fallen ein, wie Masslinien gesetzt werden */ +.b3 .w { --kc: clamp(0, (var(--k, 1) - var(--th, 0)) * 2.8, 1); opacity: var(--kc); transform: translateY(calc((1 - var(--kc)) * -.55em)); } +.b3 .ln::after { content: ""; display: block; height: 1px; width: 100%; max-width: 12em; margin: .12em 0 .25em; background: var(--text-secondary); + transform: scaleX(clamp(0, (var(--k, 1) - var(--lt, 0)) * 2.4, 1)); transform-origin: left; } + +/* 4 Hälften öffnen sich von der Mitte aus, wie der Schnitt */ +.b4 .say { position: relative; } +.b4 .half { --kc: clamp(0, (var(--k, 1) - .12) * 1.5, 1); opacity: var(--kc); } +.b4 .half:first-child { transform: translateY(calc((1 - var(--kc)) * .6em)); } +.b4 .half:last-child { transform: translateY(calc((1 - var(--kc)) * -.6em)); } +.b4 .say::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; + background: repeating-linear-gradient(90deg, var(--accent) 0 18px, transparent 18px 24px, var(--accent) 24px 27px, transparent 27px 33px); + transform: scaleX(clamp(0, var(--k, 1) * 5, 1)); transform-origin: left; opacity: calc(1 - clamp(0, (var(--k, 1) - .35) * 1.8, 1)); } + +/* 5 Wort für Wort aufsteigen, dann Unterzeile, dann Knöpfe */ +.b5 .w { --kc: clamp(0, (var(--k, 1) - var(--th, 0)) * 3, 1); opacity: var(--kc); transform: translateY(calc((1 - var(--kc)) * .5em)); } +.b5 .kicker { --ks: clamp(0, (var(--k, 1) - .62) * 4, 1); opacity: var(--ks); transform: translateY(calc((1 - var(--ks)) * 10px)); } +.b5 .cta { --kb: clamp(0, (var(--k, 1) - .76) * 5, 1); opacity: var(--kb); transform: translateY(calc((1 - var(--kb)) * 12px)); } + +/* ---- Erkennungselement: Schnittmarken als Abschnittswechsel ------------ */ + +.cutmark { max-width: var(--wrap); margin: 0 auto; padding: 5rem 16px 3.5rem; display: flex; align-items: flex-start; gap: .6rem; color: var(--text-primary); } +.cm-end { display: flex; flex-direction: column; align-items: center; gap: .15rem; flex: none; width: 1.75rem; } +.cm-end svg { width: 1.25rem; height: 1.75rem; overflow: visible; } +.cm-end b { font: 800 1.25rem/1 var(--display); } +.cm-line { flex: 1; display: flex; align-items: center; gap: 6px; height: 2px; margin-top: 1px; overflow: hidden; } +.cm-line i { flex: none; width: 22px; height: 2px; background: currentColor; opacity: 0; transform: scaleX(0); + transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); transition-delay: var(--dl, 0s); } +.cm-line i.dot { width: 3px; } +.cm-end svg, .cm-end b { opacity: 0; transform: translateY(-8px); transition: opacity .5s var(--ease-out) .55s, transform .5s var(--ease-out) .55s; } +.cutmark.in .cm-line i, .cutmark.in .cm-end svg, .cutmark.in .cm-end b { opacity: 1; transform: none; } + +/* Masslinie mit Kote */ +.dimline { display: flex; align-items: center; gap: .6rem; margin: 1.5rem 0 2.5rem; color: var(--text-secondary); font: .875rem var(--mono); } +.dimline i { flex: 1; height: 1px; background: currentColor; position: relative; transform: scaleX(0); transition: transform 1s var(--ease-io); } +.dimline i:first-child { transform-origin: right; } +.dimline i:last-child { transform-origin: left; } +.dimline i:first-child::before, .dimline i:last-child::after { content: ""; position: absolute; top: -6px; width: 1px; height: 13px; background: currentColor; transform: rotate(45deg); } +.dimline i:first-child::before { left: 0; } +.dimline i:last-child::after { right: 0; } +.dimline.in i { transform: none; } + +/* Fangpunkt: das leise lebendige Element je Abschnitt */ +.sec-title { display: flex; align-items: baseline; gap: .65rem; margin: 0; font: 800 clamp(2rem, 3.4vw, 3rem)/1.05 var(--display); letter-spacing: -.028em; } +.sec-title.small { font-size: clamp(1.4rem, 2vw, 1.75rem); letter-spacing: -.015em; } +.sec-title.big { font-size: clamp(2.6rem, 5.4vw, 4.75rem); letter-spacing: -.035em; } +.snap { position: relative; flex: none; width: .36em; height: .36em; border: 2px solid currentColor; transform: translateY(-.06em); } +.snap::after { content: ""; position: absolute; inset: -.3em; border: 1.5px solid var(--accent); opacity: 0; } +.live .snap::after { animation: snap-pulse 5s var(--ease-io) infinite; animation-delay: -1.3s; } +@keyframes snap-pulse { 0%, 55%, 100% { opacity: 0; transform: scale(.55); } 25% { opacity: .8; transform: scale(1); } } +body.paused *, body.paused *::before, body.paused *::after { animation-play-state: paused !important; } + +.sec p { max-width: 62ch; } + +/* ---- 1 So arbeitet Dossier --------------------------------------------- */ + +.step-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 2rem; } +.step figure { margin: 0 0 1.1rem; aspect-ratio: 16 / 10; border: 1px solid var(--hatch); background: var(--panel); overflow: hidden; } +.step img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; } +.step .num { margin: 0; font: .875rem var(--mono); color: var(--text-secondary); } +.step h3 { margin: .2rem 0 .4rem; font: 600 1.625rem/1.15 var(--display); letter-spacing: -.015em; } +.step p:last-child { margin: 0; } +.step-list .step { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); } +.step-list.in .step { opacity: 1; transform: none; } +.step-list.in .step:nth-child(2) { transition-delay: .13s; } +.step-list.in .step:nth-child(3) { transition-delay: .26s; } +.step-list.in.done .step:nth-child(n) { transition-delay: 0s; } + +/* ---- 2 Was alles drin ist ---------------------------------------------- */ + +.feat-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem 3.5rem; align-items: start; } +.feat-list { list-style: none; margin: 1.75rem 0 0; padding: 0; border-top: 1px solid var(--hatch); } +.feat-list li { border-bottom: 1px solid var(--hatch); } +.feat-list button { display: block; width: 100%; padding: .85rem 0 .85rem 1.75rem; position: relative; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; + font: 400 1.0625rem/1.4 var(--sans); transition: color .25s var(--ease-out), transform .3s var(--ease-out); } +.feat-list button::before { content: ""; position: absolute; left: .2rem; top: 1.2rem; width: .55rem; height: .55rem; border: 1.5px solid var(--text-secondary); + transition: background-color .25s var(--ease-out), border-color .25s var(--ease-out), transform .3s var(--ease-out); } +.feat-list button:hover { transform: translateX(3px); } +.feat-list button:hover::before { border-color: var(--accent); } +.feat-list button[aria-pressed="true"] { font-weight: 500; } +.feat-list button[aria-pressed="true"]::before { background: var(--accent); border-color: var(--accent); transform: rotate(45deg); } +.feat-list li { opacity: 0; transform: translateX(-14px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); } +.feat-list.in li { opacity: 1; transform: none; } +.feat-list.in li:nth-child(2) { transition-delay: .06s; } .feat-list.in li:nth-child(3) { transition-delay: .12s; } +.feat-list.in li:nth-child(4) { transition-delay: .18s; } .feat-list.in li:nth-child(5) { transition-delay: .24s; } +.feat-list.in li:nth-child(6) { transition-delay: .3s; } .feat-list.in li:nth-child(7) { transition-delay: .36s; } +.feat-list.in li:nth-child(8) { transition-delay: .42s; } +.feat-list.in.done li:nth-child(n) { transition-delay: 0s; } +.shots { position: sticky; top: 2rem; aspect-ratio: 16 / 10; margin: 0; border: 1px solid var(--hatch); background: var(--panel); } +.shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .45s var(--ease-out); } +.shots img.on { opacity: 1; } + +/* ---- 3 Schweizer Praxis ------------------------------------------------ */ + +.statement { margin: 1.5rem 0 0; max-width: 28ch !important; font: 600 clamp(1.75rem, 3.3vw, 2.9rem)/1.16 var(--display); letter-spacing: -.02em; + opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); } +.statement.in { opacity: 1; transform: none; } +.kotes { display: flex; flex-wrap: wrap; gap: .75rem 3rem; margin: 2.25rem 0 0; font: .9375rem var(--mono); color: var(--text-secondary); } +.kotes span { position: relative; padding-left: 1.2rem; } +.kotes span::before { content: ""; position: absolute; left: 0; top: .35em; border: .32rem solid transparent; border-top: .5rem solid currentColor; border-bottom: 0; } + +/* ---- 4 Schnitt setzen -------------------------------------------------- */ + +.cut-panel { background: var(--panel); border: 1px solid var(--hatch); padding: clamp(1rem, 3vw, 2.5rem); } +.cut-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; } +.lede { margin: 0; font: 500 1.25rem/1.4 var(--sans); } +.cut-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1.5rem 2.5rem; align-items: center; margin-top: 1.75rem; } +.cut-plan, .cut-view { margin: 0; position: relative; } +.cut-plan { touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; } +.cut-plan img { display: block; width: 100%; pointer-events: none; } +.cut-line { position: absolute; top: 3%; bottom: 3%; left: 0; width: 0; will-change: transform; } +.cut-line::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; + background: repeating-linear-gradient(180deg, var(--accent) 0 16px, transparent 16px 21px, var(--accent) 21px 24px, transparent 24px 29px); } +.cut-line::after { content: ""; position: absolute; top: 50%; left: -.8rem; width: 1.6rem; height: 1.6rem; margin-top: -.8rem; border-radius: 50%; + border: 2px solid var(--accent); background: var(--panel); } +.cut-line b { position: absolute; left: .35rem; font: 800 1.1rem/1 var(--display); color: var(--accent); } +.cut-line b:first-child { top: -.2rem; } +.cut-line b:last-child { bottom: -.2rem; } +.live .cut-line::after { animation: handle 4.6s var(--ease-io) infinite; animation-delay: -2s; } +@keyframes handle { 50% { transform: scale(1.18); } } +.cut-view { aspect-ratio: 1200 / 799; } +.cut-view img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .28s var(--ease-out); } +.cut-view img.on { opacity: 1; } +.cut-ctrl { display: flex; align-items: center; gap: 1.25rem; margin-top: 1.5rem; } +.cut-ctrl input { flex: 1; accent-color: var(--accent); min-height: 44px; } +.cut-ctrl .kote { font: .9375rem var(--mono); color: var(--text-secondary); min-width: 9ch; text-align: right; } +:root[data-theme="dark"] .plan-img, :root[data-theme="dark"] .cut-plan img, :root[data-theme="dark"] .cut-view img { filter: invert(.9) hue-rotate(180deg); } +@media (prefers-color-scheme: dark) { + :root:not([data-theme="light"]) .plan-img, :root:not([data-theme="light"]) .cut-plan img, :root:not([data-theme="light"]) .cut-view img { filter: invert(.9) hue-rotate(180deg); } +} + +/* ---- 5–8 --------------------------------------------------------------- */ + +.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem 3.5rem; align-items: start; } +.free .split > p { margin: .4rem 0 0; font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.45; } +.narrow { max-width: 46rem; } +.state p.reveal { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.45; margin: 1.25rem 0 1.75rem; } +.reveal:not(.step-list):not(.feat-list):not(.statement) { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); } +.reveal.in:not(.step-list):not(.feat-list):not(.statement) { opacity: 1; transform: none; } + +.faq-list { border-top: 1px solid var(--hatch); } +.faq-list details { border-bottom: 1px solid var(--hatch); } +.faq-list summary { list-style: none; cursor: pointer; padding: 1.05rem 2.5rem 1.05rem 0; position: relative; font: 500 1.1875rem/1.35 var(--sans); transition: color .2s var(--ease-out); } +.faq-list summary::-webkit-details-marker { display: none; } +.faq-list summary:hover { color: var(--accent); } +.faq-list summary::after { content: ""; position: absolute; right: .4rem; top: 50%; width: .8rem; height: .8rem; margin-top: -.4rem; + background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; + transition: transform .3s var(--ease-out); } +.faq-list details[open] summary::after { transform: rotate(45deg); } +.faq-list details p { margin: 0 0 1.25rem; color: var(--text-secondary); } +.faq-list details[open] p { animation: faq-in .45s var(--ease-out); } +@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } } + +.end { text-align: center; } +.end .wall { display: block; width: min(420px, 70%); height: 24px; margin: 0 auto; color: var(--text-primary); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-io); } +.end .wall.in { transform: none; } +.end-title { margin: 1.75rem 0 0; font: 800 clamp(2.75rem, 6.4vw, 5.75rem)/1 var(--display); letter-spacing: -.04em; } +.end .cta { justify-content: center; margin-top: 2.25rem; } + +/* ---- Breiten ----------------------------------------------------------- */ + +@media (max-width: 900px) { + .step-list, .feat-grid, .split, .cut-body { grid-template-columns: minmax(0, 1fr); } + .shots { position: relative; top: 0; } + .cutmark { padding: 3.5rem 16px 2.5rem; } +} +@media (pointer: coarse) { + .btn, .link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; } + .feat-list button { min-height: 44px; } +} + +/* ---- Die fünf Bedingungen für die ruhige Startseite (wörtlich gleich in home.js) ---- */ +@media (max-width: 720px), (orientation: portrait) and (max-width: 1024px), (orientation: portrait) and (pointer: coarse), (orientation: landscape) and (pointer: coarse) and (max-height: 560px), (prefers-reduced-motion: reduce) { + .scrub .hero { height: auto; max-width: var(--wrap); margin: 0 auto; padding: 6.5rem 16px 1rem; } + .scrub .stage { position: relative; height: auto; overflow: visible; } + .scrub .poster, .scrub .hero-video, .scrub .scrim, .scrub .ring, .scrub .cue { display: none; } + .scrub .band { display: none; } + .scrub .band.b5 { display: block; position: relative; width: auto; padding: 0; opacity: 1 !important; --k: 1 !important; text-shadow: none; } + .scrub .band.b5::before { display: none; } + .scrub .band .cta { visibility: visible; pointer-events: auto; } + .scrub .static-sheet { display: block; } + .scrub .only-static { display: block; } + .scrub .only-scrub { display: none !important; } +} + +/* Reduzierte Bewegung: alles im Endzustand, nichts läuft */ +@media (prefers-reduced-motion: reduce) { + .cm-line i, .cm-end svg, .cm-end b, .dimline i, .step-list .step, .feat-list li, .statement, .reveal, .end .wall { opacity: 1 !important; transform: none !important; } +} +@media (max-width: 720px) { + .hero, .scrub .hero { padding-top: 8.5rem; } +} diff --git a/website/assets/css/site.css b/website/assets/css/site.css index f304e12c..ec1c27a1 100644 --- a/website/assets/css/site.css +++ b/website/assets/css/site.css @@ -1,195 +1,150 @@ -/* DOSSIER-Website. Bewusst schlicht: Papier, Tinte, Haarlinien wie auf einem - Plan. Farben aus dem App-Hell-Theme (src/styles.css), kein Akzent. */ +/* Dossier-Website: gemeinsame Grundlage für Startseite und Doku. + Farben und Schriften aus dem Design-Paket (website/_design/DESIGN-PAKET.md): Planpapier, Tusche, + Schraffurgrau und das Öffnungsrot aus den Dossier-Plänen. Schriften liegen in /fonts (OFL). */ -@font-face { - font-family: "archivo"; - font-style: normal; - font-weight: 100 900; - font-display: swap; - src: url("/fonts/archivo.woff2") format("woff2"); -} +@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/schibsted-grotesk-600.woff2") format("woff2"); } +@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/schibsted-grotesk-800.woff2") format("woff2"); } +/* IBM Plex Sans/Mono, beschnitten und darum umbenannt (reservierter Name, s. NOTICE) */ +@font-face { font-family: "Dossier Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-400.woff2") format("woff2"); } +@font-face { font-family: "Dossier Text"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-500.woff2") format("woff2"); } +@font-face { font-family: "Dossier Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2"); } :root { - --paper: #f5f2ec; - --ink: #1a1a18; - --dim: #5f5b55; - --hair: #cfc9c0; - --code: #ebe6de; - --sans: "archivo", system-ui, sans-serif; - --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; + --canvas: #f2f0e9; + --panel: #fbfaf5; + --accent: #b3362b; + --accent-hover: #952b22; + --accent-muted: rgba(179, 54, 43, .14); + --on-accent: #fbfaf5; + --text-secondary: #5a5f66; + --text-primary: #1c1f23; + --hatch: #c9c6bd; + --line: #8d9096; /* Ränder von Bedienelementen (≥ 3:1 auf Papier) */ + --code: #e8e5dc; + --scrim: 242, 240, 233; /* Papier als RGB für Schleier über dem Hero */ + --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif; + --sans: "Dossier Text", "Helvetica Neue", Arial, sans-serif; + --mono: "Dossier Mono", ui-monospace, Menlo, Consolas, monospace; + --ease-out: cubic-bezier(.2, .7, .2, 1); + --ease-io: cubic-bezier(.6, 0, .3, 1); + --wrap: 72rem; + color-scheme: light; } - +/* Dunkel: Lichtpause */ @media (prefers-color-scheme: dark) { - :root { - --paper: #141413; - --ink: #e6e3dd; - --dim: #9a968f; - --hair: #3a3935; - --code: #1f1f1d; + :root:not([data-theme="light"]) { + --canvas: #15181c; --panel: #1d2126; --accent: #e0675b; --accent-hover: #ee8277; + --accent-muted: rgba(224, 103, 91, .16); --on-accent: #15181c; --text-secondary: #a3a8ae; --text-primary: #ecebe6; + --hatch: #3a3f46; --line: #747a82; --code: #23282e; --scrim: 21, 24, 28; color-scheme: dark; } } - -* { box-sizing: border-box; } - -html { -webkit-text-size-adjust: 100%; } - -body { - margin: 0; - padding: 0 16px; - background: var(--paper); - color: var(--ink); - font: 16px/1.55 var(--sans); +:root[data-theme="dark"] { + --canvas: #15181c; --panel: #1d2126; --accent: #e0675b; --accent-hover: #ee8277; + --accent-muted: rgba(224, 103, 91, .16); --on-accent: #15181c; --text-secondary: #a3a8ae; --text-primary: #ecebe6; + --hatch: #3a3f46; --line: #747a82; --code: #23282e; --scrim: 21, 24, 28; color-scheme: dark; } -a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; } -a:hover { text-decoration-thickness: 2px; } - +*, *::before, *::after { box-sizing: border-box; } +html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; } +body { + margin: 0; + background: var(--canvas); + color: var(--text-primary); + font: 400 1.0625rem/1.6 var(--sans); + overflow-x: hidden; overflow-x: clip; + animation: page-in .6s var(--ease-out) both; +} +@keyframes page-in { from { opacity: 0; } } +img { max-width: 100%; height: auto; } +a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; transition: color .2s var(--ease-out), text-decoration-color .2s var(--ease-out); } +a:hover { color: var(--accent); } +:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; } code, pre, kbd { font-family: var(--mono); font-size: .875em; } +.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--panel); color: var(--text-primary); padding: .6rem 1rem; border: 1px solid var(--line); transition: top .2s var(--ease-out); } +.skip:focus { top: 1rem; } +.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; } + +/* Planraster: eine feste Ebene hinter allem, sehr langsame Drift */ +.plangrid { position: fixed; inset: -96px; z-index: -1; pointer-events: none; + background-image: + linear-gradient(to right, color-mix(in srgb, var(--hatch) 70%, transparent) 1px, transparent 1px), + linear-gradient(to bottom, color-mix(in srgb, var(--hatch) 70%, transparent) 1px, transparent 1px), + linear-gradient(to right, color-mix(in srgb, var(--hatch) 32%, transparent) 1px, transparent 1px), + linear-gradient(to bottom, color-mix(in srgb, var(--hatch) 32%, transparent) 1px, transparent 1px); + background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; + animation: grid-drift 90s linear infinite alternate; animation-delay: -30s; will-change: transform; } +@keyframes grid-drift { to { transform: translate3d(48px, 24px, 0); } } + /* ---- Kopf und Fuss -------------------------------------------------- */ -.top, .foot, .home, .docs { max-width: 64rem; margin-inline: auto; } - -.top { - display: flex; - flex-wrap: wrap; - align-items: baseline; - justify-content: space-between; - gap: .5rem 1.5rem; - padding: 1.25rem 0 1rem; - border-bottom: 1px solid var(--ink); -} -.mark { - font-weight: 800; - font-size: 1.15rem; - letter-spacing: -.01em; - text-decoration: none; -} -.top nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font: .875rem var(--mono); } +.top { position: relative; z-index: 20; display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; flex-wrap: wrap; + max-width: var(--wrap); margin: 0 auto; padding: 1.25rem 16px 1rem; } +.mark { font: 800 1.3rem/1 var(--display); letter-spacing: -.02em; text-decoration: none; } +.mark span { color: var(--accent); } +.top nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1.25rem; font: .875rem var(--mono); } .top nav a { text-decoration: none; } .top nav a:hover, .top nav a[aria-current] { text-decoration: underline; } +.theme-toggle { font: inherit; color: inherit; background: none; border: 1px solid var(--line); border-radius: 999px; width: 2rem; height: 2rem; display: inline-grid; place-items: center; cursor: pointer; padding: 0; align-self: center; transition: border-color .2s var(--ease-out), color .2s var(--ease-out); } +.theme-toggle:hover { border-color: var(--accent); color: var(--accent); } +.theme-toggle svg { width: 1rem; height: 1rem; } +.docs-page .top { border-bottom: 1px solid var(--text-primary); } -.foot { - display: flex; - flex-wrap: wrap; - gap: .25rem 1.5rem; - margin-top: 4rem; - padding: 1rem 0 2rem; - border-top: 1px solid var(--ink); - font: .8rem var(--mono); - color: var(--dim); +.foot { max-width: var(--wrap); margin: 5rem auto 0; padding: 1.25rem 16px 2.5rem; border-top: 1px solid var(--text-primary); + display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.75rem; font: .8125rem/1.5 var(--mono); color: var(--text-secondary); } +.foot a { color: var(--text-primary); } +.foot a:hover { color: var(--accent); } +.foot .mark { font-size: 1rem; color: var(--text-primary); } + +@media (pointer: coarse) { + .top nav a, .foot a { min-height: 44px; display: inline-flex; align-items: center; } + .theme-toggle { width: 44px; height: 44px; } } -/* ---- Startseite ----------------------------------------------------- */ - -.home { padding-top: 2.5rem; } -.home > * { max-width: 44rem; } - -/* Plankopf: Felder mit kleiner Beschriftung oben, Wert darunter. Die - Haarlinien entstehen aus einem 1px-Gap über dem Tintenhintergrund. */ -.titleblock { - display: grid; - grid-template-columns: repeat(4, 1fr); - gap: 1px; - margin: 0 0 2.5rem; - background: var(--ink); - border: 1.5px solid var(--ink); -} -.titleblock > div { background: var(--paper); padding: .4rem .6rem .5rem; min-width: 0; } -.titleblock .tb-wide { grid-column: span 2; } -.titleblock dt { - font: .65rem var(--mono); - text-transform: uppercase; - letter-spacing: .08em; - color: var(--dim); -} -.titleblock dd { margin: .1rem 0 0; font-size: .95rem; } -.titleblock .tb-name { font-weight: 800; font-size: 1.6rem; line-height: 1.1; letter-spacing: -.01em; } - -@media (max-width: 560px) { - .titleblock { grid-template-columns: 1fr 1fr; } -} - -/* ---- Fliesstext ----------------------------------------------------- */ - -.prose { min-width: 0; } -.prose > :first-child { margin-top: 0; } - -.prose h1 { font-size: 1.75rem; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; margin: 0 0 1.5rem; } - -.prose h2 { - margin: 3rem 0 1rem; - padding-top: .5rem; - border-top: 1px solid var(--ink); - font: 600 .8rem var(--mono); - text-transform: uppercase; - letter-spacing: .08em; -} -.prose h3 { font-size: 1rem; margin: 2rem 0 .5rem; } - -.prose p, .prose ul, .prose ol, .prose pre, .prose table { margin: 0 0 1rem; } -.prose ul, .prose ol { padding-left: 1.25rem; } -.prose li { margin-bottom: .25rem; } - -.prose :not(pre) > code { background: var(--code); padding: .05em .3em; } - -.prose pre { - background: var(--code); - padding: .75rem 1rem; - overflow-x: auto; - line-height: 1.45; -} -.prose pre code { font-size: .8rem; } - -.prose table { border-collapse: collapse; width: 100%; font-size: .9rem; display: block; overflow-x: auto; } -.prose th, .prose td { text-align: left; vertical-align: top; padding: .35rem .75rem .35rem 0; border-bottom: 1px solid var(--hair); } -.prose th { font: 600 .75rem var(--mono); text-transform: uppercase; letter-spacing: .06em; border-bottom-color: var(--ink); } - -.prose blockquote { margin: 0 0 1rem; padding-left: 1rem; border-left: 2px solid var(--ink); color: var(--dim); } - -.prose hr { border: 0; border-top: 1px dashed var(--hair); margin: 2rem 0; } - -/* Commit-Log */ -.log { list-style: none; padding: 0; font: .8rem/1.5 var(--mono); } -.log li { display: grid; grid-template-columns: auto auto 1fr; gap: 0 .75rem; padding: .3rem 0; border-bottom: 1px solid var(--hair); margin: 0; } -.log time { color: var(--dim); } -.log a { text-decoration: none; } -.log a:hover { text-decoration: underline; } -.log code { font-size: 1em; background: none; padding: 0; } -@media (max-width: 560px) { - .log li { grid-template-columns: auto 1fr; } - .log span { grid-column: 1 / -1; } -} - -/* Inhaltsverzeichnisse in der Doku (ehemals Hextra-Cards) */ -.index { list-style: none; padding: 0 !important; border-top: 1px solid var(--hair); } -.index li { margin: 0; padding: .45rem 0; border-bottom: 1px solid var(--hair); } -.index a { font-weight: 600; } -.index span { display: block; color: var(--dim); font-size: .9rem; } - /* ---- Doku ----------------------------------------------------------- */ -.docs { padding-top: 2.5rem; display: grid; gap: 2rem; } - +.docs { max-width: var(--wrap); margin: 0 auto; padding: 2.5rem 16px 0; display: grid; gap: 2rem; } @media (min-width: 860px) { - .docs { grid-template-columns: 13rem minmax(0, 44rem); gap: 3rem; } - .docnav { position: sticky; top: 1.5rem; align-self: start; } + .docs { grid-template-columns: 14rem minmax(0, 46rem); gap: 3.5rem; } + .docnav { position: sticky; top: 1.5rem; align-self: start; max-height: calc(100vh - 3rem); overflow-y: auto; } } - -.docnav { font-size: .9rem; } +.docnav { font-size: .9375rem; } .docnav a { text-decoration: none; } -.docnav a:hover, .docnav a[aria-current] { text-decoration: underline; } -.docnav a[aria-current] { font-weight: 700; } -.docnav p { - margin: 1.25rem 0 .35rem; - font: 600 .7rem var(--mono); - text-transform: uppercase; - letter-spacing: .08em; -} +.docnav a:hover { text-decoration: underline; } +.docnav a[aria-current] { font-weight: 500; color: var(--accent); } +.docnav p { margin: 1.4rem 0 .4rem; font: .75rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--text-secondary); } .docnav ul { list-style: none; margin: 0; padding: 0; } -.docnav li { margin: 0 0 .2rem; } - +.docnav li { margin: 0 0 .25rem; } @media (max-width: 859px) { - .docnav { border-bottom: 1px solid var(--hair); padding-bottom: 1rem; } + .docnav { border-bottom: 1px solid var(--hatch); padding-bottom: 1rem; } .docnav ul { display: flex; flex-wrap: wrap; gap: .2rem 1rem; } } + +.prose { min-width: 0; background: color-mix(in srgb, var(--canvas) 86%, transparent); } +.prose > :first-child { margin-top: 0; } +.prose h1 { font: 800 clamp(2rem, 4vw, 2.75rem)/1.08 var(--display); letter-spacing: -.025em; margin: 0 0 1.75rem; } +.prose h2 { margin: 3rem 0 1rem; font: 600 1.5rem/1.2 var(--display); letter-spacing: -.01em; } +.prose h2::before { content: ""; display: block; height: 1px; margin-bottom: 1rem; background: var(--text-primary); } +.prose h3 { font: 600 1.125rem/1.3 var(--display); margin: 2rem 0 .5rem; } +.prose p, .prose ul, .prose ol, .prose pre, .prose table { margin: 0 0 1rem; } +.prose ul, .prose ol { padding-left: 1.25rem; } +.prose li { margin-bottom: .3rem; } +.prose :not(pre) > code { background: var(--code); padding: .05em .3em; border-radius: 2px; } +.prose pre { background: var(--code); padding: .75rem 1rem; overflow-x: auto; line-height: 1.45; } +.prose pre code { font-size: .8125rem; } +.prose table { border-collapse: collapse; width: 100%; font-size: .9375rem; display: block; overflow-x: auto; } +.prose th, .prose td { text-align: left; vertical-align: top; padding: .4rem .75rem .4rem 0; border-bottom: 1px solid var(--hatch); } +.prose th { font: .75rem var(--mono); text-transform: uppercase; letter-spacing: .06em; border-bottom-color: var(--text-primary); } +.prose blockquote { margin: 0 0 1rem; padding-left: 1rem; border-left: 2px solid var(--accent); color: var(--text-secondary); } +.prose hr { border: 0; border-top: 1px dashed var(--hatch); margin: 2rem 0; } +.prose img { display: block; margin: 1.5rem 0; border: 1px solid var(--hatch); background: var(--panel); } +:root[data-theme="dark"] .prose img { filter: brightness(.9); } + +.index { list-style: none; padding: 0 !important; border-top: 1px solid var(--hatch); } +.index li { margin: 0; padding: .55rem 0; border-bottom: 1px solid var(--hatch); } +.index a { font-weight: 500; } +.index span { display: block; color: var(--text-secondary); font-size: .9375rem; } + +@media (prefers-reduced-motion: reduce) { + *, *::before, *::after { animation: none !important; transition: none !important; transition-delay: 0s !important; } +} diff --git a/website/assets/js/common.js b/website/assets/js/common.js new file mode 100644 index 00000000..62a69895 --- /dev/null +++ b/website/assets/js/common.js @@ -0,0 +1,20 @@ +// Gemeinsam für Startseite und Doku: Farbschema-Schalter, Animationen in verborgenen Tabs anhalten. +export function initCommon() { + const root = document.documentElement; + const dark = () => root.dataset.theme === "dark" || (root.dataset.theme !== "light" && matchMedia("(prefers-color-scheme: dark)").matches); + for (const b of document.querySelectorAll(".theme-toggle")) { + const sync = () => b.setAttribute("aria-pressed", String(dark())); + sync(); + b.addEventListener("click", () => { + const next = dark() ? "light" : "dark"; + root.dataset.theme = next; + try { + localStorage.setItem("dossier-theme", next); + } catch { + /* ohne Speicher gilt die Wahl nur für diese Seite */ + } + sync(); + }); + } + document.addEventListener("visibilitychange", () => document.body.classList.toggle("paused", document.hidden)); +} diff --git a/website/assets/js/home.js b/website/assets/js/home.js new file mode 100644 index 00000000..b81175ee --- /dev/null +++ b/website/assets/js/home.js @@ -0,0 +1,496 @@ +// Startseite: Scroll-Video (Blob, geglättete Zeit, gegatete Seeks), Textabschnitte, Schnittmarken, +// „Schnitt setzen". Standard s. website/_design/DESIGN-PAKET.md (Technik) und TODO.md [138]. +import { initCommon } from "./common.js"; + +initCommon(); + +const VIDEO_URL = "hero/hero-scrub.mp4"; // relativ zur Startseite (GitHub Pages kann unter /DOSSIER/ liegen) +const POSTER_URL = "hero/hero-poster.jpg"; +// Die fünf Bedingungen für die ruhige Startseite, Zeichen für Zeichen wie in home.css +const GATES = [ + "(max-width: 720px)", + "(orientation: portrait) and (max-width: 1024px)", + "(orientation: portrait) and (pointer: coarse)", + "(orientation: landscape) and (pointer: coarse) and (max-height: 560px)", + "(prefers-reduced-motion: reduce)", +]; +const RM = matchMedia("(prefers-reduced-motion: reduce)"); + +const root = document.documentElement; +const hero = document.querySelector(".hero"); +const stage = hero.querySelector(".stage"); +const video = hero.querySelector(".hero-video"); +const poster = hero.querySelector(".poster"); +const ring = hero.querySelector(".ring"); +const clamp = (v, lo, hi) => Math.min(hi, Math.max(lo, v)); +const smoothstep = (p, e0, e1) => { + const t = clamp((p - e0) / (e1 - e0), 0, 1); + return t * t * (3 - 2 * t); +}; +function rng(seed) { + let s = seed >>> 0; + return () => (s = (s * 1664525 + 1013904223) >>> 0) / 4294967296; +} + +// ---- Text zerlegen (einmal): unsichtbarer Satz für Vorleser, sichtbare Kopie aus Wörtern/Zeichen ---- +const OPENING_WORDS = new Set(["Fenstern,", "Türen."]); +function split(el, mode, seed) { + const text = el.textContent.replace(/\s+/g, " ").trim(); + const r = rng(seed); + const sr = document.createElement("span"); + sr.className = "vh"; + sr.textContent = text; + const vis = document.createElement("span"); + vis.setAttribute("aria-hidden", "true"); + const word = (w, th) => { + const s = document.createElement("span"); + s.className = "w"; + s.textContent = w; + s.style.setProperty("--th", th.toFixed(3)); + return s; + }; + if (mode === "chars") { + // Zeichen in Wort-Hüllen, damit nie mitten im Wort umbrochen wird + const n = text.length; + let i = 0; + text.split(" ").forEach((w, wi, all) => { + const ws = document.createElement("span"); + ws.className = "w"; + for (const ch of w) { + const c = document.createElement("span"); + c.className = "c"; + c.textContent = ch; + c.style.setProperty("--th", ((i / n) * 0.6 + r() * 0.05).toFixed(3)); + ws.append(c); + i++; + } + vis.append(ws); + if (wi < all.length - 1) { + vis.append(" "); + i++; + } + }); + } else if (mode === "words" || mode === "rise") { + const words = mode === "rise" ? text.split(/(?<=-)/) : text.split(" "); + words.forEach((w, i) => { + const s = word(w, mode === "rise" ? i * 0.14 : (i / words.length) * 0.55 + r() * 0.06); + if (OPENING_WORDS.has(w)) s.classList.add("em"); + vis.append(s); + if (mode === "words" && i < words.length - 1) vis.append(" "); + }); + } else { + // Zeilen bzw. Hälften: Kinder- der Vorlage + const parts = [...el.querySelectorAll(":scope > span")].map((s) => s.textContent.trim()); + parts.forEach((p, li) => { + const line = document.createElement("span"); + line.className = mode === "lines" ? "ln" : "half"; + if (mode === "lines") { + line.style.setProperty("--lt", (li * 0.32).toFixed(3)); + const ws = p.split(" "); + ws.forEach((w, i) => { + line.append(word(w, li * 0.32 + i * 0.05 + r() * 0.03)); + if (i < ws.length - 1) line.append(" "); + }); + } else line.textContent = p; + vis.append(line); + }); + } + el.replaceChildren(sr, vis); +} +document.querySelectorAll("[data-split]").forEach((el, i) => split(el, el.dataset.split, 17 + i * 31)); + +// ---- Abschnitte im Hero (Scroll-Distanz) ---- +const bands = [...hero.querySelectorAll(".band")].map((el, i, all) => ({ + el, + a: +el.dataset.a, + b: +el.dataset.b, + ramp: el.dataset.ramp ? +el.dataset.ramp : 0, + first: i === 0, + last: i === all.length - 1, + op: -1, + k: -1, + on: null, +})); +let loadK = 0; +function updateCaptions(p) { + for (const B of bands) { + const f = Math.min(0.02, (B.b - B.a) / 3); + let op = (B.first ? 1 : smoothstep(p, B.a, B.a + f)) * (B.last ? 1 : 1 - smoothstep(p, B.b - f, B.b)); + let k = clamp((p - B.a) / (B.ramp || Math.min(0.025, (B.b - B.a) * 0.35)), 0, 1); + if (B.first) k = Math.max(k, loadK); + if (p < B.a - 0.001 || p > B.b + 0.001) op = B.first && p <= B.b ? op : 0; + op = Math.round(op * 1000) / 1000; + if (op !== B.op) { + B.op = op; + B.el.style.opacity = String(op); + } + if (Math.abs(k - B.k) > 0.008 || (k !== B.k && (k === 0 || k === 1))) { + B.k = k; + B.el.style.setProperty("--k", k.toFixed(3)); + } + const on = op > 0.5; + if (on !== B.on) { + B.on = on; + B.el.classList.toggle("on", on); + } + } +} +function clearCaptions() { + for (const B of bands) { + B.el.style.removeProperty("opacity"); + B.el.style.removeProperty("--k"); + B.el.classList.remove("on"); + B.op = B.k = -1; + B.on = null; + } +} + +// ---- Scroll → Zeit, geglättet, ruht bei Gleichstand ---- +function heroProgress() { + const r = hero.getBoundingClientRect(); + const range = hero.offsetHeight - innerHeight; + return range > 0 ? clamp(-r.top / range, 0, 1) : 0; +} +let target = 0; +let shown = 0; +let rafId = null; +let lastTick = 0; +let heroOnScreen = true; +let moved = false; +function tick(now) { + const dt = Math.min(100, now - (lastTick || now)); + lastTick = now; + shown += (target - shown) * (1 - Math.pow(1 - 0.16, dt / 16.667)); + if (Math.abs(target - shown) < 0.0005) { + shown = target; + rafId = null; + lastTick = 0; + } else rafId = requestAnimationFrame(tick); + requestSeek(shown * (video.duration || 0)); + updateCaptions(shown); + const m = shown > 0.015; + if (m !== moved) { + moved = m; + stage.classList.toggle("moved", m); + } +} +function onScroll() { + target = heroProgress(); + if (rafId === null && heroOnScreen) rafId = requestAnimationFrame(tick); +} +new IntersectionObserver((es) => { + heroOnScreen = es[0].isIntersecting; + if (heroOnScreen && scrubOn) onScroll(); +}).observe(hero); + +// ---- Gegatete Seeks (nie zwei gleichzeitig, nur der neueste zählt) ---- +let seekBusy = false; +let pendingTime = null; +function requestSeek(t) { + if (!video.duration || !videoReady) return; + if (Math.abs(video.currentTime - t) < 0.001) return; + if (seekBusy) { + pendingTime = t; + return; + } + seekBusy = true; + video.currentTime = t; +} +video.addEventListener("seeked", () => { + seekBusy = false; + if (pendingTime !== null) { + const t = pendingTime; + pendingTime = null; + requestSeek(t); + } +}); +video.addEventListener("error", () => { + seekBusy = false; + pendingTime = null; + failVideo(); +}); + +// ---- Video als Blob (Range-unabhängig), Poster zuerst, Wachhund ---- +let videoReady = false; +let heroInit = false; +function failVideo() { + stage.classList.add("video-failed"); +} +async function loadHeroBlob() { + const ctrl = new AbortController(); + let watchdog = setTimeout(() => ctrl.abort(), 20000); + const res = await fetch(VIDEO_URL, { priority: "low", signal: ctrl.signal }); + if (!res.ok || !res.body) throw new Error(String(res.status)); + const total = Number(res.headers.get("Content-Length")) || 3019980; + const reader = res.body.getReader(); + const chunks = []; + let got = 0; + let lastRing = 0; + for (;;) { + const { done, value } = await reader.read(); + if (done) break; + clearTimeout(watchdog); + watchdog = setTimeout(() => ctrl.abort(), 20000); + chunks.push(value); + got += value.length; + const frac = Math.min(1, got / total); + const now = performance.now(); + if (now - lastRing > 100 || frac === 1) { + lastRing = now; + ring.style.setProperty("--ld", String(Math.round(126 * (1 - frac)))); + } + } + clearTimeout(watchdog); + ring.style.setProperty("--ld", "0"); + video.src = URL.createObjectURL(new Blob(chunks, { type: "video/mp4" })); + video.load(); + video.addEventListener( + "canplay", + () => { + videoReady = true; + requestSeek(heroProgress() * video.duration); + stage.classList.add("video-ready"); + }, + { once: true }, + ); +} +function initHeroOnce() { + if (heroInit) return; + heroInit = true; + poster.style.backgroundImage = `url("${POSTER_URL}")`; + let started = false; + const start = () => { + if (started) return; + started = true; + loadHeroBlob().catch(failVideo); + }; + const img = new Image(); + img.onload = start; + img.onerror = start; + img.src = POSTER_URL; + setTimeout(start, 4000); +} + +// ---- Die fünf Bedingungen, live ---- +let scrubOn = false; +function enableScrub() { + if (scrubOn) return; + scrubOn = true; + root.classList.add("scrub"); + initHeroOnce(); + addEventListener("scroll", onScroll, { passive: true }); + addEventListener("resize", onScroll, { passive: true }); + bands.forEach((B) => { + B.op = -1; + B.k = -1; + }); + unpinFinalStates(); + shown = target = heroProgress(); + updateCaptions(shown); + onScroll(); +} +function disableScrub() { + if (!scrubOn) return; + scrubOn = false; + removeEventListener("scroll", onScroll); + removeEventListener("resize", onScroll); + if (rafId !== null) { + cancelAnimationFrame(rafId); + rafId = null; + } + root.classList.remove("scrub"); + clearCaptions(); +} +function applyHeroMode() { + if (GATES.some((q) => matchMedia(q).matches)) disableScrub(); + else enableScrub(); +} +const MQLS = GATES.map((q) => matchMedia(q)); +MQLS.forEach((m) => m.addEventListener("change", applyHeroMode)); + +// Abschnitt 1 setzt sich beim Laden einmal zusammen (danach übernimmt der Scroll) +const loadStart = performance.now(); +function loadRamp(now) { + loadK = smoothstep(now - loadStart, 150, 1400); + if (scrubOn) updateCaptions(shown); + if (loadK < 1) requestAnimationFrame(loadRamp); +} + +// ---- Schnittmarken, Masslinien, Auftritte ---- +const reveals = [...document.querySelectorAll(".cutmark, .dimline, .reveal, .end .wall")]; +const ARROW = ''; +function buildCutmark(el) { + const L = el.dataset.letter; + if (!el.firstChild) { + el.innerHTML = `${ARROW}${L}${ARROW}${L}`; + } + const line = el.querySelector(".cm-line"); + const w = line.getBoundingClientRect().width; + // Strich-Punkt wie die Schnittlinie im Plan: 22 lang, 6 Lücke, 3 Punkt, 6 Lücke + const n = Math.max(2, Math.floor(w / 37)); + if (line.childElementCount === n * 2) return; + const frag = document.createDocumentFragment(); + for (let i = 0; i < n; i++) { + const d = Math.abs((i + 0.5) / n - 0.5) * 2; + for (const cls of ["", "dot"]) { + const s = document.createElement("i"); + if (cls) s.className = cls; + s.style.setProperty("--dl", `${(d * 0.55).toFixed(3)}s`); + frag.append(s); + } + } + line.replaceChildren(frag); +} +const cutmarks = [...document.querySelectorAll(".cutmark")]; +cutmarks.forEach(buildCutmark); +let rsz = 0; +addEventListener("resize", () => { + clearTimeout(rsz); + rsz = setTimeout(() => cutmarks.forEach(buildCutmark), 200); +}); +const revealIO = new IntersectionObserver( + (es) => { + for (const e of es) { + if (!e.isIntersecting) continue; + e.target.classList.add("in"); + if (e.target.matches(".step-list, .feat-list")) setTimeout(() => e.target.classList.add("done"), 1400); + } + }, + { rootMargin: "0px 0px -12% 0px" }, +); +reveals.forEach((el) => revealIO.observe(el)); +// Lebendige Elemente nur auf dem Bildschirm +const liveIO = new IntersectionObserver((es) => es.forEach((e) => e.target.classList.toggle("live", e.isIntersecting))); +document.querySelectorAll(".sec").forEach((s) => liveIO.observe(s)); + +// ---- Was alles drin ist: Bild beim Darüberfahren ---- +const featBtns = [...document.querySelectorAll(".feat-list button")]; +const shots = [...document.querySelectorAll(".shots img")]; +function showShot(i) { + featBtns.forEach((b, j) => b.setAttribute("aria-pressed", String(i === j))); + shots.forEach((s, j) => s.classList.toggle("on", i === j)); +} +featBtns.forEach((b, i) => { + b.addEventListener("click", () => showShot(i)); + b.addEventListener("pointerenter", (e) => { + if (e.pointerType === "mouse") showShot(i); + }); + b.addEventListener("focus", () => showShot(i)); +}); + +// ---- Schnitt setzen: Linie über den Grundriss ziehen, Schnitt folgt (12 vorgerechnete Schnitte) ---- +// Lage der Schnittlinien im Modell (x in m) und Ausschnitt des Grundrissbilds (viewBox x, Breite) +const CUT_X = Array.from({ length: 12 }, (_, i) => 0.6 + (i * 16.6) / 11); +const PLAN_VB = [-7.2, 28.25406]; +const cutPlan = document.querySelector(".cut-plan"); +const cutLine = document.querySelector(".cut-line"); +const cutImgs = [...document.querySelectorAll(".cut-view img")]; +const cutRange = document.querySelector(".cut-ctrl input"); +const cutOut = document.querySelector(".cut-ctrl .kote"); +const f0 = (CUT_X[0] - PLAN_VB[0]) / PLAN_VB[1]; +const f1 = (CUT_X[11] - PLAN_VB[0]) / PLAN_VB[1]; +let cutIdx = -1; +let cutU = 0.5; +let lastCutPx = -1; +function setCut(u) { + cutU = clamp(u, 0, 1); + const px = Math.round((f0 + (f1 - f0) * cutU) * cutPlan.clientWidth * 10) / 10; + if (px !== lastCutPx) { + lastCutPx = px; + cutLine.style.transform = `translateX(${px}px)`; + } + const i = Math.round(cutU * 11); + if (i !== cutIdx) { + cutIdx = i; + cutImgs.forEach((im, j) => im.classList.toggle("on", j === i)); + const x = CUT_X[i].toFixed(2); + cutOut.textContent = `A–A ${x}`; + cutRange.setAttribute("aria-valuetext", `${x} m von der Westfassade, Schnitt ${i + 1} von 12`); + } + const v = String(Math.round(cutU * 1000)); + if (cutRange.value !== v) cutRange.value = v; +} +cutRange.addEventListener("input", () => setCut(+cutRange.value / 1000)); +// Loslassen: weich auf den gezeigten Schnitt einrasten +let snapRaf = null; +function snapCut() { + if (RM.matches) return setCut(Math.round(cutU * 11) / 11); + const goal = Math.round(cutU * 11) / 11; + cancelAnimationFrame(snapRaf); + const step = () => { + const d = goal - cutU; + if (Math.abs(d) < 0.001) return setCut(goal); + setCut(cutU + d * 0.2); + snapRaf = requestAnimationFrame(step); + }; + snapRaf = requestAnimationFrame(step); +} +cutRange.addEventListener("change", snapCut); +let dragging = false; +const fromPointer = (e) => { + const r = cutPlan.getBoundingClientRect(); + return ((e.clientX - r.left) / r.width - f0) / (f1 - f0); +}; +cutPlan.addEventListener("pointerdown", (e) => { + dragging = true; + cancelAnimationFrame(snapRaf); + cutPlan.setPointerCapture(e.pointerId); + setCut(fromPointer(e)); +}); +cutPlan.addEventListener("pointermove", (e) => { + if (dragging) setCut(fromPointer(e)); +}); +const endDrag = () => { + if (!dragging) return; + dragging = false; + snapCut(); +}; +cutPlan.addEventListener("pointerup", endDrag); +cutPlan.addEventListener("pointercancel", endDrag); +addEventListener("resize", () => { + lastCutPx = -1; + setCut(cutU); +}); +// Ohne Bewegung direkt der mittlere Schnitt; sonst ein langsamer Hinweis-Schwenk beim ersten Erscheinen +setCut(5 / 11); +let cutHinted = false; +new IntersectionObserver( + (es) => { + if (!es[0].isIntersecting || cutHinted || RM.matches) return; + cutHinted = true; + const t0 = performance.now(); + const from = cutU; + const hint = (now) => { + if (dragging || pinned) return; + const t = clamp((now - t0) / 2600, 0, 1); + setCut(from + Math.sin(t * Math.PI * 2) * 0.18 * (1 - t)); + if (t < 1) requestAnimationFrame(hint); + else snapCut(); + }; + requestAnimationFrame(hint); + }, + { threshold: 0.6 }, +).observe(cutPlan); + +// ---- Reduzierte Bewegung live, in beide Richtungen ---- +let pinned = []; +function pinToFinalStates() { + pinned = reveals.filter((el) => !el.classList.contains("in")); + pinned.forEach((el) => el.classList.add("in", "done")); + cancelAnimationFrame(snapRaf); + setCut(5 / 11); +} +function unpinFinalStates() { + for (const el of pinned) { + if (el.getBoundingClientRect().top > innerHeight) el.classList.remove("in", "done"); + } + pinned = []; +} +RM.addEventListener("change", (e) => { + if (e.matches) pinToFinalStates(); + else applyHeroMode(); +}); + +applyHeroMode(); +if (RM.matches) pinToFinalStates(); +requestAnimationFrame(loadRamp); diff --git a/website/assets/js/site.js b/website/assets/js/site.js new file mode 100644 index 00000000..1d0edf8a --- /dev/null +++ b/website/assets/js/site.js @@ -0,0 +1,3 @@ +import { initCommon } from "./common.js"; + +initCommon(); diff --git a/website/assets/js/theme.js b/website/assets/js/theme.js new file mode 100644 index 00000000..1bc7fea0 --- /dev/null +++ b/website/assets/js/theme.js @@ -0,0 +1,7 @@ +// Gewähltes Farbschema vor dem ersten Bild setzen (eigene Datei statt Inline-Skript, CSP-tauglich). +try { + const t = localStorage.getItem("dossier-theme"); + if (t === "light" || t === "dark") document.documentElement.dataset.theme = t; +} catch { + /* ohne Speicher: Systemvorgabe */ +} diff --git a/website/content/_index.md b/website/content/_index.md index e2a2515c..91f274af 100644 --- a/website/content/_index.md +++ b/website/content/_index.md @@ -1,82 +1,6 @@ --- -title: "DOSSIER" -description: "Dossier ist ein quelloffenes CAD für Architektur: ein Gebäudemodell aus Bauteilen, aus dem Grundriss, Schnitt, Ansicht, 3D und Planblätter berechnet werden. Für die Praxis in der Schweiz, AGPL-3.0." +title: "Dossier" +description: "Dossier ist ein freies CAD für Architektur. Du baust ein Gebäude aus Bauteilen, Grundriss, Schnitt und Ansicht werden daraus berechnet. Open-Source-CAAD unter AGPL-3.0." --- -Dossier ist ein CAD-Programm für Architektinnen und Architekten. Man modelliert -ein Gebäude aus Bauteilen – Wände, Decken, Dächer, Treppen, Fenster, Türen, -Räume – und erhält daraus Grundrisse, Deckenspiegel, Schnitte, Ansichten, ein -3D-Modell, Mengen und fertige Planblätter. Dazu kommt ein vollwertiges -2D-Zeichenprogramm mit Befehlszeile, wie man es von AutoCAD oder Rhino kennt. - -![Dossier mit dem Musterhaus: Grundriss Erdgeschoss 1:100, links die Werkzeuge, rechts Objekt-Info und Ausschnitte](/img/app-grundriss.webp) - -## Ein Modell, alle Pläne - -Es gibt genau ein Modell. Alles andere wird daraus abgeleitet und nie von Hand -nachgeführt: Verschiebt man eine Wand, stimmen Grundriss, Schnitt, Ansicht, 3D, -Flächenbilanz, Fenster- und Türliste und IFC sofort wieder. Bemassungen, die -an Bauteilen gefangen wurden, wandern mit. - -Der Grundriss wird nicht aus einem 3D-Netz geschnitten, sondern aus den -Bauteilen berechnet: Wandachse und Schichten ergeben Linien und Füllungen, -Öffnungen ergeben Lücke, Leibung und Symbol. Strichstärken, Schraffuren und -Detailgrad kommen erst beim Zeichnen dazu – das PDF ist derselbe Plan wie am -Bildschirm, mit echten Stiftstärken in Millimetern. - -![Schnitt A-A aus dem Musterhaus, mit Schraffuren der Schichten und Gelände](/img/cli-schnitt-aa.webp) - -## Für wen - -- **Architekturbüros in der Schweiz:** Landeskoordinaten LV95, Daten von - swisstopo, Kataster als DWG/DXF, Flächen nach SIA 416, Kennzahlen nach IVHB, - Darstellung in Anlehnung an SIA 400 (Baustoffe, Schraffuren, Linientypen). -- **Wettbewerb bis Ausführung:** Baurecht und Lage prüfen, Massenmodelle und - Raumprogramm, Eingabepläne 1:100, Ausführungspläne 1:50, Plansätze als PDF, - DXF/DWG und IFC für die Fachplaner. -- **Wer offene Werkzeuge will:** Dossier ist freie Software unter der - AGPL-3.0. Das Dateiformat `.obp` ist offenes JSON, die Kommandozeile - `dossier-cli` erzeugt Pläne und Exporte ohne Fenster. - -## Was es kann - -- **Bauteile:** mehrschichtige Wände (auch gebogen) mit sauberen Anschlüssen, - Fenster und Türen mit Typen, Anschlag und Leibung, Decken mit Aussparungen, - Dächer über beliebigen Grundrissen mit Gauben und Dachfenstern, Treppen, - Stützen, Räume, Volumenkörper. -- **Pläne:** Grundriss je Geschoss, Deckenspiegel, Schnitte und Ansichten aus - Schnittlinien, Ansichtsbereich, Detailgrad, Ansichtsvorlagen, Skizzenstil. -- **Layout:** Blätter mit Ansichtsfenstern, Masterlayouts mit Plankopf, - Legenden, Tabellen, Publikationssätze mit Index, Vektor-PDF mit Ebenen. -- **Ort:** Georeferenz, Gelände aus Höhenlinien, Baugrube, Baulinien und - Grenzabstände, Sonnenstand und Schatten. -- **Austausch:** DXF/DWG, IFC4/IFC2x3, STEP, OBJ/STL/glTF, PDF, SVG, CSV. - -Alle Funktionen, gegliedert und mit ehrlichem Stand: [Funktionen](/funktionen/). - -![Ansicht Süd im Skizzenstil](/img/cli-ansicht-skizze.webp) - -## Stand - -Dossier ist in aktiver Entwicklung und noch vor der ersten öffentlichen Beta. -Es gibt keine fertigen Installer; man baut es aus dem Quellcode -([Download und Installation](/download/)). Hauptplattform ist macOS (Tauri, -Anzeige über Metal), Linux läuft über Electron. Was fertig ist und was nicht, -steht unter [Stand](/stand/). - -## Weiter - -- [Anleitung](/docs/anleitung/) – Bedienung, Schritt für Schritt -- [Für Entwickler](/docs/entwickler/) – Aufbau, Bauen, Testen, Mitarbeiten -- [Quellcode auf GitHub](https://github.com/expiredtanin/DOSSIER) – Issues, - Pull Requests, Arbeitsliste `TODO.md` - -## Lizenz - -© 2026 Karim Gabriele Varano, veröffentlicht unter der -[GNU Affero General Public License v3.0 oder später](https://github.com/expiredtanin/DOSSIER/blob/master/LICENSE). -Wer Dossier verändert und als Netzwerkdienst anbietet, muss den geänderten -Quellcode ebenfalls offenlegen. Fremdkomponenten behalten ihre Lizenzen -(siehe [`NOTICE`](https://github.com/expiredtanin/DOSSIER/blob/master/NOTICE)). -Dossier ist Teil von [openbureau](https://openbureau.ch) und entstand aus dem -gleichnamigen Rhino-Plugin. + diff --git a/website/hugo.toml b/website/hugo.toml index 5b76a7c6..2d495e1e 100644 --- a/website/hugo.toml +++ b/website/hugo.toml @@ -1,5 +1,5 @@ baseURL = "https://dossier.openbureau.ch/" -title = "DOSSIER" +title = "Dossier" languageCode = "de-CH" defaultContentLanguage = "de" enableRobotsTXT = true @@ -12,13 +12,9 @@ disableKinds = ["taxonomy", "term", "rss"] unsafe = true [params] - description = "DOSSIER ist ein Open-Source-CAD für Architektur: 2D-Zeichnen und ein Gebäudemodell aus Bauteilen, aus dem Grundriss, Schnitt, Ansicht und PDF berechnet werden. AGPL-3.0." + description = "Dossier ist ein freies CAD für Architektur. Du baust ein Gebäude aus Bauteilen, Grundriss, Schnitt und Ansicht werden daraus berechnet. Open-Source-CAAD unter AGPL-3.0." version = "0.1.0" - repo = "https://git.openbureau.ch/karim/DOSSIER-STANDALONE" - # Gitea-API für das Commit-Log auf der Startseite (wird beim Bauen geholt; - # ohne Netz fällt der Abschnitt auf einen Link zurück). - commitsApi = "https://git.openbureau.ch/api/v1/repos/karim/DOSSIER-STANDALONE/commits?limit=12&stat=false&verification=false&files=false" - plugin = "https://git.openbureau.ch/karim/dossier" - bureau = "https://openbureau.ch" - forum = "https://dossier.openbureau.ch/forum" + repo = "https://github.com/expiredtanin/DOSSIER" + releases = "https://github.com/expiredtanin/DOSSIER/releases" + bureau = "https://openbureau.ch" diff --git a/website/layouts/_markup/render-image.html b/website/layouts/_markup/render-image.html new file mode 100644 index 00000000..066c1fa4 --- /dev/null +++ b/website/layouts/_markup/render-image.html @@ -0,0 +1,4 @@ +{{- $u := .Destination -}} +{{- if and (hasPrefix $u "/") (not (hasPrefix $u "//")) }}{{ $u = strings.TrimPrefix "/" $u | relURL }}{{ end -}} +{{ .PlainText }} +{{- /* kein Zeilenumbruch */ -}} diff --git a/website/layouts/_markup/render-link.html b/website/layouts/_markup/render-link.html new file mode 100644 index 00000000..c86035a7 --- /dev/null +++ b/website/layouts/_markup/render-link.html @@ -0,0 +1,6 @@ +{{- /* Root-relative Ziele („/docs/…") auf die baseURL beziehen: die Seite läuft unter + dossier.openbureau.ch und unter expiredtanin.github.io/DOSSIER/. */ -}} +{{- $u := .Destination -}} +{{- if and (hasPrefix $u "/") (not (hasPrefix $u "//")) }}{{ $u = strings.TrimPrefix "/" $u | relURL }}{{ end -}} +{{ .Text }} +{{- /* kein Zeilenumbruch */ -}} diff --git a/website/layouts/_partials/commits.html b/website/layouts/_partials/commits.html deleted file mode 100644 index 47da4115..00000000 --- a/website/layouts/_partials/commits.html +++ /dev/null @@ -1,11 +0,0 @@ -{{- /* Letzte Commits aus der Gitea-API, beim Bauen geholt. Ohne Netz: leere - Liste, die Startseite zeigt dann nur den Link aufs Repo. */ -}} -{{- $commits := slice -}} -{{- with try (resources.GetRemote site.Params.commitsApi) -}} - {{- with .Err -}} - {{- warnf "Commit-Log nicht geladen: %s" . -}} - {{- else -}} - {{- with .Value -}}{{- $commits = .Content | transform.Unmarshal -}}{{- end -}} - {{- end -}} -{{- end -}} -{{- return $commits -}} diff --git a/website/layouts/_partials/footer.html b/website/layouts/_partials/footer.html new file mode 100644 index 00000000..10e19027 --- /dev/null +++ b/website/layouts/_partials/footer.html @@ -0,0 +1,11 @@ + diff --git a/website/layouts/_partials/head.html b/website/layouts/_partials/head.html new file mode 100644 index 00000000..9a0a2c89 --- /dev/null +++ b/website/layouts/_partials/head.html @@ -0,0 +1,20 @@ + + +{{ if .IsHome }}Dossier · Open-Source-CAAD{{ else }}{{ .Title }} · Dossier{{ end }} + + + + + + + + + + + + + +{{- $theme := resources.Get "js/theme.js" | js.Build (dict "minify" true) | fingerprint }} + +{{- $css := resources.Get "css/site.css" | minify | fingerprint }} + diff --git a/website/layouts/_partials/header.html b/website/layouts/_partials/header.html new file mode 100644 index 00000000..624ebbe8 --- /dev/null +++ b/website/layouts/_partials/header.html @@ -0,0 +1,12 @@ + +
+ dossier. + +
diff --git a/website/layouts/_shortcodes/card.html b/website/layouts/_shortcodes/card.html index 7671008c..d5246a4d 100644 --- a/website/layouts/_shortcodes/card.html +++ b/website/layouts/_shortcodes/card.html @@ -1 +1,3 @@ -
  • {{ .Get "title" }}{{ with .Get "subtitle" }} {{ . }}{{ end }}
  • +{{- $u := .Get "link" -}} +{{- if hasPrefix $u "/" }}{{ $u = strings.TrimPrefix "/" $u | relURL }}{{ end -}} +
  • {{ .Get "title" }}{{ with .Get "subtitle" }} {{ . }}{{ end }}
  • diff --git a/website/layouts/_shortcodes/log.html b/website/layouts/_shortcodes/log.html deleted file mode 100644 index 796a1602..00000000 --- a/website/layouts/_shortcodes/log.html +++ /dev/null @@ -1,9 +0,0 @@ -{{- $commits := partialCached "commits.html" .Page -}} -{{- with $commits }} -
      - {{- range . }} -
    1. {{ substr .sha 0 7 }} {{ index (split .commit.message "\n") 0 }}
    2. - {{- end }} -
    -{{- end }} -

    Alle Commits

    diff --git a/website/layouts/baseof.html b/website/layouts/baseof.html index c7d0b77e..c7013149 100644 --- a/website/layouts/baseof.html +++ b/website/layouts/baseof.html @@ -1,33 +1,14 @@ - - - {{ if .IsHome }}DOSSIER{{ else }}{{ .Title }} · DOSSIER{{ end }} - - - - {{ $css := resources.Get "css/site.css" | minify | fingerprint }} - + {{ partial "head.html" . }} + {{- $js := resources.Get "js/site.js" | js.Build (dict "minify" true) | fingerprint }} + - -
    - dossier. - -
    - + + + {{ partial "header.html" . }} {{ block "main" . }}{{ end }} - - + {{ partial "footer.html" . }} diff --git a/website/layouts/home.html b/website/layouts/home.html index 0395ef92..5138601d 100644 --- a/website/layouts/home.html +++ b/website/layouts/home.html @@ -1,21 +1,217 @@ -{{ define "main" }} -{{ $commits := partialCached "commits.html" . }} -
    - {{/* Plankopf statt Hero: nur Fakten. */}} -
    -
    Projekt
    DOSSIER
    -
    Inhalt
    Open-Source-CAD für Architektur
    -
    Version
    {{ site.Params.version }}
    -
    Lizenz
    AGPL-3.0
    -
    Plattform
    macOS, Linux, Browser
    -
    Letzter Commit
    - {{- with index $commits 0 }}{{ time.Format "02.01.2006" .commit.author.date }} - {{- else }}{{ now.Format "02.01.2006" }}{{ end -}} -
    -
    + +{{- /* Startseite: eigenes Dokument (nicht über baseof), Kopf/Fuss/Tokens wie die Doku. + Texte wörtlich aus website/_design/DESIGN-PAKET.md. Hero-Video aus echten Dossier-Plänen, + Erzeugung s. TODO.md [138]. */ -}} + + + {{ partial "head.html" . }} + {{- $home := resources.Get "css/home.css" | minify | fingerprint }} + + {{- $js := resources.Get "js/home.js" | js.Build (dict "minify" true) | fingerprint }} + + + + +{{ partial "header.html" . }} -
    - {{ .Content }} +
    + +
    +
    + + + + + + +
    +

    Zeichne eine Wand.

    +
    +
    +

    Dossier weiss, dass es eine Wand ist. Mit Schichten, Fenstern, Türen.

    +
    +
    +

    Der Grundriss rechnet sich selbst. Schraffur, Masse, Flächen.

    +
    +
    +

    Schnitt und Ansicht kommen aus demselben Modell.

    +
    +
    +

    Open-Source-CAAD

    +

    Computer-Aided Architectural Design

    +

    Dossier ist ein freies CAD für Architektur. Du baust ein Gebäude aus Bauteilen, Grundriss, Schnitt und Ansicht werden daraus berechnet.

    + +
    +
    + Blatt aus Dossier: Grundriss Erdgeschoss und Ansicht Süd des Musterhauses, 1:100 +
    +
    + + + +
    +
    +

    So arbeitet Dossier

    + +
      +
    1. +
      Dossier mit dem Grundriss Erdgeschoss, Werkzeuge links, Objekt-Info rechts
      +

      01

      +

      Zeichnen.

      +

      Linien, Wände, Öffnungen, mit Fang und Befehlszeile.

      +
    2. +
    3. +
      Dossier mit einem Schnitt durch das Musterhaus, Decken und Dach geschnitten
      +

      02

      +

      Modellieren.

      +

      Wandtypen mit Schichten, Decken, Dächer, Treppen, Gelände.

      +
    4. +
    5. +
      Dossier mit einem Planblatt: Ansichtsfenster, Plankopf und Massstab
      +

      03

      +

      Publizieren.

      +

      Pläne auf Blätter legen, PDF mit Ebenen, DXF, IFC.

      +
    6. +
    +
    +
    + + + +
    +
    +
    +

    Was alles drin ist

    +
      +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    • +
    +
    +
    + Deckenspiegel Erdgeschoss aus Dossier, 1:100 + Grundriss Erdgeschoss mit Bemassung und Raumstempeln + Fenster und Türen im Grundriss mit ihren Massen, aus denen die Liste entsteht + Situation in Dossier mit Parzelle, Grenzabständen und Baulinie + Schnitt durch das Musterhaus mit Gelände aus Höhenlinien + Lageplan mit Schatten am 21. Juni, Höhenlinien und Grenzabständen + Schnitt A-A als Vektorplan, wie er als PDF oder DXF hinausgeht + Ansicht Süd im Skizzenstil +
    +
    +
    + + + +
    +
    +

    Gemacht für die Schweizer Praxis

    +

    Schraffuren und Linientypen nach SIA-Konventionen, Koordinaten in LV95, Höhen ab ±0.00, Kataster und Höhenmodell von Swisstopo.

    + +
    +
    + + + +
    +
    +
    +
    +

    Schnitt setzen

    +

    Zieh die Linie. Der Schnitt folgt.

    +
    +
    +
    + Grundriss Erdgeschoss des Musterhauses mit einer verschiebbaren Schnittlinie + +
    +
    + {{- range $i, $_ := seq 0 11 }} + Schnitt durch das Musterhaus an Stelle {{ add $i 1 }} von 12 + {{- end }} +
    +
    +
    + + +
    +
    +
    +
    + + + +
    +
    +

    Frei und offen

    +

    Dossier ist freie Software unter AGPL-3.0. Kein Konto, keine Cloud, kein Abo. Deine Projekte sind Dateien auf deinem Rechner, lesbar und versionierbar.

    +
    +
    + + + +
    +
    +

    Ehrlicher Stand

    +

    Dossier ist jung. Vieles ist fertig, einiges erst halb. Hier steht genau, was.

    +

    Zum Stand

    +
    +
    + + + +
    +
    +

    Fragen

    +
    +
    + Läuft Dossier auf meinem Rechner? +

    macOS ist die Hauptplattform, mit Anzeige über Metal. Linux läuft über Electron. Windows ist bisher nicht geprüft. Fertige Installer gibt es noch nicht; bis dahin wird Dossier aus dem Quellcode gebaut, siehe Download und Installation.

    +
    +
    + Kann ich DWG und DXF öffnen? +

    Ja, Import und Export. DXF ab R12 und DWG von R13 bis 2018 lassen sich öffnen, Grundriss, Schnitt und Ansicht gehen als DXF oder DWG hinaus, auf Wunsch mit Layouts. Wände und Öffnungen werden aus DXF und DWG nicht erkannt: Der Import bleibt Unterlage oder 2D-Plan.

    +
    +
    + Kann ich mit anderen Programmen IFC austauschen? +

    Ja, IFC4 und IFC2x3, mit Schichten, Öffnungen, Räumen und Georeferenz. Die Dateien werden mit IfcOpenShell gegen Schema und Regeln geprüft.

    +
    +
    + Kostet das etwas? +

    Nein. Freie Software, auch für Büros.

    +
    +
    + Ist es fertig? +

    Nein, aber brauchbar für Entwurf und Eingabe. Was fehlt, steht im Stand.

    +
    +
    +
    +
    + + + +
    +
    + +

    Fang mit einer Wand an.

    + +
    +
    +
    -{{ end }} +{{ partial "footer.html" . }} + + diff --git a/website/layouts/page.html b/website/layouts/page.html index 705f6774..af92b785 100644 --- a/website/layouts/page.html +++ b/website/layouts/page.html @@ -1,7 +1,7 @@ {{ define "main" }}
    {{ partial "docnav.html" . }} -
    +

    {{ .Title }}

    {{ .Content }}
    diff --git a/website/layouts/section.html b/website/layouts/section.html index 705f6774..af92b785 100644 --- a/website/layouts/section.html +++ b/website/layouts/section.html @@ -1,7 +1,7 @@ {{ define "main" }}
    {{ partial "docnav.html" . }} -
    +

    {{ .Title }}

    {{ .Content }}
    diff --git a/website/static/fonts/OFL-IBMPlex.txt b/website/static/fonts/OFL-IBMPlex.txt new file mode 100644 index 00000000..c35c4c61 --- /dev/null +++ b/website/static/fonts/OFL-IBMPlex.txt @@ -0,0 +1,93 @@ +Copyright © 2017 IBM Corp. with Reserved Font Name "Plex" + +This Font Software is licensed under the SIL Open Font License, Version 1.1. + +This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/website/static/fonts/OFL-SchibstedGrotesk.txt b/website/static/fonts/OFL-SchibstedGrotesk.txt new file mode 100644 index 00000000..ba41e114 --- /dev/null +++ b/website/static/fonts/OFL-SchibstedGrotesk.txt @@ -0,0 +1,93 @@ +Copyright 2023 The Schibsted-Grotesk Project Authors (https://github.com/schibsted/schibsted-grotesk) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +https://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/website/static/fonts/archivo.woff2 b/website/static/fonts/archivo.woff2 deleted file mode 100644 index 716d4abd..00000000 Binary files a/website/static/fonts/archivo.woff2 and /dev/null differ diff --git a/website/static/fonts/ibm-plex-mono-400.woff2 b/website/static/fonts/ibm-plex-mono-400.woff2 new file mode 100644 index 00000000..937b4853 Binary files /dev/null and b/website/static/fonts/ibm-plex-mono-400.woff2 differ diff --git a/website/static/fonts/ibm-plex-sans-400.woff2 b/website/static/fonts/ibm-plex-sans-400.woff2 new file mode 100644 index 00000000..8a82bbf5 Binary files /dev/null and b/website/static/fonts/ibm-plex-sans-400.woff2 differ diff --git a/website/static/fonts/ibm-plex-sans-500.woff2 b/website/static/fonts/ibm-plex-sans-500.woff2 new file mode 100644 index 00000000..d2ee431d Binary files /dev/null and b/website/static/fonts/ibm-plex-sans-500.woff2 differ diff --git a/website/static/fonts/schibsted-grotesk-600.woff2 b/website/static/fonts/schibsted-grotesk-600.woff2 new file mode 100644 index 00000000..61ef5fd7 Binary files /dev/null and b/website/static/fonts/schibsted-grotesk-600.woff2 differ diff --git a/website/static/fonts/schibsted-grotesk-800.woff2 b/website/static/fonts/schibsted-grotesk-800.woff2 new file mode 100644 index 00000000..5ff40a30 Binary files /dev/null and b/website/static/fonts/schibsted-grotesk-800.woff2 differ diff --git a/website/static/hero/hero-ending.jpg b/website/static/hero/hero-ending.jpg new file mode 100644 index 00000000..a04259a0 Binary files /dev/null and b/website/static/hero/hero-ending.jpg differ diff --git a/website/static/hero/hero-poster.jpg b/website/static/hero/hero-poster.jpg new file mode 100644 index 00000000..023949c1 Binary files /dev/null and b/website/static/hero/hero-poster.jpg differ diff --git a/website/static/hero/hero-scrub.mp4 b/website/static/hero/hero-scrub.mp4 new file mode 100644 index 00000000..6d0b0e32 Binary files /dev/null and b/website/static/hero/hero-scrub.mp4 differ diff --git a/website/static/hero/hero-sheet.webp b/website/static/hero/hero-sheet.webp new file mode 100644 index 00000000..6343355f Binary files /dev/null and b/website/static/hero/hero-sheet.webp differ diff --git a/website/static/img/fenster.webp b/website/static/img/fenster.webp new file mode 100644 index 00000000..63c5ecf2 Binary files /dev/null and b/website/static/img/fenster.webp differ diff --git a/website/static/img/gelaende.webp b/website/static/img/gelaende.webp new file mode 100644 index 00000000..5604369c Binary files /dev/null and b/website/static/img/gelaende.webp differ diff --git a/website/static/img/lage.webp b/website/static/img/lage.webp new file mode 100644 index 00000000..bec1ae57 Binary files /dev/null and b/website/static/img/lage.webp differ diff --git a/website/static/img/schnitt/grundriss-eg.webp b/website/static/img/schnitt/grundriss-eg.webp new file mode 100644 index 00000000..2d1ad1bb Binary files /dev/null and b/website/static/img/schnitt/grundriss-eg.webp differ diff --git a/website/static/img/schnitt/schnitt-00.webp b/website/static/img/schnitt/schnitt-00.webp new file mode 100644 index 00000000..c592b40d Binary files /dev/null and b/website/static/img/schnitt/schnitt-00.webp differ diff --git a/website/static/img/schnitt/schnitt-01.webp b/website/static/img/schnitt/schnitt-01.webp new file mode 100644 index 00000000..11f1fe70 Binary files /dev/null and b/website/static/img/schnitt/schnitt-01.webp differ diff --git a/website/static/img/schnitt/schnitt-02.webp b/website/static/img/schnitt/schnitt-02.webp new file mode 100644 index 00000000..3e8f10dd Binary files /dev/null and b/website/static/img/schnitt/schnitt-02.webp differ diff --git a/website/static/img/schnitt/schnitt-03.webp b/website/static/img/schnitt/schnitt-03.webp new file mode 100644 index 00000000..4c87e791 Binary files /dev/null and b/website/static/img/schnitt/schnitt-03.webp differ diff --git a/website/static/img/schnitt/schnitt-04.webp b/website/static/img/schnitt/schnitt-04.webp new file mode 100644 index 00000000..cb54609e Binary files /dev/null and b/website/static/img/schnitt/schnitt-04.webp differ diff --git a/website/static/img/schnitt/schnitt-05.webp b/website/static/img/schnitt/schnitt-05.webp new file mode 100644 index 00000000..16b98795 Binary files /dev/null and b/website/static/img/schnitt/schnitt-05.webp differ diff --git a/website/static/img/schnitt/schnitt-06.webp b/website/static/img/schnitt/schnitt-06.webp new file mode 100644 index 00000000..bdeee46f Binary files /dev/null and b/website/static/img/schnitt/schnitt-06.webp differ diff --git a/website/static/img/schnitt/schnitt-07.webp b/website/static/img/schnitt/schnitt-07.webp new file mode 100644 index 00000000..52eab166 Binary files /dev/null and b/website/static/img/schnitt/schnitt-07.webp differ diff --git a/website/static/img/schnitt/schnitt-08.webp b/website/static/img/schnitt/schnitt-08.webp new file mode 100644 index 00000000..f8631597 Binary files /dev/null and b/website/static/img/schnitt/schnitt-08.webp differ diff --git a/website/static/img/schnitt/schnitt-09.webp b/website/static/img/schnitt/schnitt-09.webp new file mode 100644 index 00000000..ae026049 Binary files /dev/null and b/website/static/img/schnitt/schnitt-09.webp differ diff --git a/website/static/img/schnitt/schnitt-10.webp b/website/static/img/schnitt/schnitt-10.webp new file mode 100644 index 00000000..05c994a1 Binary files /dev/null and b/website/static/img/schnitt/schnitt-10.webp differ diff --git a/website/static/img/schnitt/schnitt-11.webp b/website/static/img/schnitt/schnitt-11.webp new file mode 100644 index 00000000..9d29a53a Binary files /dev/null and b/website/static/img/schnitt/schnitt-11.webp differ diff --git a/website/themes/hextra/.devcontainer/devcontainer.json b/website/themes/hextra/.devcontainer/devcontainer.json deleted file mode 100644 index d8a32b88..00000000 --- a/website/themes/hextra/.devcontainer/devcontainer.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "image": "mcr.microsoft.com/devcontainers/go:1", - "features": { - "ghcr.io/devcontainers/features/hugo:1": { - "extended": true, - "version": "0.161.1" - }, - "ghcr.io/devcontainers/features/node:1": {} - }, - "customizations": { - "vscode": { - "extensions": ["mhutchie.git-graph", "esbenp.prettier-vscode", "tamasfe.even-better-toml", "budparr.language-hugo-vscode"] - } - }, - "postCreateCommand": "npm install", - "forwardPorts": [1313] -} diff --git a/website/themes/hextra/.gitattributes b/website/themes/hextra/.gitattributes deleted file mode 100644 index 0820376f..00000000 --- a/website/themes/hextra/.gitattributes +++ /dev/null @@ -1,3 +0,0 @@ -# Mark generated files so they are collapsed by default in GitHub diffs -assets/css/compiled/main.css linguist-generated=true -docs/hugo_stats.json linguist-generated=true diff --git a/website/themes/hextra/.gitignore b/website/themes/hextra/.gitignore deleted file mode 100644 index 7377a08b..00000000 --- a/website/themes/hextra/.gitignore +++ /dev/null @@ -1,9 +0,0 @@ -node_modules/ -public/ -resources/ - -.hugo_build.lock - -# Playwright -playwright-report/ -test-results/ diff --git a/website/themes/hextra/.prettierrc b/website/themes/hextra/.prettierrc deleted file mode 100644 index 28eaa1e6..00000000 --- a/website/themes/hextra/.prettierrc +++ /dev/null @@ -1,21 +0,0 @@ -{ - "plugins": [ - "prettier-plugin-go-template" - ], - "goTemplateBracketSpacing": true, - "htmlWhitespaceSensitivity": "css", - "printWidth": 200, - "singleQuote": false, - "tabWidth": 2, - "trailingComma": "es5", - "overrides": [ - { - "files": [ - "*.html" - ], - "options": { - "parser": "go-template" - } - } - ] -} diff --git a/website/themes/hextra/.vscode/settings.json b/website/themes/hextra/.vscode/settings.json deleted file mode 100644 index 4f3bc8d9..00000000 --- a/website/themes/hextra/.vscode/settings.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "editor.tabSize": 2, - "markdown.extension.toc.levels": "2..6" -} diff --git a/website/themes/hextra/AGENTS.md b/website/themes/hextra/AGENTS.md deleted file mode 100644 index c0bbe14c..00000000 --- a/website/themes/hextra/AGENTS.md +++ /dev/null @@ -1,193 +0,0 @@ -# AGENTS.md - -This file provides guidance to AI coding agents when working with code in this repository. - -## Project Overview - -Hextra is a modern, responsive Hugo theme designed for creating documentation websites, technical blogs, and static sites. Built with Tailwind CSS, it offers features like full-text search, dark mode, multi-language support, and extensive customization options. - -## Development Commands - -### Initial Setup - -When working in a new worktree or fresh clone without `node_modules`, run `npm install` first to install dependencies: - -```bash -npm install -``` - -### Development Server - -```bash -# Start development server with theme reloading (recommended for theme development) -npm run dev:theme -``` - -### Building - -```bash -# Build the example site -npm run build - -# Build CSS assets only -npm run build:css -``` - -## Architecture Overview - -### Hugo Theme Structure - -- **Base Layout**: `layouts/baseof.html` wraps all pages -- **Specialized Layouts**: `layouts/docs/`, `layouts/blog/`, `layouts/hextra-home.html` -- **Partials**: Reusable components in `layouts/_partials/` - - Core UI: `navbar.html`, `sidebar.html`, `footer.html`, `breadcrumb.html`, `toc.html` - - Utilities: `layouts/_partials/utils/` for helper functions - - Custom overrides: `layouts/_partials/custom/` for user customizations -- **Shortcodes**: Custom Markdown extensions in `layouts/_shortcodes/` -- **Render Hooks**: Custom Markdown rendering in `layouts/_markup/` for codeblocks, headings, images, and links - -### Asset Organization - -``` -assets/ -├── css/ -│ ├── styles.css # Main stylesheet (Tailwind entry point) -│ ├── compiled/main.css # Built CSS output (generated) -│ ├── components/ # Component-specific styles -│ ├── chroma/ # Syntax highlighting themes -│ └── custom.css # User customization entry point -└── js/ - ├── core/ # Core JS components - └── flexsearch.js # Search functionality -``` - -### Key Components - -- **Search**: FlexSearch-powered full-text search (`assets/js/flexsearch.js`) -- **Navigation**: Responsive navbar and auto-generated sidebar -- **Theme Toggle**: Dark/light mode switching -- **Internationalization**: 20+ language support in `i18n/` - -### Content Features - -- **Shortcodes**: `callout`, `card`, `cards`, `tabs`, `tab`, `details`, `steps`, `filetree`, `jupyter`, `badge`, `icon`, `pdf`, `include`, `asciinema`, `term` -- **Code Features**: Syntax highlighting (Chroma), copy buttons, line numbers via render hooks -- **SEO**: Open Graph, Twitter Cards, structured data -- **Performance**: Minimal JavaScript, optimized CSS with Tailwind - -## Development Workflow - -### Example Site Development - -The `docs/` directory serves as both documentation and testing ground: - -- Test new features here before releasing -- Configuration examples in `docs/hugo.yaml` showing multi-language setup -- Content examples demonstrate all theme capabilities -- Run from docs with: `hugo server --themesDir=../..` - -### CSS Development Workflow - -- Source: `assets/css/styles.css` (main stylesheet) -- Build process: Tailwind CSS → PostCSS → `assets/css/compiled/main.css` -- Component styles organized in `assets/css/components/` -- Chroma syntax highlighting themes in `assets/css/chroma/` -- CSS compilation requires Node.js dependencies (PostCSS, Tailwind CSS v4+) - -#### Rebuilding CSS after template changes - -Tailwind CSS relies on `docs/hugo_stats.json` to know which HTML tags, classes, and IDs are actually used in the built site, so it can tree-shake unused styles. When you modify layouts, partials, or shortcodes you must **regenerate `hugo_stats.json` first**, then rebuild the CSS: - -1. **Generate `docs/hugo_stats.json`** — Run Hugo with the `dev.toml` config (which sets `build.buildStats.enable = true`): - - ```bash - # Using npm (starts a dev server that writes hugo_stats.json on every rebuild): - npm run dev:theme - - # Or a one-shot build using the raw Hugo command: - hugo --config=hugo.yaml,../dev.toml --themesDir=../.. --source=docs - ``` - -2. **Build the CSS** — With an up-to-date `hugo_stats.json` in place, compile the stylesheet: - - ```bash - npm run build:css - ``` - -> **Why two steps?** `dev.toml` mounts `docs/hugo_stats.json` into the Hugo asset pipeline (`assets/notwatching/hugo_stats.json`) and configures a cache-buster so that changes to the stats file trigger a CSS recompile during `dev:theme`. When running outside the dev server you need to perform these steps manually in order. - -### Customization Points - -- Custom partials: `layouts/_partials/custom/` -- Custom CSS: `assets/css/custom.css` -- Site-specific overrides: Copy any layout to your site's `layouts/` directory - -## Configuration & Requirements - -### Theme Requirements - -- Hugo minimum version: 0.146.0 (extended version required - see `theme.toml`) -- Go 1.20+ (as specified in `go.mod`) -- Node.js for CSS compilation (PostCSS, Tailwind CSS v4+) - -### Key Configuration Files - -- `docs/hugo.yaml` - Example Hugo configuration with multi-language setup -- `postcss.config.mjs` - PostCSS configuration for CSS processing -- `package.json` - Node.js dependencies and build scripts - -### Development Environment - -- Default Hugo development server: Port 1313 -- Development server runs with `--disableFastRender -D` for better development experience -- Theme development uses `--logLevel=debug` for detailed logging - -### Multi-language Support - -- Configure languages in `hugo.yaml` (supports 20+ languages including RTL) -- Translation files in `i18n/` directory (e.g., `en.yaml`, `fa.yaml`, `ja.yaml`, `zh-cn.yaml`) -- Example supports English, Persian (RTL), Japanese, and Simplified Chinese - -## Theme Development Guidelines - -### Hugo Theme Conventions - -- Theme files in this repository override Hugo defaults -- Follow Hugo's theme development guidelines for compatibility -- Maintain backward compatibility with existing configurations - -### JavaScript & Performance - -- All JavaScript components are designed to have minimal footprint -- Core JS components in `assets/js/core/`: `theme.js`, `nav-menu.js`, `code-copy.js`, `sidebar.js`, `tabs.js`, etc. -- FlexSearch powers offline full-text search (`assets/js/flexsearch.js`) - -### CSS Architecture - -- Uses Tailwind CSS v4+ with PostCSS processing -- Component-based CSS organization in `assets/css/components/` -- Compiled output goes to `assets/css/compiled/main.css` -- Prettier formatting for Go templates and code consistency - -### Accessibility (WCAG Compliance) - -All new features and UI changes must follow the [Web Content Accessibility Guidelines (WCAG) 2.2](https://www.w3.org/TR/WCAG22/) at the **AA** conformance level. Key requirements: - -- **Semantic HTML**: Use appropriate elements (`
    -
    -{{- end -}} diff --git a/website/themes/hextra/layouts/_partials/breadcrumb.html b/website/themes/hextra/layouts/_partials/breadcrumb.html deleted file mode 100644 index 1f4612e8..00000000 --- a/website/themes/hextra/layouts/_partials/breadcrumb.html +++ /dev/null @@ -1,17 +0,0 @@ -{{- $page := .page -}} -{{- $enable := .enable -}} -{{- if (default $enable $page.Params.breadcrumbs) -}} -
    - {{- range $page.Ancestors.Reverse }} - {{- if not .IsHome }} - - {{- partial "utils/icon.html" (dict "name" "chevron-right" "attributes" "class=\"hx:w-3.5 hx:shrink-0 hx:rtl:-rotate-180\"") -}} - {{ end -}} - {{ end -}} -
    - {{- partial "utils/title" $page -}} -
    -
    -{{ end -}} diff --git a/website/themes/hextra/layouts/_partials/components/analytics/analytics.html b/website/themes/hextra/layouts/_partials/components/analytics/analytics.html deleted file mode 100644 index 6e56b523..00000000 --- a/website/themes/hextra/layouts/_partials/components/analytics/analytics.html +++ /dev/null @@ -1,24 +0,0 @@ -{{- if hugo.IsProduction -}} - - -{{- if .Site.Config.Services.GoogleAnalytics.ID }} - - {{ partial "google-analytics.html" . -}} -{{- end }} - - -{{- if .Site.Params.analytics.umami -}} - {{ partial "components/analytics/umami.html" . }} -{{- end }} - - -{{- if .Site.Params.analytics.matomo -}} - {{ partial "components/analytics/matomo.html" . }} -{{- end }} - - -{{- if .Site.Params.analytics.goatCounter -}} - {{ partial "components/analytics/goat-counter.html" . }} -{{- end -}} - -{{- end }} diff --git a/website/themes/hextra/layouts/_partials/components/analytics/goat-counter.html b/website/themes/hextra/layouts/_partials/components/analytics/goat-counter.html deleted file mode 100644 index 3399bb0e..00000000 --- a/website/themes/hextra/layouts/_partials/components/analytics/goat-counter.html +++ /dev/null @@ -1,17 +0,0 @@ -{{- with .Site.Params.analytics.goatCounter -}} - {{- if not .code -}} - {{- errorf "Missing GoatCounter 'code' configuration. See https://imfing.github.io/hextra/versions/latest/docs/guide/configuration/#goatcounter-analytics" -}} - {{- end -}} - - -{{- end -}} \ No newline at end of file diff --git a/website/themes/hextra/layouts/_partials/components/analytics/google-analytics.html b/website/themes/hextra/layouts/_partials/components/analytics/google-analytics.html deleted file mode 100644 index 62e9d424..00000000 --- a/website/themes/hextra/layouts/_partials/components/analytics/google-analytics.html +++ /dev/null @@ -1,13 +0,0 @@ -{{- with site.Config.Services.GoogleAnalytics.ID }} - - - -{{ end -}} diff --git a/website/themes/hextra/layouts/_partials/components/analytics/matomo.html b/website/themes/hextra/layouts/_partials/components/analytics/matomo.html deleted file mode 100644 index 02b81b52..00000000 --- a/website/themes/hextra/layouts/_partials/components/analytics/matomo.html +++ /dev/null @@ -1,31 +0,0 @@ -{{- /* -Matomo Analytics. -https://developer.matomo.org/guides/tracking-javascript-guide -*/ -}} - -{{- with .Site.Params.analytics.matomo -}} - -{{- if not .serverURL }} - {{- errorf "Missing Matomo 'serverURL' configuration. See https://imfing.github.io/hextra/versions/latest/docs/guide/configuration/#matomo-analytics" -}} -{{- end -}} - -{{- if not .websiteID }} - {{- errorf "Missing Matomo 'websiteID' configuration. See https://imfing.github.io/hextra/versions/latest/docs/guide/configuration/#matomo-analytics" -}} -{{- end -}} - - - - - -{{- end -}} diff --git a/website/themes/hextra/layouts/_partials/components/analytics/umami.html b/website/themes/hextra/layouts/_partials/components/analytics/umami.html deleted file mode 100644 index df073bea..00000000 --- a/website/themes/hextra/layouts/_partials/components/analytics/umami.html +++ /dev/null @@ -1,57 +0,0 @@ -{{- /* -Umami Analytics -https://umami.is/docs/tracker-configuration -*/ -}} - -{{- with .Site.Params.analytics.umami -}} - -{{- if not .serverURL }} - {{- errorf "Missing Umami 'serverURL' configuration. See https://imfing.github.io/hextra/versions/latest/docs/guide/configuration/#umami-analytics" -}} -{{- end -}} - -{{- if not .websiteID }} - {{- errorf "Missing Umami 'websiteID' configuration. See https://imfing.github.io/hextra/versions/latest/docs/guide/configuration/#umami-analytics" -}} -{{- end -}} - -{{- $attributes := newScratch -}} - -{{- $attributes.SetInMap "umami" "src" (printf "%s/%s" .serverURL (.scriptName | default "script.js")) -}} -{{- $attributes.SetInMap "umami" "data-website-id" .websiteID -}} - -{{- if .hostURL -}} - {{- /* https://umami.is/docs/tracker-configuration#data-host-url */ -}} - {{- $attributes.SetInMap "umami" "data-host-url" .hostURL -}} -{{- end -}} - -{{- if .autoTrack -}} - {{- /* https://umami.is/docs/tracker-configuration#data-auto-track */ -}} - {{- $attributes.SetInMap "umami" "data-auto-track" .autoTrack -}} -{{- end -}} - -{{- if .tag -}} - {{- /* https://umami.is/docs/tracker-configuration#data-tag */ -}} - {{- $attributes.SetInMap "umami" "data-tag" .tag -}} -{{- end -}} - -{{- if .excludeSearch -}} - {{- /* https://umami.is/docs/tracker-configuration#data-exclude-search */ -}} - {{- $attributes.SetInMap "umami" "data-exclude-search" .excludeSearch -}} -{{- end -}} - -{{- if .excludeHash -}} - {{- /* https://umami.is/docs/tracker-configuration#data-exclude-hash */ -}} - {{- $attributes.SetInMap "umami" "data-exclude-hash" .excludeHash -}} -{{- end -}} - -{{- if .doNotTrack -}} - {{- /* https://umami.is/docs/tracker-configuration#data-do-not-track */ -}} - {{- $attributes.SetInMap "umami" "data-do-not-track" .doNotTrack -}} -{{- end -}} - -{{- if .domains -}} - {{- /* https://umami.is/docs/tracker-configuration#data-domains */ -}} - {{- $attributes.SetInMap "umami" "data-domains" .domains -}} -{{- end -}} - - -{{- end -}} diff --git a/website/themes/hextra/layouts/_partials/components/blog-pager.html b/website/themes/hextra/layouts/_partials/components/blog-pager.html deleted file mode 100644 index 1b6b130c..00000000 --- a/website/themes/hextra/layouts/_partials/components/blog-pager.html +++ /dev/null @@ -1,39 +0,0 @@ -{{/* - Blog pagination component for list pages (e.g., blog list, category list) - - Usage: {{ partial "components/blog-pager.html" $paginator }} - - Parameters: - - . (context): Hugo paginator object -*/}} - -{{- $paginator := . -}} -{{- $prevText := (T "previous") | default "Prev" -}} -{{- $nextText := (T "next") | default "Next" -}} -{{- $prevLabel := printf "%s %d/%d" $prevText (sub $paginator.PageNumber 1) $paginator.TotalPages -}} -{{- $nextLabel := printf "%s %d/%d" $nextText (add $paginator.PageNumber 1) $paginator.TotalPages -}} - -{{- if or $paginator.HasPrev $paginator.HasNext -}} - -{{- end -}} \ No newline at end of file diff --git a/website/themes/hextra/layouts/_partials/components/codeblock-copy-button.html b/website/themes/hextra/layouts/_partials/components/codeblock-copy-button.html deleted file mode 100644 index 78d0f0de..00000000 --- a/website/themes/hextra/layouts/_partials/components/codeblock-copy-button.html +++ /dev/null @@ -1,17 +0,0 @@ -{{/* TODO: remove filename variable */}} -{{- $filename := .filename | default "" -}} -{{- $display := site.Params.highlight.copy.display | default "hover" -}} -{{- $copyCode := (T "copyCode") | default "Copy code" -}} - - -
    - -
    diff --git a/website/themes/hextra/layouts/_partials/components/codeblock.html b/website/themes/hextra/layouts/_partials/components/codeblock.html deleted file mode 100644 index cdee81f1..00000000 --- a/website/themes/hextra/layouts/_partials/components/codeblock.html +++ /dev/null @@ -1,29 +0,0 @@ -{{ $filename := .filename | default "" -}} -{{ $base_url := .base_url | default "" -}} -{{ $lang := .lang | default "" }} -{{ $content := .content }} -{{ $options := .options | default (dict) }} - -{{- if $filename -}} -
    - {{- if $base_url -}} - - {{- $base_url = strings.TrimSuffix "/" $base_url -}} - {{- $filename = strings.TrimPrefix "/" $filename -}} - {{- $file_url := urls.JoinPath $base_url $filename -}} - - - {{- $filename -}} - {{- partial "utils/icon" (dict "name" "external-link" "attributes" "height=1em") -}} - - {{- else -}} - {{- $filename -}} - {{- end -}} -
    -{{- end -}} - -{{- if transform.CanHighlight $lang -}} -
    {{- highlight $content $lang $options -}}
    -{{- else -}} -
    {{ $content }}
    -{{- end -}} diff --git a/website/themes/hextra/layouts/_partials/components/comments.html b/website/themes/hextra/layouts/_partials/components/comments.html deleted file mode 100644 index ac893a1b..00000000 --- a/website/themes/hextra/layouts/_partials/components/comments.html +++ /dev/null @@ -1,11 +0,0 @@ -{{- $enableComments := site.Params.comments.enable | default false -}} - -{{ if not (eq .Params.comments nil) }} - {{ $enableComments = .Params.comments }} -{{ end }} - -{{- if $enableComments -}} - {{- if eq site.Params.comments.type "giscus" -}} - {{ partial "components/giscus.html" . }} - {{- end -}} -{{- end -}} diff --git a/website/themes/hextra/layouts/_partials/components/giscus.html b/website/themes/hextra/layouts/_partials/components/giscus.html deleted file mode 100644 index 973e50b6..00000000 --- a/website/themes/hextra/layouts/_partials/components/giscus.html +++ /dev/null @@ -1,89 +0,0 @@ -{{- $lang := site.Language.Lang | default `en` -}} -{{- if hasPrefix $lang "zh" -}} - {{- /* See: https://github.com/giscus/giscus/tree/main/locales */}} - {{- $lang = partial "utils/hugo-compat/language-locale.html" site.Language | default `zh-CN` -}} -{{- end -}} - -{{- with site.Params.comments.giscus -}} - - -
    -{{- else -}} - {{ warnf "giscus is not configured" }} -{{- end -}} diff --git a/website/themes/hextra/layouts/_partials/components/github-style-alert.html b/website/themes/hextra/layouts/_partials/components/github-style-alert.html deleted file mode 100644 index f03b261a..00000000 --- a/website/themes/hextra/layouts/_partials/components/github-style-alert.html +++ /dev/null @@ -1,53 +0,0 @@ -{{- $content := .content -}} -{{- $alertType := .alertType -}} -{{- $alertTitle := .alertTitle -}} - -{{- $styles := newScratch -}} -{{- $styles.Set "default" (dict - "icon" "light-bulb" - "style" "hx:border-green-200 hx:bg-green-100 hx:text-green-900 hx:dark:border-green-200/30 hx:dark:bg-green-900/30 hx:dark:text-green-200" - ) --}} -{{- $styles.Set "note" (dict - "icon" "information-circle" - "style" "hx:border-blue-200 hx:bg-blue-100 hx:text-blue-900 hx:dark:border-blue-200/30 hx:dark:bg-blue-900/30 hx:dark:text-blue-200" - ) --}} -{{- $styles.Set "tip" (dict - "icon" "light-bulb" - "style" "hx:border-green-200 hx:bg-green-100 hx:text-green-900 hx:dark:border-green-200/30 hx:dark:bg-green-900/30 hx:dark:text-green-200" - ) --}} -{{- $styles.Set "important" (dict - "icon" "information-circle" - "style" "hx:border-purple-200 hx:bg-purple-100 hx:text-purple-900 hx:dark:border-purple-200/30 hx:dark:bg-purple-900/30 hx:dark:text-purple-200" - ) --}} -{{- $styles.Set "warning" (dict - "icon" "exclamation" - "style" "hx:border-amber-200 hx:bg-amber-100 hx:text-amber-900 hx:dark:border-amber-200/30 hx:dark:bg-amber-900/30 hx:dark:text-amber-200" - ) --}} -{{- $styles.Set "caution" (dict - "icon" "exclamation-circle" - "style" "hx:border-red-200 hx:bg-red-100 hx:text-red-900 hx:dark:border-red-200/30 hx:dark:bg-red-900/30 hx:dark:text-red-200" - ) --}} - -{{- $style := or ($styles.Get $alertType) ($styles.Get "default") -}} -{{- $title := or $alertTitle (or (i18n $alertType) (title $alertType)) -}} - -
    -

    - {{- with $style.icon -}} - {{- partial "utils/icon.html" (dict "name" . "attributes" `height=16px class="hx:inline-block hx:align-middle hx:mr-2"`) -}} - {{- end -}} - {{- $title -}} -

    - -
    -
    - {{- $content -}} -
    -
    -
    diff --git a/website/themes/hextra/layouts/_partials/components/last-updated.html b/website/themes/hextra/layouts/_partials/components/last-updated.html deleted file mode 100644 index f900c0b8..00000000 --- a/website/themes/hextra/layouts/_partials/components/last-updated.html +++ /dev/null @@ -1,20 +0,0 @@ -{{- $lastUpdated := (T "lastUpdated") | default "Last updated on" -}} -{{- $page := . -}} - -{{- if site.Params.displayUpdatedDate -}} - {{- with .Lastmod -}} - {{ $datetime := (time.Format "2006-01-02T15:04:05.000Z" .) }} -
    - {{ $lastUpdated }} - {{- if site.Params.displayUpdatedAuthor -}} - {{- with $page.GitInfo -}} - {{ print " • " .AuthorName | safeHTML }} - {{- end -}} - {{- end -}} -
    - {{- else -}} -
    - {{- end -}} -{{- else -}} -
    -{{- end -}} diff --git a/website/themes/hextra/layouts/_partials/components/page-context-menu.html b/website/themes/hextra/layouts/_partials/components/page-context-menu.html deleted file mode 100644 index 3893d0e7..00000000 --- a/website/themes/hextra/layouts/_partials/components/page-context-menu.html +++ /dev/null @@ -1,90 +0,0 @@ -{{- $enableGlobal := site.Params.page.contextMenu.enable | default false -}} -{{- $enablePage := .Params.contextMenu -}} -{{- $enable := cond (ne $enablePage nil) $enablePage $enableGlobal -}} -{{- $customLinks := site.Params.page.contextMenu.links | default slice -}} - -{{- if $enable -}} - {{- with .OutputFormats.Get "markdown" -}} - {{- $markdownURL := .Permalink -}} - {{- $pageURL := $.Permalink -}} - {{- $pageTitle := $.Title -}} -
    -
    - - -
    - -
    - {{- end -}} -{{- end -}} diff --git a/website/themes/hextra/layouts/_partials/components/pager.html b/website/themes/hextra/layouts/_partials/components/pager.html deleted file mode 100644 index 1adc43a1..00000000 --- a/website/themes/hextra/layouts/_partials/components/pager.html +++ /dev/null @@ -1,53 +0,0 @@ -{{/* Article navigation on the footer of the article */}} - -{{- $reversePagination := .Store.Get "reversePagination" | default false -}} - -{{- $prev := cond $reversePagination .PrevInSection .NextInSection -}} -{{- $next := cond $reversePagination .NextInSection .PrevInSection -}} - -{{- if eq .Params.prev false }} - {{- if $reversePagination }}{{ $next = false }}{{ else }}{{ $prev = false }}{{ end -}} -{{ else }} - {{- with .Params.prev -}} - {{- with $.Site.GetPage . -}} - {{- if $reversePagination }}{{ $next = . }}{{ else }}{{ $prev = . }}{{ end -}} - {{- end -}} - {{- end -}} -{{- end -}} - -{{- if eq .Params.next false }} - {{- if $reversePagination }}{{ $prev = false }}{{ else }}{{ $next = false }}{{ end -}} -{{ else }} - {{- with .Params.next -}} - {{- with $.Site.GetPage . -}} - {{- if $reversePagination }}{{ $prev = . }}{{ else }}{{ $next = . }}{{ end -}} - {{- end -}} - {{- end -}} -{{- end -}} - -{{- if or $prev $next -}} - -{{- end -}} diff --git a/website/themes/hextra/layouts/_partials/custom/banner.html b/website/themes/hextra/layouts/_partials/custom/banner.html deleted file mode 100644 index e69de29b..00000000 diff --git a/website/themes/hextra/layouts/_partials/custom/footer.html b/website/themes/hextra/layouts/_partials/custom/footer.html deleted file mode 100644 index e69de29b..00000000 diff --git a/website/themes/hextra/layouts/_partials/custom/head-end.html b/website/themes/hextra/layouts/_partials/custom/head-end.html deleted file mode 100644 index e69de29b..00000000 diff --git a/website/themes/hextra/layouts/_partials/custom/navbar-title.html b/website/themes/hextra/layouts/_partials/custom/navbar-title.html deleted file mode 100644 index e69de29b..00000000 diff --git a/website/themes/hextra/layouts/_partials/favicons.html b/website/themes/hextra/layouts/_partials/favicons.html deleted file mode 100644 index 78442d49..00000000 --- a/website/themes/hextra/layouts/_partials/favicons.html +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/website/themes/hextra/layouts/_partials/footer.html b/website/themes/hextra/layouts/_partials/footer.html deleted file mode 100644 index bba76b5f..00000000 --- a/website/themes/hextra/layouts/_partials/footer.html +++ /dev/null @@ -1,44 +0,0 @@ -{{- $enableFooterSwitches := .Store.Get "enableFooterSwitches" | default false -}} -{{- $displayThemeToggle := site.Params.theme.displayToggle | default true -}} -{{- $footerSwitchesVisible := and $enableFooterSwitches (or hugo.IsMultilingual $displayThemeToggle) -}} -{{- $copyrightSectionVisible := or (.Site.Params.footer.displayPoweredBy | default true) .Site.Params.footer.displayCopyright -}} - -{{- $copyright := (T "copyright") | default "© 2024 Hextra." -}} -{{- $poweredBy := (T "poweredBy") | default "Powered by Hextra" -}} - - -
    - {{- if $footerSwitchesVisible -}} - - {{- if or hugo.IsMultilingual $displayThemeToggle -}} -
    - {{- end -}} - {{- end -}} - - {{- if $copyrightSectionVisible -}} - - {{- end -}} -
    - -{{- define "theme-credit" -}} - - - {{- . | markdownify -}} - {{- if strings.Contains . "Hextra" -}} - {{- partial "utils/icon.html" (dict "name" "hextra" "attributes" `height=1em class="hx:inline-block hx:ltr:ml-1 hx:rtl:mr-1 hx:align-[-2.5px]"`) -}} - {{- end -}} - - -{{- end -}} diff --git a/website/themes/hextra/layouts/_partials/google-analytics.html b/website/themes/hextra/layouts/_partials/google-analytics.html deleted file mode 100644 index 16ab488b..00000000 --- a/website/themes/hextra/layouts/_partials/google-analytics.html +++ /dev/null @@ -1,2 +0,0 @@ -{{- /* Only for compatibility. */ -}} -{{- partial "components/analytics/google-analytics.html" . -}} diff --git a/website/themes/hextra/layouts/_partials/head.html b/website/themes/hextra/layouts/_partials/head.html deleted file mode 100644 index eb06bc59..00000000 --- a/website/themes/hextra/layouts/_partials/head.html +++ /dev/null @@ -1,81 +0,0 @@ - - - - {{- $noindex := .Params.noindex | default false -}} - {{ if and (hugo.IsProduction) (not $noindex) -}} - - {{ else -}} - - {{ end -}} - {{ partialCached "favicons.html" . -}} - - {{- if .IsHome -}} - {{ .Site.Title -}} - {{ else -}} - {{ with .Title }}{{ . }} – {{ end -}} - {{ .Site.Title -}} - {{ end -}} - - - - {{- with .Params.canonical -}} - - {{- else -}} - - {{- end -}} - - {{- partial "opengraph.html" . -}} - {{- partial "schema.html" . -}} - {{- partial "twitter_cards.html" . -}} - - {{- $mainCss := resources.Get "css/compiled/main.css" -}} - {{- $customCss := resources.Get "css/custom.css" -}} - {{- $variablesCss := resources.Get "css/variables.css" | resources.ExecuteAsTemplate "css/variables.css" . -}} - - {{- /* Production build */ -}} - {{- if hugo.IsProduction }} - {{- $styles := slice $variablesCss $mainCss $customCss | resources.Concat "css/compiled/main.css" | minify | fingerprint }} - - - - {{- /* Theme development mode (non-production + theme environment) */ -}} - {{- else if eq hugo.Environment "theme" }} - {{- $devStyles := resources.Get "css/styles.css" | postCSS (dict "inlineImports" true) }} - - - - - {{- /* User local development */ -}} - {{- else }} - {{- $styles := resources.Get "css/compiled/main.css" -}} - - - - {{- end }} - - {{ partial "components/analytics/analytics.html" . }} - - {{- $scriptsHead := slice -}} - {{- range resources.Match "js/head/*.js" -}} - {{ $scriptsHead = $scriptsHead | append (resources.ExecuteAsTemplate .Name $ .) }} - {{- end -}} - - {{- $scripts := $scriptsHead | resources.Concat "js/main-head.js" -}} - - {{- if hugo.IsProduction -}} - {{- $scripts = $scripts | minify | fingerprint -}} - {{- end -}} - - - - {{ $noop := .WordCount -}} - {{- $engine := site.Params.math.engine | default "katex" -}} - {{ if and (.Page.Store.Get "hasMath") (eq $engine "katex") -}} - {{ partialCached "scripts/katex.html" . -}} - {{ else if and (.Page.Store.Get "hasMath") (eq $engine "mathjax") -}} - {{ partialCached "scripts/mathjax.html" . -}} - {{ end -}} - - {{ partial "utils/page-width-override.html" . }} - {{ partial "custom/head-end.html" . -}} - diff --git a/website/themes/hextra/layouts/_partials/language-switch.html b/website/themes/hextra/layouts/_partials/language-switch.html deleted file mode 100644 index 4603615a..00000000 --- a/website/themes/hextra/layouts/_partials/language-switch.html +++ /dev/null @@ -1,58 +0,0 @@ -{{- $page := .context -}} -{{- $iconName := .iconName | default "globe-alt" -}} -{{- $iconHeight := .iconHeight | default 12 -}} -{{- $location := .location -}} - -{{- $class := .class | default "hx:h-7 hx:px-2 hx:text-xs hx:text-gray-600 hx:transition-colors hx:dark:text-gray-400 hx:hover:bg-gray-100 hx:hover:text-gray-900 hx:dark:hover:bg-primary-100/5 hx:dark:hover:text-gray-50" -}} - -{{- $grow := .grow -}} -{{- $hideLabel := .hideLabel | default false -}} - -{{- $changeLanguage := (T "changeLanguage") | default "Change language" -}} -{{- $currentLanguageLang := site.Language.Lang -}} -{{- $currentLanguageLabel := partial "utils/hugo-compat/language-label.html" site.Language -}} - -{{- if hugo.IsMultilingual -}} -
    - - -
    -{{- end -}} diff --git a/website/themes/hextra/layouts/_partials/navbar-link.html b/website/themes/hextra/layouts/_partials/navbar-link.html deleted file mode 100644 index 06334712..00000000 --- a/website/themes/hextra/layouts/_partials/navbar-link.html +++ /dev/null @@ -1,88 +0,0 @@ -{{- $currentPage := .currentPage -}} -{{- $link := .link -}} -{{- $item := .item -}} -{{- $icon := .icon -}} -{{- $external := .external -}} - -{{- $active := or ($currentPage.HasMenuCurrent "main" $item) ($currentPage.IsMenuCurrent "main" $item) -}} -{{- /* Additional check for section landing pages in multilingual sites (normalize trailing slashes) */ -}} -{{- if and (not $active) $link -}} - {{- $currentPath := strings.TrimSuffix "/" $currentPage.RelPermalink -}} - {{- $linkPath := strings.TrimSuffix "/" $link -}} - {{- if eq $currentPath $linkPath -}} - {{- $active = true -}} - {{- end -}} -{{- end -}} -{{- $activeClass := cond $active "hx:font-medium" "hx:text-gray-600 hx:hover:text-gray-800 hx:dark:text-gray-400 hx:dark:hover:text-gray-200" -}} - -{{- if $item.HasChildren -}} -{{- /* Dropdown menu for items with children */ -}} -
    - - -
    -{{- else -}} -{{- /* Regular menu item without children */ -}} - - {{- if $icon -}} - - {{- partial "utils/icon" (dict "name" $icon "attributes" `height="1em" class="hx:inline-block"`) -}} - - {{- end -}} - - {{- or (T $item.Identifier) $item.Name | safeHTML -}} - - -{{- end -}} diff --git a/website/themes/hextra/layouts/_partials/navbar-title.html b/website/themes/hextra/layouts/_partials/navbar-title.html deleted file mode 100644 index 36a9b64f..00000000 --- a/website/themes/hextra/layouts/_partials/navbar-title.html +++ /dev/null @@ -1,16 +0,0 @@ -{{- $logoPath := .Site.Params.navbar.logo.path | default "images/logo.svg" -}} -{{- $logoLink := .Site.Params.navbar.logo.link | default .Site.Home.RelPermalink -}} -{{- $logoWidth := .Site.Params.navbar.logo.width | default "20" -}} -{{- $logoHeight := .Site.Params.navbar.logo.height | default "20" -}} -{{- $logoDarkPath := .Site.Params.navbar.logo.dark | default $logoPath -}} - - - {{- $displayTitle := (.Site.Params.navbar.displayTitle | default true) }} - {{- if (.Site.Params.navbar.displayLogo | default true) }} - {{ cond $displayTitle `Logo` .Site.Title }} - {{ cond $displayTitle `Dark Logo` .Site.Title }} - {{- end }} - {{- if $displayTitle }} - {{- .Site.Title -}} - {{- end }} - diff --git a/website/themes/hextra/layouts/_partials/navbar.html b/website/themes/hextra/layouts/_partials/navbar.html deleted file mode 100644 index 57452307..00000000 --- a/website/themes/hextra/layouts/_partials/navbar.html +++ /dev/null @@ -1,59 +0,0 @@ -{{- $navWidth := "hx:max-w-[90rem]" -}} -{{- with .Site.Params.navbar.width -}} - {{ if eq . "normal" -}} - {{ $navWidth = "hx:max-w-screen-xl" -}} - {{ else if eq . "full" -}} - {{ $navWidth = "max-w-full" -}} - {{ end -}} -{{- end -}} - -{{- $page := . -}} -{{- $iconHeight := 24 -}} - -
    -
    - - -
    diff --git a/website/themes/hextra/layouts/_partials/opengraph.html b/website/themes/hextra/layouts/_partials/opengraph.html deleted file mode 100644 index 91b9d3f5..00000000 --- a/website/themes/hextra/layouts/_partials/opengraph.html +++ /dev/null @@ -1,96 +0,0 @@ -{{/* Adapted from https://github.com/gohugoio/hugo/blob/v0.149.0/docs/layouts/_partials/opengraph/opengraph.html */}} - - - - - - -{{- with $.Params.images -}} - {{- range first 6 . }} - {{- with $.Resources.GetMatch . }} - - - {{- else }} - - {{- $image := . -}} - {{- if hasPrefix $image "/" -}} - {{- $image = relURL (strings.TrimPrefix "/" $image) -}} - {{- end -}} - - {{- end }} - {{- end }} -{{- else -}} - {{- with $.Site.Params.images }} - {{- $image := index . 0 -}} - {{- if hasPrefix $image "/" -}} - {{- $image = relURL (strings.TrimPrefix "/" $image) -}} - {{- end -}} - - {{- end }} -{{- end -}} - - -{{- if .IsPage }} -{{- $iso8601 := "2006-01-02T15:04:05-07:00" -}} - -{{ with .PublishDate }} - -{{ end }} -{{ with .Lastmod }} - -{{ end }} -{{- end -}} - -{{- with .Params.audio }}{{ end }} -{{- with .Params.locale }} - -{{ end }} -{{- with .Site.Params.title }} - -{{ end }} -{{- with .Params.videos }} -{{- range . }} - -{{ end }} - -{{ end }} - -{{- /* If it is part of a series, link to related articles */}} -{{- $permalink := .Permalink }} -{{- $siteSeries := .Site.Taxonomies.series }} -{{ with .Params.series }} -{{- range $name := . }} -{{- $series := index $siteSeries ($name | urlize) }} -{{- range $page := first 6 $series.Pages }} -{{- if ne $page.Permalink $permalink }} - -{{ end }} -{{- end }} -{{ end }} - -{{ end }} - -{{- /* Facebook Page Admin ID for Domain Insights */}} -{{- with site.Params.social.facebook_admin }} - -{{ end }} diff --git a/website/themes/hextra/layouts/_partials/scripts.html b/website/themes/hextra/layouts/_partials/scripts.html deleted file mode 100644 index abf6cd47..00000000 --- a/website/themes/hextra/layouts/_partials/scripts.html +++ /dev/null @@ -1,20 +0,0 @@ -{{/* Core scripts (theme, menu, tabs, etc.) */}} -{{- partial "scripts/core.html" . -}} - -{{/* Search */}} -{{- partial "scripts/search.html" . -}} - -{{/* Mermaid */}} -{{- if (.Store.Get "hasMermaid") -}} - {{- partial "scripts/mermaid.html" . -}} -{{- end -}} - -{{/* Asciinema */}} -{{- if (.Store.Get "hasAsciinema") -}} - {{- partial "scripts/asciinema.html" . -}} -{{- end -}} - -{{/* Medium Zoom */}} -{{- if (.Store.Get "hasImageZoom") -}} - {{- partial "scripts/medium-zoom.html" . -}} -{{- end -}} diff --git a/website/themes/hextra/layouts/_partials/scripts/asciinema.html b/website/themes/hextra/layouts/_partials/scripts/asciinema.html deleted file mode 100644 index 6db5a8b9..00000000 --- a/website/themes/hextra/layouts/_partials/scripts/asciinema.html +++ /dev/null @@ -1,140 +0,0 @@ -{{- /* Asciinema */ -}} - -{{- $asciinemaBase := "" -}} -{{- $useDefaultCdn := true -}} -{{- with site.Params.asciinema.base -}} - {{- $asciinemaBase = . -}} - {{- $useDefaultCdn = false -}} -{{- end -}} - -{{- $asciinemaJsAsset := "" -}} -{{- with site.Params.asciinema.js -}} - {{- $asciinemaJsAsset = . -}} -{{- end -}} - -{{- $asciinemaCssAsset := "" -}} -{{- with site.Params.asciinema.css -}} - {{- $asciinemaCssAsset = . -}} -{{- end -}} - -{{- /* If only js/css is set without base, use local asset loading */ -}} -{{- if and $useDefaultCdn (or (ne $asciinemaJsAsset "") (ne $asciinemaCssAsset "")) -}} - {{- $useDefaultCdn = false -}} -{{- end -}} - -{{- /* Set default CDN base if needed */ -}} -{{- if $useDefaultCdn -}} - {{- $asciinemaBase = "https://cdn.jsdelivr.net/npm/asciinema-player@latest/dist/bundle" -}} -{{- end -}} - -{{- $isRemoteBase := or (strings.HasPrefix $asciinemaBase "http://") (strings.HasPrefix $asciinemaBase "https://") -}} -{{- $minSuffix := cond hugo.IsProduction ".min" "" -}} - -{{- /* CSS retrieval: get raw CSS from either local asset or remote, then process */ -}} -{{- if $isRemoteBase -}} - {{- $cssPath := cond (ne $asciinemaCssAsset "") $asciinemaCssAsset "asciinema-player.css" -}} - {{- $asciinemaCssUrl := urls.JoinPath $asciinemaBase $cssPath -}} - {{- with try (resources.GetRemote $asciinemaCssUrl) -}} - {{- with .Err -}} - {{- errorf "Could not retrieve Asciinema css file from %s. Reason: %s." $asciinemaCssUrl . -}} - {{- else with .Value -}} - {{- with resources.Copy "css/asciinema-player.css" . -}} - {{- $asciinemaCss := . | fingerprint -}} - - {{- end -}} - {{- end -}} - {{- end -}} -{{- else if $asciinemaCssAsset -}} - {{- with resources.Get $asciinemaCssAsset -}} - {{- $asciinemaCss := . | fingerprint -}} - - {{- else -}} - {{- errorf "Asciinema css asset not found at %q" $asciinemaCssAsset -}} - {{- end -}} -{{- end -}} - -{{- /* JS retrieval: get raw JS from either local asset or remote, then process */ -}} -{{- if $isRemoteBase -}} - {{- $jsPath := cond (ne $asciinemaJsAsset "") $asciinemaJsAsset (printf "asciinema-player%s.js" $minSuffix) -}} - {{- $asciinemaJsUrl := urls.JoinPath $asciinemaBase $jsPath -}} - {{- with try (resources.GetRemote $asciinemaJsUrl) -}} - {{- with .Err -}} - {{- errorf "Could not retrieve Asciinema js file from %s. Reason: %s." $asciinemaJsUrl . -}} - {{- else with .Value -}} - {{- with resources.Copy (printf "js/asciinema-player%s.js" $minSuffix) . -}} - {{- $asciinemaJs := . | fingerprint -}} - - {{- end -}} - {{- end -}} - {{- end -}} -{{- else if $asciinemaJsAsset -}} - {{- with resources.Get $asciinemaJsAsset -}} - {{- $asciinemaJs := . | fingerprint -}} - - {{- else -}} - {{- errorf "Asciinema js asset not found at %q" $asciinemaJsAsset -}} - {{- end -}} -{{- end -}} - - diff --git a/website/themes/hextra/layouts/_partials/scripts/core.html b/website/themes/hextra/layouts/_partials/scripts/core.html deleted file mode 100644 index c93c674c..00000000 --- a/website/themes/hextra/layouts/_partials/scripts/core.html +++ /dev/null @@ -1,10 +0,0 @@ -{{- $scriptsBody := slice }} -{{- range resources.Match "js/core/*.js" -}} - {{ $scriptsBody = $scriptsBody | append (resources.ExecuteAsTemplate .Name $ .) }} -{{- end -}} - -{{- $scripts := $scriptsBody | resources.Concat "js/main.js" -}} -{{- if hugo.IsProduction -}} - {{- $scripts = $scripts | minify | fingerprint -}} -{{- end -}} - diff --git a/website/themes/hextra/layouts/_partials/scripts/katex.html b/website/themes/hextra/layouts/_partials/scripts/katex.html deleted file mode 100644 index add36c04..00000000 --- a/website/themes/hextra/layouts/_partials/scripts/katex.html +++ /dev/null @@ -1,92 +0,0 @@ -{{- /* KaTeX CSS loader - - Behavior (driven by site.params.math.katex): - - base (remote URL) + optional css: - - Construct remote CSS URL: "{{ base }}/{{ css | default "katex[.min].css" }}". - - Fetch via resources.GetRemote, rewrite font URLs to "{{ base }}/fonts/...". - - Build and fingerprint; emit . - - base (local path or not set) + css (asset path): - - Read CSS from Hugo assets via resources.Get; DO NOT rewrite font URLs. - - Build and fingerprint; emit . - - base (local path) only (no css): - - Link directly to "{{ base }}/katex[.min].css" (no processing). - - Nothing set: - - Default to CDN latest base; same as remote path above. - - Additional: - - assets: optional list to publish extra assets. CSS/JS get tags with integrity (JS loads async). -*/ -}} -{{- $noop := .WordCount -}} - -{{- $katexBase := "" -}} -{{- with site.Params.math.katex.base -}} - {{- $katexBase = . -}} -{{- else -}} - {{- if not site.Params.math.katex.css -}} - {{- $katexBase = "https://cdn.jsdelivr.net/npm/katex@latest/dist" -}} - {{- end -}} -{{- end -}} - -{{- $katexCssAsset := "" -}} -{{- with site.Params.math.katex.css -}} - {{- $katexCssAsset = . -}} -{{- end -}} - -{{- $s := newScratch -}} -{{- $isRemoteBase := or (strings.HasPrefix $katexBase "http://") (strings.HasPrefix $katexBase "https://") -}} - -{{- /* CSS retrieval consolidated: get raw CSS from either local asset or remote, then process once */ -}} -{{- $minSuffix := cond hugo.IsProduction ".min" "" -}} -{{- if $isRemoteBase -}} - {{- $cssPath := cond (ne $katexCssAsset "") $katexCssAsset (printf "katex%s.css" $minSuffix) -}} - {{- $katexCssUrl := urls.JoinPath $katexBase $cssPath -}} - {{- with try (resources.GetRemote $katexCssUrl) -}} - {{- with .Err -}} - {{- errorf "Could not retrieve KaTeX css file from %s. Reason: %s." $katexCssUrl . -}} - {{- else with .Value -}} - {{- $s.Set "katexCssValue" .Content -}} - {{- end -}} - {{- end -}} -{{- else if $katexCssAsset -}} - {{- with resources.Get $katexCssAsset -}} - {{- $s.Set "katexCssValue" .Content -}} - {{- else -}} - {{- errorf "KaTeX css asset not found at %q" $katexCssAsset -}} - {{- end -}} -{{- end -}} - -{{- with $s.Get "katexCssValue" -}} - {{- $cssContent := . -}} - {{- if $isRemoteBase -}} - {{- $fontPattern := "url(fonts/" -}} - {{- $fontSub := printf "url(%s/" (urls.JoinPath $katexBase "fonts") -}} - {{- $cssContent = strings.Replace $cssContent $fontPattern $fontSub -}} - {{- end -}} - {{- with resources.FromString (printf "css/katex%s.css" $minSuffix) $cssContent -}} - {{- $css := . | fingerprint "sha512" -}} - - {{- end -}} -{{- else -}} - {{- if not $isRemoteBase -}} - {{- $cssPath := cond (ne $katexCssAsset "") $katexCssAsset (printf "katex%s.css" $minSuffix) -}} - - {{- end -}} -{{- end -}} - -{{- /* Optionally publish files (fonts, css, js, etc.) from assets and emit tags for css/js with integrity and crossorigin */ -}} -{{- with site.Params.math.katex.assets -}} - {{- range . -}} - {{- with resources.Get . -}} - {{- $name := .Name | lower -}} - {{- if strings.HasSuffix $name ".css" -}} - {{- $built := . | fingerprint "sha512" -}} - - {{- else if or (strings.HasSuffix $name ".js") (strings.HasSuffix $name ".mjs") -}} - {{- $built := . | fingerprint "sha512" -}} - - {{- else -}} - {{- .Publish -}} - {{- end -}} - {{- end -}} - {{- end -}} -{{- end -}} diff --git a/website/themes/hextra/layouts/_partials/scripts/mathjax.html b/website/themes/hextra/layouts/_partials/scripts/mathjax.html deleted file mode 100644 index a05b543f..00000000 --- a/website/themes/hextra/layouts/_partials/scripts/mathjax.html +++ /dev/null @@ -1,20 +0,0 @@ -{{/* MathJax */}} -{{ $mathjaxJsUrl := "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js" -}} - - diff --git a/website/themes/hextra/layouts/_partials/scripts/medium-zoom.html b/website/themes/hextra/layouts/_partials/scripts/medium-zoom.html deleted file mode 100644 index c11925cb..00000000 --- a/website/themes/hextra/layouts/_partials/scripts/medium-zoom.html +++ /dev/null @@ -1,85 +0,0 @@ -{{- /* Medium Zoom */ -}} - -{{- $zoomBase := "" -}} -{{- $useDefaultCdn := true -}} -{{- with site.Params.imageZoom.base -}} - {{- $zoomBase = . -}} - {{- $useDefaultCdn = false -}} -{{- end -}} - -{{- $zoomJsAsset := "" -}} -{{- with site.Params.imageZoom.js -}} - {{- $zoomJsAsset = . -}} -{{- end -}} - -{{- /* If only js is set without base, use local asset loading */ -}} -{{- if and $useDefaultCdn (ne $zoomJsAsset "") -}} - {{- $useDefaultCdn = false -}} -{{- end -}} - -{{- /* Set default CDN base if needed */ -}} -{{- if $useDefaultCdn -}} - {{- $zoomBase = "https://cdn.jsdelivr.net/npm/medium-zoom@latest/dist" -}} -{{- end -}} - -{{- $isRemoteBase := or (strings.HasPrefix $zoomBase "http://") (strings.HasPrefix $zoomBase "https://") -}} -{{- $minSuffix := cond hugo.IsProduction ".min" "" -}} - -{{- /* JS retrieval: get raw JS from either local asset or remote, then process */ -}} -{{- if $isRemoteBase -}} - {{- $jsPath := cond (ne $zoomJsAsset "") $zoomJsAsset (printf "medium-zoom%s.js" $minSuffix) -}} - {{- $zoomJsUrl := urls.JoinPath $zoomBase $jsPath -}} - {{- with try (resources.GetRemote $zoomJsUrl) -}} - {{- with .Err -}} - {{- errorf "Could not retrieve Medium Zoom js file from %s. Reason: %s." $zoomJsUrl . -}} - {{- else with .Value -}} - {{- with resources.Copy (printf "js/medium-zoom%s.js" $minSuffix) . -}} - {{- $zoomJs := . | fingerprint -}} - - {{- end -}} - {{- end -}} - {{- end -}} -{{- else if $zoomJsAsset -}} - {{- with resources.Get $zoomJsAsset -}} - {{- $zoomJs := . | fingerprint -}} - - {{- else -}} - {{- errorf "Medium Zoom js asset not found at %q" $zoomJsAsset -}} - {{- end -}} -{{- end -}} - - diff --git a/website/themes/hextra/layouts/_partials/scripts/mermaid.html b/website/themes/hextra/layouts/_partials/scripts/mermaid.html deleted file mode 100644 index 60bc2307..00000000 --- a/website/themes/hextra/layouts/_partials/scripts/mermaid.html +++ /dev/null @@ -1,79 +0,0 @@ -{{- /* Mermaid */ -}} - -{{- $mermaidBase := "" -}} -{{- $useDefaultCdn := true -}} -{{- with site.Params.mermaid.base -}} - {{- $mermaidBase = . -}} - {{- $useDefaultCdn = false -}} -{{- end -}} - -{{- $mermaidJsAsset := "" -}} -{{- with site.Params.mermaid.js -}} - {{- $mermaidJsAsset = . -}} -{{- end -}} - -{{- /* If only js is set without base, use local asset loading */ -}} -{{- if and $useDefaultCdn (ne $mermaidJsAsset "") -}} - {{- $useDefaultCdn = false -}} -{{- end -}} - -{{- /* Set default CDN base if needed */ -}} -{{- if $useDefaultCdn -}} - {{- $mermaidBase = "https://cdn.jsdelivr.net/npm/mermaid@latest/dist" -}} -{{- end -}} - -{{- $isRemoteBase := or (strings.HasPrefix $mermaidBase "http://") (strings.HasPrefix $mermaidBase "https://") -}} -{{- $minSuffix := cond hugo.IsProduction ".min" "" -}} - -{{- /* JS retrieval: get raw JS from either local asset or remote, then process */ -}} -{{- if $isRemoteBase -}} - {{- $jsPath := cond (ne $mermaidJsAsset "") $mermaidJsAsset (printf "mermaid%s.js" $minSuffix) -}} - {{- $mermaidJsUrl := urls.JoinPath $mermaidBase $jsPath -}} - {{- with try (resources.GetRemote $mermaidJsUrl) -}} - {{- with .Err -}} - {{- errorf "Could not retrieve Mermaid js file from %s. Reason: %s." $mermaidJsUrl . -}} - {{- else with .Value -}} - {{- with resources.Copy (printf "js/mermaid%s.js" $minSuffix) . -}} - {{- $mermaidJs := . | fingerprint -}} - - {{- end -}} - {{- end -}} - {{- end -}} -{{- else if $mermaidJsAsset -}} - {{- with resources.Get $mermaidJsAsset -}} - {{- $mermaidJs := . | fingerprint -}} - - {{- else -}} - {{- errorf "Mermaid js asset not found at %q" $mermaidJsAsset -}} - {{- end -}} -{{- end -}} - - diff --git a/website/themes/hextra/layouts/_partials/scripts/search.html b/website/themes/hextra/layouts/_partials/scripts/search.html deleted file mode 100644 index 363b3bce..00000000 --- a/website/themes/hextra/layouts/_partials/scripts/search.html +++ /dev/null @@ -1,63 +0,0 @@ -{{/* Search */}} -{{- if (site.Params.search.enable | default true) -}} - {{- $searchType := site.Params.search.type | default "flexsearch" -}} - {{- if eq $searchType "flexsearch" -}} - {{- $jsSearchScript := printf "%s.search.js" .Language.Lang -}} - {{- $jsSearch := resources.Get "js/flexsearch.js" | resources.ExecuteAsTemplate $jsSearchScript . -}} - {{- if hugo.IsProduction -}} - {{- $jsSearch = $jsSearch | minify | fingerprint -}} - {{- end -}} - - {{- $flexSearchBase := "" -}} - {{- $useDefaultCdn := true -}} - {{- with site.Params.search.flexsearch.base -}} - {{- $flexSearchBase = . -}} - {{- $useDefaultCdn = false -}} - {{- end -}} - - {{- $flexSearchJsAsset := "" -}} - {{- with site.Params.search.flexsearch.js -}} - {{- $flexSearchJsAsset = . -}} - {{- end -}} - - {{- /* If only js is set without base, use local asset loading. */ -}} - {{- if and $useDefaultCdn (ne $flexSearchJsAsset "") -}} - {{- $useDefaultCdn = false -}} - {{- end -}} - - {{- $bundleSuffix := cond hugo.IsProduction ".min" ".debug" -}} - {{- if $useDefaultCdn -}} - {{- $flexSearchVersion := site.Params.search.flexsearch.version | default "0.8.143" -}} - {{- $flexSearchBase = printf "https://cdn.jsdelivr.net/npm/flexsearch@%s/dist" $flexSearchVersion -}} - {{- end -}} - - {{- $isRemoteBase := or (strings.HasPrefix $flexSearchBase "http://") (strings.HasPrefix $flexSearchBase "https://") -}} - {{- if $isRemoteBase -}} - {{- $jsPath := cond (ne $flexSearchJsAsset "") $flexSearchJsAsset (printf "flexsearch.bundle%s.js" $bundleSuffix) -}} - {{- $flexSearchJsUrl := urls.JoinPath $flexSearchBase $jsPath -}} - {{- with try (resources.GetRemote $flexSearchJsUrl) -}} - {{- with .Err -}} - {{- errorf "Could not retrieve FlexSearch js file from %s. Reason: %s." $flexSearchJsUrl . -}} - {{- else with .Value -}} - {{- with resources.Copy "js/flexsearch.js" . -}} - {{- $flexSearchJs := . | fingerprint -}} - - {{- end -}} - {{- end -}} - {{- end -}} - {{- else if $flexSearchJsAsset -}} - {{- with resources.Get $flexSearchJsAsset -}} - {{- $flexSearchJs := . | fingerprint -}} - - {{- else -}} - {{- errorf "FlexSearch js asset not found at %q" $flexSearchJsAsset -}} - {{- end -}} - {{- else if not $useDefaultCdn -}} - {{- errorf "FlexSearch local loading requires params.search.flexsearch.js when using non-remote base %q" $flexSearchBase -}} - {{- end -}} - - - {{- else -}} - {{- warnf `search type "%s" is not supported` $searchType -}} - {{- end -}} -{{- end -}} diff --git a/website/themes/hextra/layouts/_partials/search.html b/website/themes/hextra/layouts/_partials/search.html deleted file mode 100644 index 9e372e87..00000000 --- a/website/themes/hextra/layouts/_partials/search.html +++ /dev/null @@ -1,30 +0,0 @@ -{{- $placeholder := (T "searchPlaceholder") | default "Search..." -}} - - -
    -
    - - - CTRL K - -
    - -
    -
      -
      -
      -
      diff --git a/website/themes/hextra/layouts/_partials/shortcodes/badge.html b/website/themes/hextra/layouts/_partials/shortcodes/badge.html deleted file mode 100644 index 035d91a2..00000000 --- a/website/themes/hextra/layouts/_partials/shortcodes/badge.html +++ /dev/null @@ -1,38 +0,0 @@ -{{- $content := .content -}} -{{- $color := .color | default .type | default "" -}}{{- /* Compatibility with previous parameter. */ -}} -{{- $class := .class | default "" -}} -{{- $border := .border | default false -}} -{{- $icon := .icon | default "" -}} - -{{- /* Compatibility with previous names. */ -}} -{{- $mapping := (dict - "default" "gray" - "tip" "green" - "info" "blue" - "warning" "yellow" - "error" "red" - "important" "purple" - ) --}} -{{- $color = index $mapping $color | default $color | default "gray" -}} - -{{- $styleClass := newScratch -}} -{{- $styleClass.Set "gray" "hx:text-gray-600 hx:bg-gray-100 hx:dark:bg-neutral-800 hx:dark:text-neutral-200 hx:border-gray-200 hx:dark:border-neutral-700" -}} -{{- $styleClass.Set "purple" "hx:border-purple-200 hx:bg-purple-100 hx:text-purple-900 hx:dark:border-purple-200/30 hx:dark:bg-purple-900/30 hx:dark:text-purple-200" -}} -{{- $styleClass.Set "indigo" "hx:border-indigo-200 hx:bg-indigo-100 hx:text-indigo-900 hx:dark:border-indigo-200/30 hx:dark:bg-indigo-900/30 hx:dark:text-indigo-200" -}} -{{- $styleClass.Set "blue" "hx:border-blue-200 hx:bg-blue-100 hx:text-blue-900 hx:dark:border-blue-200/30 hx:dark:bg-blue-900/30 hx:dark:text-blue-200" -}} -{{- $styleClass.Set "green" "hx:border-green-200 hx:bg-green-100 hx:text-green-900 hx:dark:border-green-200/30 hx:dark:bg-green-900/30 hx:dark:text-green-200" -}} -{{- $styleClass.Set "yellow" "hx:border-yellow-100 hx:bg-yellow-50 hx:text-yellow-900 hx:dark:border-yellow-200/30 hx:dark:bg-yellow-700/30 hx:dark:text-yellow-200" -}} -{{- $styleClass.Set "orange" "hx:border-orange-100 hx:bg-orange-50 hx:text-orange-800 hx:dark:border-orange-400/30 hx:dark:bg-orange-400/20 hx:dark:text-orange-300" -}} -{{- $styleClass.Set "amber" "hx:border-amber-200 hx:bg-amber-100 hx:text-amber-900 hx:dark:border-amber-200/30 hx:dark:bg-amber-900/30 hx:dark:text-amber-200" -}} -{{- $styleClass.Set "red" "hx:border-red-200 hx:bg-red-100 hx:text-red-900 hx:dark:border-red-200/30 hx:dark:bg-red-900/30 hx:dark:text-red-200" -}} - -{{- $borderClass := cond (eq $border true) "hx:border" "" -}} -{{- $badgeClass := or ($styleClass.Get $color) ($styleClass.Get "gray") -}} -
      -
      - {{- with $icon -}}{{- partial "utils/icon" (dict "name" . "attributes" "height=12") -}}{{- end -}} - {{- $content -}} -
      -
      -{{- /* Strip trailing newline. */ -}} diff --git a/website/themes/hextra/layouts/_partials/shortcodes/callout.html b/website/themes/hextra/layouts/_partials/shortcodes/callout.html deleted file mode 100644 index 176fdfe8..00000000 --- a/website/themes/hextra/layouts/_partials/shortcodes/callout.html +++ /dev/null @@ -1,28 +0,0 @@ -{{- $content := .content -}} -{{- $emoji := .emoji -}} -{{- $icon := .icon -}} - -{{- $defaultClass := "hx:border-orange-100 hx:bg-orange-50 hx:text-orange-800 hx:dark:border-orange-400/30 hx:dark:bg-orange-400/20 hx:dark:text-orange-300" -}} - -{{- $class := .class | default $defaultClass -}} - - -
      -
      - {{- with $emoji -}} -
      - {{- . -}} -
      - {{- else -}} - {{- with $icon -}} - {{ partial "utils/icon.html" (dict "name" . "attributes" `height=1.2em class="hx:inline-block hx:align-middle"`) -}} - {{- end -}} - {{- end -}} -
      - -
      -
      - {{- $content -}} -
      -
      -
      diff --git a/website/themes/hextra/layouts/_partials/shortcodes/card.html b/website/themes/hextra/layouts/_partials/shortcodes/card.html deleted file mode 100644 index 514d522c..00000000 --- a/website/themes/hextra/layouts/_partials/shortcodes/card.html +++ /dev/null @@ -1,70 +0,0 @@ -{{- $link := .link -}} -{{- $title := .title -}} -{{- $icon := .icon -}} -{{- $subtitle := .subtitle -}} -{{- $image := .image -}} -{{- $alt := .alt | default $title -}} -{{- $width := .width -}} -{{- $height := .height -}} -{{- $imageStyle := .imageStyle -}} -{{- $tag := .tag -}} -{{- $tagColor := .tagColor | default .tagType | default "" -}}{{- /* Compatibility with previous parameter. */ -}} -{{- $tagBorder := not (eq .tagBorder false) | default true }} -{{- $tagIcon := .tagIcon -}} - -{{ $linkClass := "hx:hover:border-gray-300 hx:bg-transparent hx:shadow-xs hx:dark:border-neutral-800 hx:hover:bg-slate-50 hx:hover:shadow-md hx:dark:hover:border-neutral-700 hx:dark:hover:bg-neutral-900" }} -{{- with $image -}} - {{ $linkClass = "hx:hover:border-gray-300 hx:bg-gray-100 hx:shadow-sm hx:dark:border-neutral-700 hx:dark:bg-neutral-800 hx:dark:text-gray-50 hx:hover:shadow-lg hx:dark:hover:border-neutral-500 hx:dark:hover:bg-neutral-700" }} -{{- end -}} - -{{- $external := strings.HasPrefix $link "http" -}} -{{- $href := cond (strings.HasPrefix $link "/") ($link | relURL) $link -}} - - - - {{- with $image -}} - {{ $alt }} - {{- end -}} - - {{- $padding := "hx:p-4" -}} - {{- with $subtitle -}} - {{- $padding = "hx:pt-4 hx:px-4" -}} - {{- end -}} - -
      - - {{- with $icon }}{{ partial "utils/icon.html" (dict "name" $icon) -}}{{- end -}} - {{- $title -}} - - {{- with $subtitle -}} -
      {{- $subtitle | markdownify -}}
      - {{- end -}} -
      - - {{- if $tag }} - {{- partial "shortcodes/badge.html" (dict - "content" $tag - "color" $tagColor - "class" "hextra-card-tag" - "border" $tagBorder - "icon" $tagIcon - ) - -}} - {{- end -}} -
      -{{- /* Strip trailing newline. */ -}} diff --git a/website/themes/hextra/layouts/_partials/shortcodes/cards.html b/website/themes/hextra/layouts/_partials/shortcodes/cards.html deleted file mode 100644 index dfd808b5..00000000 --- a/website/themes/hextra/layouts/_partials/shortcodes/cards.html +++ /dev/null @@ -1,6 +0,0 @@ -{{- $cols := .cols | default 3 -}} -{{- $content := .content -}} - -
      - {{- $content -}} -
      diff --git a/website/themes/hextra/layouts/_partials/shortcodes/tabs.html b/website/themes/hextra/layouts/_partials/shortcodes/tabs.html deleted file mode 100644 index a4f31d81..00000000 --- a/website/themes/hextra/layouts/_partials/shortcodes/tabs.html +++ /dev/null @@ -1,48 +0,0 @@ -{{- $tabsID := .id }} - -{{- /* -The `tabs` parameter is a list of dict with the following keys: - - `id`: (int) the ID of the tab (the Ordinal of the tab shortcode). - - `name`: (string) the name of the tab (the title). - - `icon`: (string) the icon of the tab. - - `content`: (string) the content of the tab. - - `selected`: (bool) whether the tab is selected. -*/ -}} -{{- $tabs := .tabs }} - -{{- if eq (len $tabs) 0 -}} - {{ errorf "tabs must have at least one tab" }} -{{- end -}} - -{{- $enableSync := .enableSync }} - -{{- /* Create group data for syncing and select the first tab if none is selected. */ -}} -{{- $selectedIndex := 0 -}} -{{ $dataTabGroup := slice -}} - -{{- range $i, $item := $tabs -}} - {{- $dataTabGroup = $dataTabGroup | append ($item.name) -}} - - {{- if $item.selected -}} - {{- $selectedIndex = $i -}} - {{- end -}} -{{- end -}} - -{{- /* Generate a unique ID for each tab group. */ -}} -{{- $globalID := printf "tabs-%02v" $tabsID -}} - -{{- /* Keep HTML on single lines to avoid `>` being parsed as blockquote when nested in steps (#876) */ -}} -
      -
      - {{- range $i, $item := $tabs -}} - - {{- end -}} -
      -
      -
      - {{- range $i, $item := $tabs -}} -
      - {{- $item.content | markdownify -}} -
      - {{- end -}} -
      diff --git a/website/themes/hextra/layouts/_partials/sidebar.html b/website/themes/hextra/layouts/_partials/sidebar.html deleted file mode 100644 index 4dbba232..00000000 --- a/website/themes/hextra/layouts/_partials/sidebar.html +++ /dev/null @@ -1,325 +0,0 @@ -{{- $context := .context -}} - -{{- $disableSidebar := .disableSidebar | default false -}} -{{- $displayPlaceholder := .displayPlaceholder | default false -}} - -{{- $navRoot := cond (eq site.Home.Type "docs") site.Home $context.FirstSection -}} -{{- $pageURL := $context.RelPermalink -}} - -{{- if .context.Params.sidebar.hide -}} - {{- $disableSidebar = true -}} - {{- $displayPlaceholder = false -}} -{{- end -}} - -{{- $sidebarClass := "hx:md:sticky" -}} -{{- if $disableSidebar -}} - {{- if $displayPlaceholder -}} - {{- $sidebarClass = "hx:md:hidden hx:xl:block" -}} - {{- else -}} - {{- $sidebarClass = "hx:md:hidden" -}} - {{- end -}} -{{- end -}} - - - -{{- define "sidebar-main" -}} - {{ template "sidebar-tree" (dict "context" .context "level" 0 "page" .page "pageURL" .pageURL "toc" (.toc | default false)) }} -{{- end -}} - -{{- define "sidebar-tree" -}} - {{- if ge .level 4 -}} - {{- return -}} - {{- end -}} - - {{- $context := .context -}} - {{- $page := .page }} - {{- $pageURL := .page.RelPermalink -}} - {{- $level := .level -}} - {{- $toc := .toc | default false -}} - {{- $useMainMenu := and (eq $level 0) $toc -}} - {{- $mainMenuEntries := slice -}} - - {{- $items := where (union .context.RegularPages .context.Sections) "Params.sidebar.exclude" "!=" true -}} - {{- if $useMainMenu -}} - {{- range $menuItem := site.Menus.main -}} - {{- $menuType := $menuItem.Params.type | default "" -}} - {{- $isIconOnly := and $menuItem.Params.icon (ne $menuType "link") -}} - {{- /* Keep only navigation links in the mobile sidebar. */ -}} - {{- if or (eq $menuType "search") (eq $menuType "theme-toggle") (eq $menuType "language-switch") $isIconOnly -}} - {{- continue -}} - {{- end -}} - - {{- $menuTitle := or (T $menuItem.Identifier) $menuItem.Name -}} - {{- /* Dropdown parents mirror navbar behavior: render a labeled group of child links. */ -}} - {{- if $menuItem.HasChildren -}} - {{- $childEntries := slice -}} - {{- range $childItem := $menuItem.Children -}} - {{- $childType := $childItem.Params.type | default "" -}} - {{- $childIsIconOnly := and $childItem.Params.icon (ne $childType "link") -}} - {{- if or (eq $childType "search") (eq $childType "theme-toggle") (eq $childType "language-switch") $childIsIconOnly -}} - {{- continue -}} - {{- end -}} - - {{- $childTitle := or (T $childItem.Identifier) $childItem.Name -}} - {{- $childPage := $childItem.Page -}} - {{- with $childItem.PageRef -}} - {{- with $page.Site.GetPage . -}} - {{- $childPage = . -}} - {{- end -}} - {{- end -}} - {{- with $childPage -}} - {{- if ne .Params.sidebar.exclude true -}} - {{- $childEntries = $childEntries | append (dict "title" $childTitle "link" .RelPermalink) -}} - {{- end -}} - {{- continue -}} - {{- end -}} - - {{- $childLink := $childItem.URL -}} - {{- with $childItem.PageRef -}} - {{- if hasPrefix . "/" -}} - {{- $childLink = relLangURL (strings.TrimPrefix "/" .) -}} - {{- end -}} - {{- end -}} - {{- if $childLink -}} - {{- $childEntries = $childEntries | append (dict "title" $childTitle "link" $childLink) -}} - {{- end -}} - {{- end -}} - - {{- if gt (len $childEntries) 0 -}} - {{- $mainMenuEntries = $mainMenuEntries | append (dict "type" "group" "title" $menuTitle "children" $childEntries) -}} - {{- end -}} - {{- continue -}} - {{- end -}} - - {{- /* Normalize page-backed entries so we keep nested tree behavior. */ -}} - {{- $menuPage := $menuItem.Page -}} - {{- with $menuItem.PageRef -}} - {{- with $page.Site.GetPage . -}} - {{- $menuPage = . -}} - {{- end -}} - {{- end -}} - {{- with $menuPage -}} - {{- if ne .Params.sidebar.exclude true -}} - {{- $mainMenuEntries = $mainMenuEntries | append (dict "type" "page" "item" . "title" $menuTitle) -}} - {{- end -}} - {{- continue -}} - {{- end -}} - - {{- $link := $menuItem.URL -}} - {{- with $menuItem.PageRef -}} - {{- if hasPrefix . "/" -}} - {{- $link = relLangURL (strings.TrimPrefix "/" .) -}} - {{- end -}} - {{- end -}} - {{- if $link -}} - {{- $mainMenuEntries = $mainMenuEntries | append (dict "type" "url" "link" $link "title" $menuTitle) -}} - {{- end -}} - {{- end -}} - {{- end -}} - - {{- $useMainMenuEntries := and $useMainMenu (gt (len $mainMenuEntries) 0) -}} - {{- $hasItems := or (gt (len $items) 0) $useMainMenuEntries -}} - - {{- if $hasItems -}} - {{- if eq $level 0 -}} - {{- if $useMainMenuEntries -}} - {{- /* Mixed list: page entries render trees; url entries render leaf links. */ -}} - {{- range $entry := $mainMenuEntries -}} - {{- if eq (index $entry "type") "page" -}} - {{- $item := index $entry "item" -}} - {{- if $item.Params.sidebar.separator -}} -
    • - {{ index $entry "title" }} -
    • - {{- else -}} - {{- $active := eq (strings.TrimSuffix "/" $pageURL) (strings.TrimSuffix "/" $item.RelPermalink) -}} - {{- $shouldOpen := or ($item.Params.sidebar.open) ($item.IsAncestor $page) $active | default true }} -
    • - {{- template "sidebar-item-link" dict "context" $item "active" $active "open" $shouldOpen "title" (index $entry "title") "link" $item.RelPermalink -}} - {{- if and $toc $active (ne $item.Params.toc false) -}} - {{- template "sidebar-toc" dict "page" $item -}} - {{- end -}} - {{- template "sidebar-tree" dict "context" $item "page" $page "pageURL" $pageURL "level" (add $level 1) "toc" $toc -}} -
    • - {{- end -}} - {{- else if eq (index $entry "type") "group" -}} -
    • -
      - - {{- index $entry "title" -}} - -
      -
      -
        - {{- range $child := index $entry "children" -}} - {{- $link := index $child "link" -}} - {{- $active := eq (strings.TrimSuffix "/" $pageURL) (strings.TrimSuffix "/" $link) -}} -
      • - {{- template "sidebar-item-link" dict "active" $active "open" false "title" (index $child "title") "link" $link -}} -
      • - {{- end -}} -
      -
      -
    • - {{- else -}} - {{- $link := index $entry "link" -}} - {{- $active := eq (strings.TrimSuffix "/" $pageURL) (strings.TrimSuffix "/" $link) -}} -
    • {{ template "sidebar-item-link" dict "active" $active "open" false "title" (index $entry "title") "link" $link }}
    • - {{- end -}} - {{- end -}} - {{- else -}} - {{- range $items.ByWeight }} - {{- if .Params.sidebar.separator -}} -
    • - {{ partial "utils/title" . }} -
    • - {{- else -}} - {{- $active := eq $pageURL .RelPermalink -}} - {{- $shouldOpen := or (.Params.sidebar.open) (.IsAncestor $page) $active | default true }} -
    • - {{- $linkTitle := partial "utils/title" . -}} - {{- template "sidebar-item-link" dict "context" . "active" $active "open" $shouldOpen "title" $linkTitle "link" .RelPermalink -}} - {{- if and $toc $active (ne .Params.toc false) -}} - {{- template "sidebar-toc" dict "page" . -}} - {{- end -}} - {{- template "sidebar-tree" dict "context" . "page" $page "pageURL" $pageURL "level" (add $level 1) "toc" $toc -}} -
    • - {{- end -}} - {{- end -}} - {{- end -}} - {{- else -}} -
      -
        - {{- range $items.ByWeight }} - {{- $active := eq $pageURL .RelPermalink -}} - {{- $shouldOpen := or (.Params.sidebar.open) (.IsAncestor $page) $active | default true }} - {{- $linkTitle := partial "utils/title" . -}} -
      • - {{- template "sidebar-item-link" dict "context" . "active" $active "open" $shouldOpen "title" $linkTitle "link" .RelPermalink -}} - {{- if and $toc $active (ne .Params.toc false) -}} - {{ template "sidebar-toc" dict "page" . }} - {{- end }} - {{ template "sidebar-tree" dict "context" . "page" $page "pageURL" $pageURL "level" (add $level 1) "toc" $toc }} -
      • - {{- end -}} -
      -
      - {{- end -}} - {{- end -}} -{{- end -}} - -{{- define "sidebar-toc" -}} - {{ $page := .page }} - {{ with $page.Fragments.Headings }} - - {{ end }} -{{- end -}} - -{{- define "sidebar-footer" -}} - {{- range site.Menus.sidebar -}} - {{- $name := or (T .Identifier) .Name -}} - {{ if eq .Params.type "separator" }} -
    • - {{ $name }} -
    • - {{ else }} - {{- $link := .URL -}} - {{- with .PageRef -}} - {{- if hasPrefix . "/" -}} - {{- $link = relLangURL (strings.TrimPrefix "/" .) -}} - {{- end -}} - {{- end -}} -
    • {{ template "sidebar-item-link" dict "active" false "open" false "title" $name "link" $link }}
    • - {{ end }} - {{- end -}} -{{- end -}} - -{{- define "sidebar-item-link" -}} - {{- $external := strings.HasPrefix .link "http" -}} - {{- $open := .open | default true -}} - {{- $hasChildren := false -}} - {{- $linkClass := "hx:flex hx:items-center hx:justify-between hx:gap-2 hx:grow hx:cursor-pointer hx:rounded-sm hx:px-2 hx:py-1.5 hx:text-sm hx:transition-colors [-webkit-tap-highlight-color:transparent] [-webkit-touch-callout:none] hx:hextra-focus-visible-inset" -}} - {{- with .context }}{{ if or .RegularPages .Sections }}{{ $hasChildren = true }}{{ end }}{{ end -}} - {{- if $hasChildren -}} - {{- $linkClass = printf "%s hx:ltr:pr-8 hx:rtl:pl-8" $linkClass -}} - {{- end -}} - {{- if .active -}} - {{- $linkClass = printf "%s hextra-sidebar-active-item hx:bg-primary-100 hx:font-semibold hx:text-primary-800 hx:contrast-more:border hx:contrast-more:border-primary-500 hx:dark:bg-primary-400/10 hx:dark:text-primary-600 hx:contrast-more:dark:border-primary-500" $linkClass -}} - {{- else -}} - {{- $linkClass = printf "%s hx:text-gray-500 hx:hover:bg-gray-100 hx:hover:text-gray-900 hx:contrast-more:border hx:contrast-more:border-transparent hx:contrast-more:text-gray-900 hx:contrast-more:hover:border-gray-900 hx:dark:text-neutral-400 hx:dark:hover:bg-primary-100/5 hx:dark:hover:text-gray-50 hx:contrast-more:dark:text-gray-50 hx:contrast-more:dark:hover:border-gray-50" $linkClass -}} - {{- end -}} -
      - - {{- .title -}} - - {{- if $hasChildren }} - - {{- end }} -
      -{{- end -}} - -{{- define "sidebar-collapsible-button" -}} - -{{- end -}} diff --git a/website/themes/hextra/layouts/_partials/tags.html b/website/themes/hextra/layouts/_partials/tags.html deleted file mode 100644 index 446fb9d4..00000000 --- a/website/themes/hextra/layouts/_partials/tags.html +++ /dev/null @@ -1,7 +0,0 @@ -{{- $context := .context -}} - -{{- range $tag := $context.Params.tags -}} - {{- with $context.Site.GetPage (printf "/tags/%s" $tag) -}} - #{{ $tag }} - {{- end -}} -{{- end -}} diff --git a/website/themes/hextra/layouts/_partials/theme-toggle.html b/website/themes/hextra/layouts/_partials/theme-toggle.html deleted file mode 100644 index e7b72ea1..00000000 --- a/website/themes/hextra/layouts/_partials/theme-toggle.html +++ /dev/null @@ -1,83 +0,0 @@ -{{- $hideLabel := .hideLabel -}} -{{- $iconHeight := .iconHeight | default 12 -}} -{{- $class := .class | default "hx:h-7 hx:px-2 hx:text-xs hx:hover:bg-gray-100 hx:hover:text-gray-900 hx:dark:hover:bg-primary-100/5 hx:dark:hover:text-gray-50 hx:font-medium hx:text-gray-600 hx:transition-colors hx:dark:text-gray-400" -}} -{{- $location := .location | default "bottom" -}} - -{{- $changeTheme := (T "changeTheme") | default "Change theme" -}} -{{- $light := (T "light") | default "Light" -}} -{{- $dark := (T "dark") | default "Dark" -}} -{{- $system := (T "system") | default "System" -}} - -
      - - -
      diff --git a/website/themes/hextra/layouts/_partials/toc.html b/website/themes/hextra/layouts/_partials/toc.html deleted file mode 100644 index 8084b45a..00000000 --- a/website/themes/hextra/layouts/_partials/toc.html +++ /dev/null @@ -1,91 +0,0 @@ -{{/* Table of Contents */}} -{{/* TODO: toc bottom part should be able to hide */}} -{{- $toc := .Params.toc | default true -}} -{{- $onThisPage := (T "onThisPage") | default "On this page"}} -{{- $tags := (T "tags") | default "Tags"}} -{{- $editThisPage := (T "editThisPage") | default "Edit this page"}} -{{- $backToTop := (T "backToTop") | default "Scroll to top" -}} - - - -{{/* TOC subheadings component. This is a recursive component that renders a list of headings. */}} -{{- define "toc-subheading" -}} - {{- $headings := .headings -}} - {{- $level := .level -}} - {{- if ge $level 6 -}} - {{ return }} - {{- end -}} - - {{- $padding := (mul $level 4) -}} - {{- $class := cond (eq $level 0) "hx:font-medium" (printf "hx:ltr:pl-%d hx:rtl:pr-%d" $padding $padding) -}} - - {{- range $headings }} - {{- if .Title }} -
    • - - {{- .Title | safeHTML | plainify | htmlUnescape }} - -
    • - {{- end -}} - {{- with .Headings -}} - {{ template "toc-subheading" (dict "headings" . "level" (add $level 1)) }} - {{- end -}} - - {{- end -}} -{{- end -}} diff --git a/website/themes/hextra/layouts/_partials/utils/extract-headings.html b/website/themes/hextra/layouts/_partials/utils/extract-headings.html deleted file mode 100644 index 976d76e9..00000000 --- a/website/themes/hextra/layouts/_partials/utils/extract-headings.html +++ /dev/null @@ -1,31 +0,0 @@ -{{- /* -Extracts all headings from a page and adds them to the scratchpad. - -The keys can be obtained from the scratchpad by using the "keys" key. -The titles can be obtained from the scratchpad by using the "titles" key. - -The scratchpad must be initialized with empty slices before calling this function for the keys "keys" and "titles" - -@param {any} target The element to extract headings from. -@param {any} scratch The scratchpad to add the keys and titles to. - -@example {{ partial "utils/extract-headings.html" (dict "target" $h1 "scratch" $s) }} -*/ -}} - -{{- range $heading := index .target.Headings -}} - {{- if and (eq $heading.Level 0) (not $heading.Title) -}} - {{- $.scratch.Add "keys" (slice $heading.Title) -}} - {{- else -}} - {{- $key := (printf "%s#%s" $heading.ID $heading.Title) -}} - {{- $.scratch.Add "keys" (slice $key) -}} - {{- end -}} - - {{- $title := (printf "%s" $heading.Level $heading.Title) | htmlUnescape -}} - {{- $.scratch.Add "titles" (slice $title) -}} - - {{- partial "utils/extract-headings.html" (dict - "target" $heading - "scratch" $.scratch - ) - }} -{{- end -}} diff --git a/website/themes/hextra/layouts/_partials/utils/file-path.html b/website/themes/hextra/layouts/_partials/utils/file-path.html deleted file mode 100644 index 17945517..00000000 --- a/website/themes/hextra/layouts/_partials/utils/file-path.html +++ /dev/null @@ -1,21 +0,0 @@ -{{/* This utility is used to get the file path from absolute, relative path or URL. */}} - -{{- $path := .path -}} -{{- $page := .page -}} - -{{- $isLocal := not (urls.Parse $path).Scheme -}} -{{- $isPage := and (eq $page.Kind "page") (not $page.BundleType) -}} -{{- $startsWithSlash := hasPrefix $path "/" -}} -{{- $startsWithRelative := hasPrefix $path "../" -}} - -{{- if and $path $isLocal -}} - {{- if $startsWithSlash -}} - {{/* File under static directory */}} - {{- $path = (relURL (strings.TrimPrefix "/" $path)) -}} - {{- else if and $isPage (not $startsWithRelative) -}} - {{/* File is a sibling to the individual page file */}} - {{ $path = (printf "../%s" $path) }} - {{- end -}} -{{- end -}} - -{{- return $path -}} diff --git a/website/themes/hextra/layouts/_partials/utils/format-date.html b/website/themes/hextra/layouts/_partials/utils/format-date.html deleted file mode 100644 index 94cbdc4e..00000000 --- a/website/themes/hextra/layouts/_partials/utils/format-date.html +++ /dev/null @@ -1,3 +0,0 @@ -{{- with . -}} - {{- . | time.Format (site.Params.dateFormat | default ":date_long") -}} -{{- end -}} diff --git a/website/themes/hextra/layouts/_partials/utils/fragments.html b/website/themes/hextra/layouts/_partials/utils/fragments.html deleted file mode 100644 index 511a4dd0..00000000 --- a/website/themes/hextra/layouts/_partials/utils/fragments.html +++ /dev/null @@ -1,93 +0,0 @@ -{{- /* - fragments.html - Split page content into searchable fragments - - This partial processes a Hugo page and splits its content into fragments based on headings, - creating a data structure suitable for search indexing. It supports different fragment types - and handles hierarchical heading structures (h1, h2). - - Parameters: - - .context (Page): The Hugo page to process - - .type (string): Fragment type - "content" (default), "heading", "title", or "summary" - - Returns: - - dict: Map of heading keys to content fragments - - Example: - Input page with content: - # Introduction - This is the intro text. - ## Setup - Setup instructions here. - # Configuration - Config details here. - - Output (type "content"): - { - "": "This is the intro text.", - "intro#Introduction": "This is the intro text. Setup instructions here.", - "setup#Setup": "Setup instructions here.", - "config#Configuration": "Config details here." - } - - Fragment types: - - "content": Splits page content by headings (default) - - "heading": Returns heading keys with empty content - - "title": Returns empty content (title handled elsewhere) - - "summary": Returns page summary only -*/ -}} - -{{- /* Extract page context and fragment type */ -}} -{{- $page := .context -}} -{{- $type := .type | default "content" -}} - -{{- /* Process all headings */ -}} -{{- $s := newScratch -}} -{{- $s.Set "keys" slice -}} -{{- $s.Set "titles" slice -}} - -{{- partial "utils/extract-headings.html" (dict "target" $page.Fragments "scratch" $s) -}} - -{{- $headingKeys := $s.Get "keys" -}} -{{- $headingTitles := $s.Get "titles" -}} - -{{- $content := $page.Content | htmlUnescape -}} -{{- $len := len $headingKeys -}} -{{- $data := dict -}} - -{{ if eq $type "content" }} - {{/* Include full content of the page */}} - {{ if eq $len 0 }} - {{ $data = $data | merge (dict "" ($page.Plain | htmlUnescape | strings.TrimSpace)) }} - {{ else }} - {{/* Split the raw content from bottom to top */}} - {{ range seq $len }} - {{ $i := sub $len . }} - {{ $headingKey := index $headingKeys $i }} - {{ $headingTitle := index $headingTitles $i }} - - {{ if eq $i 0 }} - {{ $data = $data | merge (dict $headingKey ($content | plainify | htmlUnescape | strings.TrimSpace)) }} - {{ else }} - {{ $parts := split $content (printf "%s" $headingTitle) }} - {{ $lastPart := index $parts (sub (len $parts) 1) }} - - {{ $data = $data | merge (dict $headingKey ($lastPart | plainify | htmlUnescape | strings.TrimSpace)) }} - {{ $content = strings.TrimSuffix $lastPart $content }} - {{ $content = strings.TrimSuffix (printf "%s" $headingTitle) $content }} - {{ end }} - {{ end }} - {{ end }} -{{ else if (eq $type "heading" ) }} - {{/* Put heading keys with empty content to the data object */}} - {{ $data = dict "" "" }} - {{ range $headingKeys }} - {{ $data = $data | merge (dict . "") }} - {{ end }} -{{ else if (eq $type "title") }} - {{/* Use empty data object since title is included in search-data.json */}} - {{ $data = $data | merge (dict "" "") }} -{{ else if (eq $type "summary" ) }} - {{ $data = $data | merge (dict "" ($page.Summary | plainify | htmlUnescape | strings.TrimSpace)) }} -{{ end }} - -{{ return $data }} diff --git a/website/themes/hextra/layouts/_partials/utils/hugo-compat/language-direction.html b/website/themes/hextra/layouts/_partials/utils/hugo-compat/language-direction.html deleted file mode 100644 index 24a65c2d..00000000 --- a/website/themes/hextra/layouts/_partials/utils/hugo-compat/language-direction.html +++ /dev/null @@ -1,15 +0,0 @@ -{{/* -Returns the language direction using the supported Hugo API for the running version. - -Hugo v0.158.0 deprecated Language.LanguageDirection in favor of Language.Direction. -Keep the fallback so Hextra can continue supporting Hugo >= 0.146.0. -*/}} -{{- $language := . -}} -{{- $direction := "" -}} -{{- if ge (hugo.Version) "0.158.0" -}} - {{- $direction = $language.Direction -}} -{{- else -}} - {{- $direction = $language.LanguageDirection -}} -{{- end -}} - -{{- return $direction -}} diff --git a/website/themes/hextra/layouts/_partials/utils/hugo-compat/language-label.html b/website/themes/hextra/layouts/_partials/utils/hugo-compat/language-label.html deleted file mode 100644 index b6a58bbf..00000000 --- a/website/themes/hextra/layouts/_partials/utils/hugo-compat/language-label.html +++ /dev/null @@ -1,15 +0,0 @@ -{{/* -Returns the language label using the supported Hugo API for the running version. - -Hugo v0.158.0 deprecated Language.LanguageName in favor of Language.Label. -Keep the fallback so Hextra can continue supporting Hugo >= 0.146.0. -*/}} -{{- $language := . -}} -{{- $label := "" -}} -{{- if ge (hugo.Version) "0.158.0" -}} - {{- $label = $language.Label -}} -{{- else -}} - {{- $label = $language.LanguageName -}} -{{- end -}} - -{{- return $label -}} diff --git a/website/themes/hextra/layouts/_partials/utils/hugo-compat/language-locale.html b/website/themes/hextra/layouts/_partials/utils/hugo-compat/language-locale.html deleted file mode 100644 index 1600218b..00000000 --- a/website/themes/hextra/layouts/_partials/utils/hugo-compat/language-locale.html +++ /dev/null @@ -1,15 +0,0 @@ -{{/* -Returns the language locale using the supported Hugo API for the running version. - -Hugo v0.158.0 deprecated Language.LanguageCode in favor of Language.Locale. -Keep the fallback so Hextra can continue supporting Hugo >= 0.146.0. -*/}} -{{- $language := . -}} -{{- $locale := "" -}} -{{- if ge (hugo.Version) "0.158.0" -}} - {{- $locale = $language.Locale -}} -{{- else -}} - {{- $locale = $language.LanguageCode -}} -{{- end -}} - -{{- return $locale -}} diff --git a/website/themes/hextra/layouts/_partials/utils/hugo-compat/site-data.html b/website/themes/hextra/layouts/_partials/utils/hugo-compat/site-data.html deleted file mode 100644 index 7ba05116..00000000 --- a/website/themes/hextra/layouts/_partials/utils/hugo-compat/site-data.html +++ /dev/null @@ -1,14 +0,0 @@ -{{/* -Returns site data using the supported Hugo API for the running version. - -Hugo v0.156.0 deprecated site.Data / .Site.Data in favor of hugo.Data. -Keep the fallback so Hextra can continue supporting Hugo >= 0.146.0. -*/}} -{{- $siteData := dict -}} -{{- if ge (hugo.Version) "0.156.0" -}} - {{- $siteData = hugo.Data -}} -{{- else -}} - {{- $siteData = site.Data -}} -{{- end -}} - -{{- return $siteData -}} diff --git a/website/themes/hextra/layouts/_partials/utils/hugo-compat/sites.html b/website/themes/hextra/layouts/_partials/utils/hugo-compat/sites.html deleted file mode 100644 index 3f91c7be..00000000 --- a/website/themes/hextra/layouts/_partials/utils/hugo-compat/sites.html +++ /dev/null @@ -1,14 +0,0 @@ -{{/* -Returns all sites using the supported Hugo API for the running version. - -Hugo v0.156.0 deprecated site.Sites / page.Sites in favor of hugo.Sites. -Keep the fallback so Hextra can continue supporting Hugo >= 0.146.0. -*/}} -{{- $sites := slice -}} -{{- if ge (hugo.Version) "0.156.0" -}} - {{- $sites = hugo.Sites -}} -{{- else -}} - {{- $sites = site.Sites -}} -{{- end -}} - -{{- return $sites -}} diff --git a/website/themes/hextra/layouts/_partials/utils/icon.html b/website/themes/hextra/layouts/_partials/utils/icon.html deleted file mode 100644 index fc31d38f..00000000 --- a/website/themes/hextra/layouts/_partials/utils/icon.html +++ /dev/null @@ -1,79 +0,0 @@ -{{/* Render raw svg icon from site data */}} -{{- $siteData := partial "utils/hugo-compat/site-data.html" . -}} -{{- $name := .name -}} -{{- $icon := index $siteData.icons $name -}} -{{- $isRemoteIcon := false -}} - -{{- if not $icon -}} - {{- $remoteProvider := "" -}} - {{- $remoteName := "" -}} - {{- if strings.Contains $name ":" -}} - {{- $parts := split $name ":" -}} - {{- if eq (len $parts) 2 -}} - {{- $remoteProvider = index $parts 0 -}} - {{- $remoteName = index $parts 1 -}} - {{- end -}} - {{- end -}} - - {{- if and $remoteProvider $remoteName -}} - {{- $remoteEnabled := true -}} - {{- $remoteProviders := dict - "lucide" (dict "url" "https://unpkg.com/lucide-static@1/icons/%s.svg") - "tabler" (dict "url" "https://unpkg.com/@tabler/icons@3/icons/outline/%s.svg") - "simple" (dict "url" "https://cdn.jsdelivr.net/npm/simple-icons@16/icons/%s.svg") - -}} - {{- with site.Params.icons.remote -}} - {{- if isset . "enable" -}} - {{- $remoteEnabled = .enable -}} - {{- end -}} - {{- with .providers -}} - {{- $remoteProviders = merge $remoteProviders . -}} - {{- end -}} - {{- end -}} - - {{- if $remoteEnabled -}} - {{- if not (findRE "^[A-Za-z0-9_-]+$" $remoteProvider) -}} - {{- errorf "invalid remote icon provider %q" $remoteProvider -}} - {{- end -}} - {{- if or (in $remoteName "..") (not (findRE "^[A-Za-z0-9._/-]+$" $remoteName)) -}} - {{- errorf "invalid remote icon name %q" $remoteName -}} - {{- end -}} - - {{- with index $remoteProviders $remoteProvider -}} - {{- $remoteUrl := printf .url $remoteName -}} - {{- with try (resources.GetRemote $remoteUrl) -}} - {{- with .Err -}} - {{- errorf "Could not retrieve remote icon %q from %s. Reason: %s." $name $remoteUrl . -}} - {{- else with .Value -}} - {{- $icon = .Content -}} - {{- $isRemoteIcon = true -}} - {{- if and (not (strings.Contains $icon "fill=")) (not (strings.Contains $icon "stroke=")) -}} - {{- $icon = replaceRE "]*?)\sclass=("[^"]*"|'[^']*'|[^\s>]+)` `$1` $icon -}} -{{- end -}} - -{{- if .attributes -}} - {{- $attributes := .attributes -}} - {{- if $isRemoteIcon -}} - {{- $icon = replaceRE `(]*?)\swidth=("[^"]*"|'[^']*'|[^\s>]+)` `$1` $icon -}} - {{- $icon = replaceRE `(]*?)\sheight=("[^"]*"|'[^']*'|[^\s>]+)` `$1` $icon -}} - {{- end -}} - {{- $icon = replaceRE " -:root { - --hextra-max-page-width: {{ $maxPageWidth }}; -} - -{{- end -}} diff --git a/website/themes/hextra/layouts/_partials/utils/sort-pages.html b/website/themes/hextra/layouts/_partials/utils/sort-pages.html deleted file mode 100644 index 4b8ee037..00000000 --- a/website/themes/hextra/layouts/_partials/utils/sort-pages.html +++ /dev/null @@ -1,32 +0,0 @@ -{{- $page := .page -}} -{{- $by := .by | default "weight" -}} -{{- $order := .order | default "asc" -}} - -{{- $pages := slice }} - -{{- if eq $by "weight" }} - {{- $pages = $page.Pages.ByWeight }} -{{- else if eq $by "date" }} - {{- $pages = $page.Pages.ByDate }} -{{- else if eq $by "title" }} - {{- $pages = $page.Pages.ByTitle }} -{{- else if eq $by "expiryDate" }} - {{- $pages = $page.Pages.ByExpiryDate }} -{{- else if eq $by "publishDate" }} - {{- $pages = $page.Pages.ByPublishDate }} -{{- else if eq $by "lastmod" }} - {{- $pages = $page.Pages.ByLastmod }} -{{- else if eq $by "linkTitle" }} - {{- $pages = $page.Pages.ByLinkTitle }} -{{- else if eq $by "length" }} - {{- $pages = $page.Pages.ByLength }} -{{- else }} - {{- warnf "sort-pages: unknown sort field %q" $by -}} - {{- $pages = $page.Pages }} -{{ end -}} - -{{- if eq $order "desc" }} - {{- $pages = $pages.Reverse }} -{{- end -}} - -{{- return $pages -}} diff --git a/website/themes/hextra/layouts/_partials/utils/template-url.html b/website/themes/hextra/layouts/_partials/utils/template-url.html deleted file mode 100644 index 9de73fde..00000000 --- a/website/themes/hextra/layouts/_partials/utils/template-url.html +++ /dev/null @@ -1,18 +0,0 @@ -{{/* - This utility replaces placeholders in a URL template string. - - Usage: - {{ partial "utils/template-url.html" (dict "template" .url "values" (dict "url" $pageURL "title" $pageTitle "markdown_url" $markdownURL)) }} - - Placeholders use the format {key} and values are URL-encoded automatically. -*/}} -{{- $template := .template -}} -{{- $values := .values | default dict -}} - -{{- range $key, $value := $values -}} - {{- $placeholder := printf "{%s}" $key -}} - {{- $encoded := $value | urlquery -}} - {{- $template = replace $template $placeholder $encoded -}} -{{- end -}} - -{{- return $template -}} diff --git a/website/themes/hextra/layouts/_partials/utils/title.html b/website/themes/hextra/layouts/_partials/utils/title.html deleted file mode 100644 index 0ab0afae..00000000 --- a/website/themes/hextra/layouts/_partials/utils/title.html +++ /dev/null @@ -1,19 +0,0 @@ -{{/* - This utility is used to retrieve the title of a page or section. - If no title is set, it falls back to using the directory or file name. - - Based on https://github.com/thegeeklab/hugo-geekdoc/blob/v0.44.0/layouts/partials/utils/title.html -*/}} -{{- $title := "" }} - -{{ if .LinkTitle }} - {{ $title = .LinkTitle }} -{{ else if .Title }} - {{ $title = .Title }} -{{ else if and .IsSection .File }} - {{ $title = path.Base .File.Dir | humanize | title }} -{{ else if and .IsPage .File }} - {{ $title = .File.BaseFileName | humanize | title }} -{{ end }} - -{{ return $title -}} diff --git a/website/themes/hextra/layouts/_shortcodes/asciinema.html b/website/themes/hextra/layouts/_shortcodes/asciinema.html deleted file mode 100644 index 167ef979..00000000 --- a/website/themes/hextra/layouts/_shortcodes/asciinema.html +++ /dev/null @@ -1,88 +0,0 @@ -{{- /* Get parameters */ -}} -{{- $castFile := .Get "file" | default (.Get 0) -}} -{{- $theme := .Get "theme" | default "asciinema" -}} -{{- $speed := .Get "speed" | default 1 -}} -{{- $autoplay := .Get "autoplay" | default false -}} -{{- $loop := .Get "loop" | default false -}} -{{- $poster := .Get "poster" | default "" -}} -{{- $markers := .Get "markers" | default "" -}} - -{{- /* Handle file path: support local files, absolute paths, and remote URLs */ -}} -{{- $isLocal := not (urls.Parse $castFile).Scheme -}} -{{- $isPage := and (eq .Page.Kind "page") (not .Page.BundleType) -}} - -{{- if $isLocal -}} - {{- /* Local file handling */ -}} - {{- $found := false -}} - - {{- /* Try page resources first */ -}} - {{- if not $isPage -}} - {{- with .Page.Resources.Get $castFile -}} - {{- $castFile = .RelPermalink -}} - {{- $found = true -}} - {{- end -}} - {{- end -}} - - {{- /* Try global resources if not found in page resources */ -}} - {{- if not $found -}} - {{- with resources.Get $castFile -}} - {{- $castFile = .RelPermalink -}} - {{- $found = true -}} - {{- end -}} - {{- end -}} - - {{- /* Try static files if not found in resources */ -}} - {{- if not $found -}} - {{- if hasPrefix $castFile "/" -}} - {{- $castFile = relURL (strings.TrimPrefix "/" $castFile) -}} - {{- $found = true -}} - {{- else -}} - {{- /* For relative paths, assume they're in static directory */ -}} - {{- $castFile = relURL $castFile -}} - {{- $found = true -}} - {{- end -}} - {{- end -}} - - {{- /* If still not found, raise an error */ -}} - {{- if not $found -}} - {{- errorf "Asciinema cast file not found: %s. Please ensure the file exists in your assets, static/, or provide a valid remote URL." $castFile -}} - {{- end -}} -{{- end -}} - -{{- /* Build marker configuration */ -}} -{{- $markerConfig := "" -}} -{{- if $markers -}} - {{- $markerParts := slice -}} - {{- range (split $markers ",") -}} - {{- $item := trim . " " -}} - {{- $colonIndex := findRE ":" $item -}} - {{- if $colonIndex -}} - {{- /* Marker with label */ -}} - {{- $pair := split $item ":" -}} - {{- if ge (len $pair) 2 -}} - {{- $time := printf "%.1f" (float (trim (index $pair 0) " ")) -}} - {{- $label := trim (index $pair 1) " " -}} - {{- $markerParts = $markerParts | append (printf "[%s,\"%s\"]" $time $label) -}} - {{- end -}} - {{- else -}} - {{- /* Simple marker */ -}} - {{- $markerParts = $markerParts | append (printf "%.1f" (float $item)) -}} - {{- end -}} - {{- end -}} - {{- $markerConfig = printf "[%s]" (delimit $markerParts ",") -}} -{{- end -}} - -{{- /* Mark page as using asciinema */ -}} -{{- .Page.Store.Set "hasAsciinema" true -}} - -
      -
      \ No newline at end of file diff --git a/website/themes/hextra/layouts/_shortcodes/badge.html b/website/themes/hextra/layouts/_shortcodes/badge.html deleted file mode 100644 index a8005c2b..00000000 --- a/website/themes/hextra/layouts/_shortcodes/badge.html +++ /dev/null @@ -1,54 +0,0 @@ -{{- /* -A shortcode to create a badge. - -@param {string} content The content of the badge. -@param {string} color The color of the badge. -@param {string} class The class of the badge. -@param {string} link The link of the badge. -@param {string} icon The icon of the badge. - -or - -@param {string} 0 The content of the badge. - -@example {{< badge content="Badge" color="blue" >}} -@example {{< badge "Badge" >}} -*/ -}} - -{{- if .IsNamedParams -}} - {{- $content := .Get "content" -}} - {{- $color := .Get "color" | default (.Get "type") | default "" -}}{{- /* Compatibility with previous parameter. */ -}} - {{- $class := .Get "class" | default "" -}} - {{- $link := .Get "link" | default "" -}} - {{- $icon := .Get "icon" | default "" -}} - {{- $border := not (eq (.Get "border") false) | default true }} - - {{- if $link -}} - - {{- partial "shortcodes/badge.html" (dict - "content" $content - "color" $color - "class" $class - "border" $border - "icon" $icon - ) - -}} - - {{- else -}} - {{- partial "shortcodes/badge.html" (dict - "content" $content - "color" $color - "class" $class - "border" $border - "icon" $icon - ) - -}} - {{- end -}} -{{- else -}} - {{- $content := .Get 0 -}} - {{- partial "shortcodes/badge.html" (dict - "content" $content - "border" true - ) - -}} -{{- end -}} diff --git a/website/themes/hextra/layouts/_shortcodes/callout.html b/website/themes/hextra/layouts/_shortcodes/callout.html deleted file mode 100644 index ba939a7e..00000000 --- a/website/themes/hextra/layouts/_shortcodes/callout.html +++ /dev/null @@ -1,57 +0,0 @@ -{{- /* -A shortcode to create a callout. - -@param {string} type The type of the callout (default, info, warning, error, important). -@param {string} content The content of the callout. -@param {string} emoji The emoji of the callout. -@param {string} icon The icon of the callout (related to type or can be a custom icon). - -@example {{< callout type="info" >}}Content{{< /callout >}} -*/ -}} - -{{- $type := .Get "type" | default "default" -}} -{{- $emoji := .Get "emoji" -}} -{{- $icon := .Get "icon" -}} - -{{- $styles := newScratch -}} -{{- $styles.Set "default" (dict - "icon" "light-bulb" - "style" "hx:border-green-200 hx:bg-green-100 hx:text-green-900 hx:dark:border-green-200/30 hx:dark:bg-green-900/30 hx:dark:text-green-200" - ) --}} -{{- $styles.Set "info" (dict - "icon" "information-circle" - "style" "hx:border-blue-200 hx:bg-blue-100 hx:text-blue-900 hx:dark:border-blue-200/30 hx:dark:bg-blue-900/30 hx:dark:text-blue-200" - ) --}} -{{- $styles.Set "warning" (dict - "icon" "exclamation" - "style" "hx:border-amber-200 hx:bg-amber-100 hx:text-amber-900 hx:dark:border-amber-200/30 hx:dark:bg-amber-900/30 hx:dark:text-amber-200" - ) --}} -{{- $styles.Set "error" (dict - "icon" "ban" - "style" "hx:border-red-200 hx:bg-red-100 hx:text-red-900 hx:dark:border-red-200/30 hx:dark:bg-red-900/30 hx:dark:text-red-200" - ) --}} -{{- $styles.Set "important" (dict - "icon" "exclamation-circle" - "style" "hx:border-purple-200 hx:bg-purple-100 hx:text-purple-900 hx:dark:border-purple-200/30 hx:dark:bg-purple-900/30 hx:dark:text-purple-200" - ) --}} - -{{- $style := or ($styles.Get $type) ($styles.Get "default") -}} - -{{- if and (not $emoji) (not $icon) -}} - {{- $icon = $style.icon -}} -{{- end -}} - -{{- $content := .InnerDeindent | markdownify -}} - -{{- partial "shortcodes/callout.html" (dict - "content" $content - "emoji" $emoji - "icon" $icon - "class" $style.style - ) --}} diff --git a/website/themes/hextra/layouts/_shortcodes/card.html b/website/themes/hextra/layouts/_shortcodes/card.html deleted file mode 100644 index e3b47cee..00000000 --- a/website/themes/hextra/layouts/_shortcodes/card.html +++ /dev/null @@ -1,72 +0,0 @@ -{{- /* - A shortcode to create a card. - - @param {string} link The link to the card. - @param {string} title The title of the card. - @param {string} icon The icon of the card. - @param {string} subtitle The subtitle of the card. - @param {string} tag The tag of the card. - @param {string} tagColor The color of the tag. - @param {string} image The image of the card. - @param {string} alt The alt text for the image (defaults to title if not provided). - @param {string} method The method to process the image. - @param {string} options The options to process the image. - @param {string} imageStyle The style of the image. - - @example {{< card link="/" title="Image Card" -}} -*/ -}} -{{- $link := .Get "link" -}} -{{- $title := .Get "title" -}} -{{- $icon := .Get "icon" -}} -{{- $subtitle := .Get "subtitle" -}} -{{- $image := .Get "image" -}} -{{- $alt := .Get "alt" | default $title -}} -{{- $width := 0 -}} -{{- $height := 0 -}} -{{- $imageStyle := .Get "imageStyle" -}} -{{- $tag := .Get "tag" -}} -{{- $tagColor := .Get "tagColor" | default (.Get "tagType") | default "" -}}{{- /* Compatibility with previous parameter. */ -}} -{{- $tagBorder := not (eq (.Get "tagBorder") false) | default true }} -{{- $tagIcon := .Get "tagIcon" | default "" -}} - -{{/* Image processing options */}} -{{- $method := .Get "method" | default "Resize" | humanize -}} -{{- $options := .Get "options" | default "800x webp q80" -}} -{{- $process := .Get "process" | default (printf "%s %s" $method $options) -}} - -{{- if and $image (not (urls.Parse $image).Scheme) -}} - {{- with or (.Page.Resources.Get $image) (resources.Get $image) -}} - {{/* .Process does not work on svgs */}} - {{- if (not (eq .MediaType.SubType "svg")) -}} - {{/* Retrieve the $image resource from local or global resources */}} - {{- $processed := .Process $process -}} - {{- $width = $processed.Width -}} - {{- $height = $processed.Height -}} - {{- $image = $processed.RelPermalink -}} - {{- end -}} - {{ else }} - {{/* Otherwise, use relative link of the image */}} - {{- if hasPrefix $image "/" -}} - {{- $image = relURL (strings.TrimPrefix "/" $image) -}} - {{- end -}} - {{- end -}} -{{- end -}} - -{{- partial "shortcodes/card" (dict - "page" .Page - "link" $link - "title" $title - "icon" $icon - "subtitle" $subtitle - "image" $image - "alt" $alt - "width" $width - "height" $height - "imageStyle" $imageStyle - "tag" $tag - "tagType" $tagColor - "tagBorder" $tagBorder - "tagIcon" $tagIcon - ) --}} diff --git a/website/themes/hextra/layouts/_shortcodes/cards.html b/website/themes/hextra/layouts/_shortcodes/cards.html deleted file mode 100644 index 0b6667f3..00000000 --- a/website/themes/hextra/layouts/_shortcodes/cards.html +++ /dev/null @@ -1,11 +0,0 @@ -{{- /* -A shortcode for creating cards. - -@param {string} cols The number of columns. - -@example {{< cards cols="3" >}}{{< /cards >}} -*/ -}} - -{{- $cols := .Get "cols" | default 3 -}} - -{{- partial "shortcodes/cards" (dict "cols" $cols "content" .Inner) -}} diff --git a/website/themes/hextra/layouts/_shortcodes/details.html b/website/themes/hextra/layouts/_shortcodes/details.html deleted file mode 100644 index 6835337c..00000000 --- a/website/themes/hextra/layouts/_shortcodes/details.html +++ /dev/null @@ -1,20 +0,0 @@ -{{- /* -A built-in component to display a collapsible content. - -@param {string} title The title of the details. -@param {string} closed Whether the details are closed or not (default: false). - -@example {{% details title="Details" %}}Content{{% /details %}} -*/ -}} - -{{- $title := .Get "title" | default "" -}} -{{- $closed := eq (.Get "closed") "true" | default false -}} - -
      - - {{ $title | markdownify }} - -
      - {{ .InnerDeindent | $.Page.RenderString (dict "display" "block") }} -
      -
      diff --git a/website/themes/hextra/layouts/_shortcodes/filetree/container.html b/website/themes/hextra/layouts/_shortcodes/filetree/container.html deleted file mode 100644 index 184ce73d..00000000 --- a/website/themes/hextra/layouts/_shortcodes/filetree/container.html +++ /dev/null @@ -1,13 +0,0 @@ -{{- /* -A file tree container. - -@example {{< filetree/container >}}{{< /filetree/container >}} -*/ -}} - -
      -
      -
        - {{- .InnerDeindent -}} -
      -
      -
      diff --git a/website/themes/hextra/layouts/_shortcodes/filetree/file.html b/website/themes/hextra/layouts/_shortcodes/filetree/file.html deleted file mode 100644 index c48c8c98..00000000 --- a/website/themes/hextra/layouts/_shortcodes/filetree/file.html +++ /dev/null @@ -1,16 +0,0 @@ -{{- /* -A file in a file tree. - -@param {string} name The name of the file. - -@example {{< filetree/file name="_index.md" >}} -*/ -}} - -{{- $name := .Get "name" -}} - -
    • - - {{- partial "utils/icon" (dict "name" "document-text" "attributes" "width=1em") -}} - {{ $name | markdownify }} - -
    • diff --git a/website/themes/hextra/layouts/_shortcodes/filetree/folder.html b/website/themes/hextra/layouts/_shortcodes/filetree/folder.html deleted file mode 100644 index 58756eef..00000000 --- a/website/themes/hextra/layouts/_shortcodes/filetree/folder.html +++ /dev/null @@ -1,26 +0,0 @@ -{{- /* -A folder in a file tree. - -@param {string} name The name of the folder. -@param {string} state The state of the folder. - -@example {{< filetree/folder name="docs" state="closed" >}} -*/ -}} - -{{- $name := .Get "name" -}} -{{- $state := .Get "state" | default "open" }} - -
    • - -
        - {{- .InnerDeindent -}} -
      -
    • diff --git a/website/themes/hextra/layouts/_shortcodes/hextra/feature-card.html b/website/themes/hextra/layouts/_shortcodes/hextra/feature-card.html deleted file mode 100644 index fd8a6486..00000000 --- a/website/themes/hextra/layouts/_shortcodes/hextra/feature-card.html +++ /dev/null @@ -1,51 +0,0 @@ -{{- /* -A shortcode for displaying a feature card. - -@param {string} title The title of the card. -@param {string} subtitle The subtitle of the card. -@param {string} class The class of the card. -@param {string} image The image of the card. -@param {string} imageClass The class of the image. -@param {string} style The style of the card. -@param {string} icon The icon of the card. -@param {string} link The link of the card. - -@example {{< hextra/feature-card title="Feature Card" subtitle="This is a feature card." >}} -*/ -}} - -{{- $title := .Get "title" -}} -{{- $subtitle := .Get "subtitle" -}} -{{- $class := .Get "class" -}} -{{- $image := .Get "image" -}} -{{- $imageClass := .Get "imageClass" -}} -{{- $style := .Get "style" -}} -{{- $icon := .Get "icon" -}} -{{- $link := .Get "link" -}} - -{{- $external := hasPrefix $link "http" -}} -{{- $href := cond (strings.HasPrefix $link "/") ($link | relURL) $link -}} - -{{- if hasPrefix $image "/" -}} - {{- $image = relURL (strings.TrimPrefix "/" $image) -}} -{{- end -}} - - -
      -

      - {{ with $icon -}} - - {{- partial "utils/icon.html" (dict "name" . "attributes" "height=1.5rem") -}} - - {{ end -}} - {{ $title }} -

      -

      {{ $subtitle | markdownify }}

      -
      - {{- with $image -}} - {{ $title }} - {{- end -}} -
      diff --git a/website/themes/hextra/layouts/_shortcodes/hextra/feature-grid.html b/website/themes/hextra/layouts/_shortcodes/hextra/feature-grid.html deleted file mode 100644 index aace898b..00000000 --- a/website/themes/hextra/layouts/_shortcodes/hextra/feature-grid.html +++ /dev/null @@ -1,21 +0,0 @@ -{{- /* -A shortcode for displaying a feature grid. - -@param {string} cols The number of columns. -@param {string} style The style of the grid. - -@example {{< hextra/feature-grid cols="3" >}}{{< /hextra/feature-grid >}} -*/ -}} - -{{- $cols := .Get "cols" | default 3 -}} -{{- $style := .Get "style" | default "" -}} - -{{- $css := printf "--hextra-feature-grid-cols: %v; %s" $cols $style -}} - - -
      - {{ .Inner }} -
      diff --git a/website/themes/hextra/layouts/_shortcodes/hextra/hero-badge.html b/website/themes/hextra/layouts/_shortcodes/hextra/hero-badge.html deleted file mode 100644 index 9fdcbbd3..00000000 --- a/website/themes/hextra/layouts/_shortcodes/hextra/hero-badge.html +++ /dev/null @@ -1,24 +0,0 @@ -{{- /* -A shortcode for rendering a badge with a link. - -@param {string} link The link of the badge. -@param {string} class The class of the badge. -@param {string} style The style of the badge. - -@example {{< hextra/hero-badge >}}{{< /hextra/hero-badge >}} -*/ -}} - -{{- $link := .Get "link" -}} -{{- $external := hasPrefix $link "http" -}} -{{- $href := cond (hasPrefix $link "/") ($link | relURL) $link -}} -{{- $class := .Get "class" }} -{{- $style := .Get "style" -}} - - - {{ .Inner | markdownify }} - diff --git a/website/themes/hextra/layouts/_shortcodes/hextra/hero-button.html b/website/themes/hextra/layouts/_shortcodes/hextra/hero-button.html deleted file mode 100644 index 0295c2a0..00000000 --- a/website/themes/hextra/layouts/_shortcodes/hextra/hero-button.html +++ /dev/null @@ -1,25 +0,0 @@ -{{- /* -A shortcode for rendering a button with a link. - -@param {string} link The link of the button. -@param {string} text The text of the button. -@param {string} style The style of the button. - -@example {{< hextra/hero-button text="Get Started" link="docs" >}} -*/ -}} - -{{- $link := .Get "link" -}} -{{- $text := .Get "text" -}} -{{- $style := .Get "style" -}} - -{{- $external := hasPrefix $link "http" -}} -{{- $href := cond (hasPrefix $link "/") ($link | relURL) $link -}} - - - {{- $text -}} - diff --git a/website/themes/hextra/layouts/_shortcodes/hextra/hero-container.html b/website/themes/hextra/layouts/_shortcodes/hextra/hero-container.html deleted file mode 100644 index a7153d4c..00000000 --- a/website/themes/hextra/layouts/_shortcodes/hextra/hero-container.html +++ /dev/null @@ -1,56 +0,0 @@ -{{- /* -A simple hero container with an image on the left side. - -@param {string} class The class of the container. -@param {string} cols The number of columns (default: 2). -@param {string} image The image of the container. -@param {bool} imageCard Whether to display the image as a card (default: false). -@param {string} imageClass The class of the image. -@param {string} imageLink The link of the image. -@param {string} imageStyle The style of the image. -@param {string} imageTitle The title of the image. -@param {int} imageWidth The width of the image (default: 350). -@param {int} imageHeight The height of the image (default: 350). -@param {string} style The style of the container. - -@example {{< hextra/hero-container image="image.png" imageLink="https://example.com" imageTitle="Example Image" >}} -*/ -}} - -{{- $class := .Get "class" -}} -{{- $cols := .Get "cols" | default 2 -}} -{{- $image := .Get "image" -}} -{{- $imageCard := .Get "imageCard" | default false -}} -{{- $imageClass := .Get "imageClass" -}} -{{- $imageLink := .Get "imageLink" -}} -{{- $imageLinkExternal := hasPrefix $imageLink "http" -}} -{{- $imageStyle := .Get "imageStyle" -}} -{{- $imageTitle := .Get "imageTitle" -}} -{{- $imageWidth := .Get "imageWidth" | default 350 -}} -{{- $imageHeight := .Get "imageHeight" | default 350 -}} -{{- $style := .Get "style" -}} - -{{- $css := printf "--hextra-feature-grid-cols: %v; %s" $cols $style -}} -{{- $href := cond (hasPrefix $imageLink "/") ($imageLink | relURL) $imageLink -}} -{{- if hasPrefix $image "/" -}} - {{- $image = relURL (strings.TrimPrefix "/" $image) -}} -{{- end -}} - -
      -
      - {{ .Inner }} -
      - {{- with $image }} -
      - - - -
      - {{ end -}} -
      diff --git a/website/themes/hextra/layouts/_shortcodes/hextra/hero-headline.html b/website/themes/hextra/layouts/_shortcodes/hextra/hero-headline.html deleted file mode 100644 index 6dd313ad..00000000 --- a/website/themes/hextra/layouts/_shortcodes/hextra/hero-headline.html +++ /dev/null @@ -1,16 +0,0 @@ -{{- /* -A shortcode for displaying a hero headline. - -@param {string} style The style of the headline. - -@example {{< hextra/hero-headline >}}{{< /hextra/hero-headline >}} -*/ -}} - -{{- $style := .Get "style" -}} - -

      - {{ .Inner | markdownify }} -

      diff --git a/website/themes/hextra/layouts/_shortcodes/hextra/hero-section.html b/website/themes/hextra/layouts/_shortcodes/hextra/hero-section.html deleted file mode 100644 index 1e7131e0..00000000 --- a/website/themes/hextra/layouts/_shortcodes/hextra/hero-section.html +++ /dev/null @@ -1,20 +0,0 @@ -{{- /* -A simple hero section with a heading and optional style. - -@param {string} heading The heading level (default: h2). -@param {string} style The style of the heading. -@param {string} content The content of the heading. - -@example {{< hextra/hero-section heading="h3" >}}{{< /hextra/hero-section >}}> -*/ -}} - -{{- $style := .Get "style" -}} -{{- $heading := int (strings.TrimPrefix "h" (.Get "heading" | default "h2")) -}} -{{- $size := cond (ge $heading 4) "xl" (cond (eq $heading 3) "2xl" "4xl") -}} - - - {{ .Inner | markdownify }} - diff --git a/website/themes/hextra/layouts/_shortcodes/hextra/hero-subtitle.html b/website/themes/hextra/layouts/_shortcodes/hextra/hero-subtitle.html deleted file mode 100644 index 614c4278..00000000 --- a/website/themes/hextra/layouts/_shortcodes/hextra/hero-subtitle.html +++ /dev/null @@ -1,16 +0,0 @@ -{{- /* -A shortcode for displaying a hero subtitle. - -@param {string} style The style of the subtitle. - -@example {{< hextra/hero-subtitle >}}{{< /hextra/hero-subtitle >}} -*/ -}} - -{{- $style := .Get "style" -}} - -

      - {{ .Inner | markdownify }} -

      diff --git a/website/themes/hextra/layouts/_shortcodes/icon.html b/website/themes/hextra/layouts/_shortcodes/icon.html deleted file mode 100644 index 77f98c96..00000000 --- a/website/themes/hextra/layouts/_shortcodes/icon.html +++ /dev/null @@ -1,20 +0,0 @@ -{{- /* -Create an icon. - -@param {string} name The name of the icon. -@param {string} attributes The attributes of the icon. - -or - -@param {string} 0 The name of the icon. - -@example {{< icon name="github" >}} -@example {{< icon "github" >}} -*/ -}} -{{- $name := .Get "name" | default (.Get 0) -}} -{{- $attributes := .Get "attributes" | default "height=1em" }} -{{- $icon := partial "utils/icon.html" (dict "name" $name "attributes" $attributes) -}} - - - {{- $icon | safeHTML -}} - diff --git a/website/themes/hextra/layouts/_shortcodes/include.html b/website/themes/hextra/layouts/_shortcodes/include.html deleted file mode 100644 index 8bdf440f..00000000 --- a/website/themes/hextra/layouts/_shortcodes/include.html +++ /dev/null @@ -1,22 +0,0 @@ -{{- /* -https://github.com/gohugoio/gohugoioTheme/blob/master/layouts/shortcodes/include.html - -Renders the page using the RenderShortcode method on the Page object. - -You must call this shortcode using the {{% %}} notation. - -@param {string} (positional parameter 0) The path to the page, relative to the content directory. -@returns template.HTML - -@example {{% include "functions/_common/glob-patterns" %}} -*/}} - -{{- with .Get 0 }} - {{- with site.GetPage . }} - {{- .RenderShortcodes }} - {{- else }} - {{- errorf "The %q shortcode was unable to find %q. See %s" $.Name . $.Position }} - {{- end }} -{{- else }} - {{- errorf "The %q shortcode requires a positional parameter indicating the path of the file to include. See %s" .Name .Position }} -{{- end }} diff --git a/website/themes/hextra/layouts/_shortcodes/jupyter.html b/website/themes/hextra/layouts/_shortcodes/jupyter.html deleted file mode 100644 index 08ca5935..00000000 --- a/website/themes/hextra/layouts/_shortcodes/jupyter.html +++ /dev/null @@ -1,88 +0,0 @@ -{{- /* -Render Jupyter Notebook - -@param {string} 0 The path of the Jupyter Notebook. - -@example {{% jupyter "notebook.ipynb" %}} -*/ -}} - -{{- $path := .Get 0 -}} -{{- $data := "" -}} -{{- $page := .Page -}} - -{{- $isLocal := not (urls.Parse $path).Scheme -}} -{{- $isPage := and (eq .Page.Kind "page") (not .Page.BundleType) -}} - -{{/* https://gohugo.io/functions/transform/unmarshal/ */}} -{{- if (not $isLocal) -}} - {{- with resources.GetRemote $path -}} - {{- with unmarshal .Content -}}{{- $data = . -}}{{- end -}} - {{- else -}} - {{- errorf "Remote resource not found: %s" $path -}} - {{- end -}} -{{- else if (not $isPage) -}} - {{- with .Page.Resources.Get $path -}} - {{- with unmarshal .Content -}}{{- $data = . -}}{{- end -}} - {{- else -}} - {{- errorf "Local resource not found: %s" $path -}} - {{- end -}} -{{- else -}} - {{- with resources.Get $path -}} - {{- with unmarshal .Content -}}{{- $data = . -}}{{- end -}} - {{- else -}} - {{- errorf "Local resource not found: %s" $path -}} - {{- end -}} -{{- end -}} - -{{- $language := index $data "metadata" "language_info" "name" | default "python" -}} - -{{- with index $data "cells" -}} - {{- range $cell := . -}} - {{- if eq (index $cell "cell_type") "code" -}} - {{- $source := index $cell "source" -}} - {{- $sourceContent := (cond (reflect.IsSlice $source) (delimit $source "") $source) -}} -{{- with ($sourceContent | strings.Chomp) -}} -{{ (printf "\n\n```%s\n%s\n```\n" $language .) | safeHTML -}} -{{- end -}} - -
      - {{- $outputs := index $cell "outputs" -}} - {{- with $outputs -}} -
      -
      - {{- range $output := . -}} - {{- if eq (index $output "output_type") "display_data" -}} - {{- $data := index $output "data" -}} - {{- $image := index $data "image/png" -}} - {{- if $image -}} - image - {{- end -}} - {{- else if eq (index $output "output_type") "stream" -}} - {{- $text := index $output "text" -}} - {{- $textContent := (cond (reflect.IsSlice $text) (delimit $text "") $text) -}} -
      {{- $textContent -}}
      - {{- else if eq (index $output "output_type") "execute_result" -}} - {{- $data := index $output "data" -}} - {{- $text := index $data "text/plain" -}} - {{- $textContent := (cond (reflect.IsSlice $text) (delimit $text "") $text) -}} -
      {{- $textContent -}}
      - {{- $html := index $data "text/html" -}} - {{- if $html -}} - {{- $htmlText := delimit $html "" -}} -
      - {{- $htmlText | safeHTML -}} -
      - {{- end -}} - {{- end -}} - {{- end -}} -
      -
      - {{- end -}} -
      - {{- else if eq (index $cell "cell_type") "markdown" -}} - {{- $source := index $cell "source" }} - {{- $sourceContent := (cond (reflect.IsSlice $source) (delimit $source "") $source) }} -{{ (printf "\n%s\n" $sourceContent) | safeHTML }} - {{- end -}} - {{- end -}} -{{- end -}} diff --git a/website/themes/hextra/layouts/_shortcodes/pdf.html b/website/themes/hextra/layouts/_shortcodes/pdf.html deleted file mode 100644 index 991d6eb5..00000000 --- a/website/themes/hextra/layouts/_shortcodes/pdf.html +++ /dev/null @@ -1,15 +0,0 @@ -{{- /* -Shortcode to include a PDF file in a page. - -@param {string} 0 The path to the PDF file. - -@example {{< pdf "path/to/file.pdf" >}} -*/ -}} - -{{- $path := .Get 0 -}} -{{- $url := partial "utils/file-path" (dict "page" .Page "path" $path) -}} - - -
      - -
      diff --git a/website/themes/hextra/layouts/_shortcodes/steps.html b/website/themes/hextra/layouts/_shortcodes/steps.html deleted file mode 100644 index 1bccad1e..00000000 --- a/website/themes/hextra/layouts/_shortcodes/steps.html +++ /dev/null @@ -1,9 +0,0 @@ -{{- /* -A shortcode for creating a step list. - -@example {{% steps %}}{{% /steps %}} -*/ -}} - -
      - {{- .Inner -}} -
      diff --git a/website/themes/hextra/layouts/_shortcodes/tab.html b/website/themes/hextra/layouts/_shortcodes/tab.html deleted file mode 100644 index e57c460c..00000000 --- a/website/themes/hextra/layouts/_shortcodes/tab.html +++ /dev/null @@ -1,28 +0,0 @@ -{{- /* -Create a tab. - -@param {string} name The name of the tab. -@param {string} icon The icon of the tab. -@param {string} selected Whether the tab is selected. - -@example {{< tab name="Foo" icon="document-text" selected=true >}}content{{< /tab >}} -*/ -}} - -{{- $name := .Get "name" | default (printf "Tab %d" .Ordinal) -}} - -{{- $icon := .Get "icon" -}} - -{{- $selected := .Get "selected" -}} -{{- if .Parent.Get "defaultIndex" -}} - {{- $selected = eq .Ordinal (int (.Parent.Get "defaultIndex")) -}} -{{- end -}} - -{{- $tabs := .Parent.Store.Get "tabs" | default slice -}} -{{ .Parent.Store.Set "tabs" ($tabs | append (dict - "id" .Ordinal - "name" $name - "icon" $icon - "content" .InnerDeindent - "selected" $selected - )) --}} diff --git a/website/themes/hextra/layouts/_shortcodes/tabs.html b/website/themes/hextra/layouts/_shortcodes/tabs.html deleted file mode 100644 index efdf5a63..00000000 --- a/website/themes/hextra/layouts/_shortcodes/tabs.html +++ /dev/null @@ -1,39 +0,0 @@ -{{- /* -Create a tabbed interface with the given items. - -@example {{< tabs >}}...{{< /tabs >}} -*/ -}} - -{{- /* Unused, but required for the shortcode to work. */ -}} -{{- .Inner -}} - -{{- /* Enable syncing of tabs across the page. */ -}} -{{- $enableSync := false -}} -{{- if or (eq .Page.Params.tabs.sync false) (eq .Page.Params.tabs.sync true) -}} - {{- $enableSync = .Page.Params.tabs.sync -}} -{{- else -}} - {{- $enableSync = site.Params.page.tabs.sync | default false -}} -{{- end -}} - -{{- $tabs := ($.Store.Get "tabs") | default slice -}} - -{{- /* Compatibility with previous parameter "items". */ -}} -{{- if .Get "defaultIndex" -}} - {{- warnf "The 'defaultIndex' parameter of the 'tabs' shortcode is deprecated. Please use 'selected' on 'tab' instead." -}} -{{- end -}} - -{{- if .Get "items" -}} - {{- warnf "The 'items' parameter of the 'tabs' shortcode is deprecated. Please use 'name' on 'tab' instead." -}} - - {{- $items := split (.Get "items") "," -}} - - {{- $temp := slice -}} - {{- range $i, $item := $items -}} - {{- $tab := index $tabs $i -}} - {{- $temp = $temp | append (merge $tab (dict "name" $item)) -}} - {{- end -}} - - {{- $tabs = $temp -}} -{{- end -}} - -{{- partial "shortcodes/tabs" (dict "tabs" $tabs "enableSync" $enableSync "id" .Ordinal) -}} diff --git a/website/themes/hextra/layouts/_shortcodes/term.html b/website/themes/hextra/layouts/_shortcodes/term.html deleted file mode 100644 index 8d437bb1..00000000 --- a/website/themes/hextra/layouts/_shortcodes/term.html +++ /dev/null @@ -1,33 +0,0 @@ -{{- /* -Highlight a glossary term - -@param {string} entry Either the glossary abbreviation or the term. - -or - -@param {string} 0 Either the glossary abbreviation or the term. - -@example {{< term entry="MAC" >}} -@example {{< term "MAC" >}} -*/ -}} - -{{- $entry := .Get "entry" | default (.Get 0) -}} -{{- $entryLower := lower $entry -}} -{{- $match := dict -}} -{{- $siteData := partial "utils/hugo-compat/site-data.html" . -}} - - -{{- range (index $siteData .Site.Language.Lang "termbase") -}} - {{- if or (eq (lower .abbr) $entryLower) (eq (lower .term) $entryLower) -}} - {{- $match = . -}} - {{- break -}} - {{- end -}} -{{- end -}} - -{{- with $match }} - - {{- $entry -}} - -{{- else }} - {{- $entry -}} -{{- end }} diff --git a/website/themes/hextra/layouts/archives.html b/website/themes/hextra/layouts/archives.html deleted file mode 100644 index 14aac55e..00000000 --- a/website/themes/hextra/layouts/archives.html +++ /dev/null @@ -1,38 +0,0 @@ -{{ define "main" }} - {{- $section := site.Params.archives.section | default "blog" -}} - {{- $dateFormat := site.Params.archives.dateFormat | default "Jan 02" -}} - {{- $pages := where site.RegularPages "Section" $section -}} - {{- $groups := $pages.GroupByDate "2006" "desc" -}} -
      - {{ partial "sidebar.html" (dict "context" . "disableSidebar" true "displayPlaceholder" true) }} - {{ partial "toc.html" (dict "Params" (dict "toc" false)) }} -
      -
      -
      - {{ if .Title }}

      {{ .Title }}

      {{ end }} -
      - {{- if $groups }} - {{- range $groups }} -

      {{ .Key }}

      -
      - {{- range .Pages }} - {{- $page := . -}} -
      - -
      - {{ .Title }} - {{- with .Params.tags }} - {{ partial "tags.html" (dict "context" $page) }} - {{- end }} -
      -
      - {{- end }} -
      - {{- end }} - {{- else }} -

      {{ (T "noResultsFound") | default "No posts found." }}

      - {{- end }} -
      -
      -
      -{{- end -}} diff --git a/website/themes/hextra/layouts/baseof.html b/website/themes/hextra/layouts/baseof.html deleted file mode 100644 index 6238ee6e..00000000 --- a/website/themes/hextra/layouts/baseof.html +++ /dev/null @@ -1,16 +0,0 @@ - - - {{- partial "head.html" . -}} - - - {{- (T "skipToContent") | default "Skip to content" -}} - - {{- partial "banner.html" . -}} - {{- partial "navbar.html" . -}} - {{- block "main" . }}{{ end -}} - {{- if or (eq .Site.Params.footer.enable nil) (.Site.Params.footer.enable) }} - {{ partial "footer.html" . }} - {{ end }} - {{ partial "scripts.html" . }} - - diff --git a/website/themes/hextra/layouts/blog/list.html b/website/themes/hextra/layouts/blog/list.html deleted file mode 100644 index 848f8085..00000000 --- a/website/themes/hextra/layouts/blog/list.html +++ /dev/null @@ -1,39 +0,0 @@ -{{ define "main" }} - {{- $readMore := (T "readMore") | default "Read more →" -}} -
      - {{ partial "sidebar.html" (dict "context" . "disableSidebar" true "displayPlaceholder" true) }} -
      -
      - {{ partial "breadcrumb.html" (dict "page" . "enable" false) }} -
      - {{ if .Title }}

      {{ .Title }}

      {{ end }} -
      {{ .Content }}
      - {{- $pages := partial "utils/sort-pages" (dict "page" . "by" site.Params.blog.list.sortBy "order" site.Params.blog.list.sortOrder) -}} - {{- $pagerSize := site.Params.blog.list.pagerSize | default 10 -}} - {{- $paginator := .Paginate $pages $pagerSize -}} - {{- range $paginator.Pages }} -
      -

      {{ .Title }}

      - {{ if site.Params.blog.list.displayTags }} -
      - {{ partial "tags.html" (dict "context" .) }} -
      - {{ end }} -

      {{- partial "utils/page-description" . -}}

      -

      - - {{- $readMore -}} - -

      -

      {{ partial "utils/format-date" .Date }}

      -
      - {{ end -}} - - {{- if gt $paginator.TotalPages 1 -}} - {{ partial "components/blog-pager.html" $paginator }} - {{- end -}} -
      -
      -
      -
      -{{- end -}} diff --git a/website/themes/hextra/layouts/blog/single.html b/website/themes/hextra/layouts/blog/single.html deleted file mode 100644 index 561031c8..00000000 --- a/website/themes/hextra/layouts/blog/single.html +++ /dev/null @@ -1,55 +0,0 @@ -{{ define "main" }} -
      - {{ partial "sidebar.html" (dict "context" . "disableSidebar" true "displayPlaceholder" true) }} - {{ partial "toc.html" . }} -
      -
      - {{ partial "breadcrumb.html" (dict "page" . "enable" true) }} - {{ if .Title }} -
      -

      {{ .Title }}

      - {{ partial "components/page-context-menu" . }} -
      - {{ end }} -
      - {{- with $date := .Date }}{{ partial "utils/format-date" $date }}{{ end -}} - {{- $lazyLoading := site.Params.enableImageLazyLoading | default true -}} - {{ if and .Date .Params.authors }}·{{ end -}} - {{- with $.Params.authors -}} - {{- range $i, $author := . -}} - {{- if reflect.IsMap $author -}} - {{- if and $i (not $author.image) }},{{ end -}} - - {{- with $image := $author.image }} - {{- $isLocal := not (urls.Parse $image).Scheme -}} - {{- $startsWithSlash := hasPrefix $image "/" -}} - {{- if and $isLocal $startsWithSlash }} - {{- $image = (relURL (strings.TrimPrefix "/" $image)) -}} - {{ end -}} - {{ $author.name }} - {{ end -}} -
      {{ $author.name }}
      -
      - {{- else -}} - {{- if $i }},{{ end -}}{{ $author }} - {{- end -}} - {{- end -}} - {{- end -}} -
      -
      - {{ .Content }} -
      - {{- partial "components/last-updated.html" . -}} - {{- if (site.Params.blog.article.displayPagination | default true) -}} - {{- .Store.Set "reversePagination" (.Params.reversePagination | default true) -}} - {{- partial "components/pager.html" . -}} - {{ end }} - {{- partial "components/comments.html" . -}} -
      -
      -
      -{{ end }} diff --git a/website/themes/hextra/layouts/docs/list.html b/website/themes/hextra/layouts/docs/list.html deleted file mode 100644 index c921e6c1..00000000 --- a/website/themes/hextra/layouts/docs/list.html +++ /dev/null @@ -1,25 +0,0 @@ -{{ define "main" }} -
      - {{ partial "sidebar.html" (dict "context" .) }} - {{ partial "toc.html" . }} -
      -
      - {{ partial "breadcrumb.html" (dict "page" . "enable" true) }} -
      - {{ if .Title }} -
      -

      {{ .Title }}

      - {{ partial "components/page-context-menu" . }} -
      - {{ end }} - {{ .Content }} -
      - {{ partial "components/last-updated.html" . }} - {{- if (site.Params.page.displayPagination | default true) -}} - {{- partial "components/pager.html" . -}} - {{- end -}} - {{ partial "components/comments.html" . }} -
      -
      -
      -{{ end }} diff --git a/website/themes/hextra/layouts/docs/single.html b/website/themes/hextra/layouts/docs/single.html deleted file mode 100644 index 40f2eabd..00000000 --- a/website/themes/hextra/layouts/docs/single.html +++ /dev/null @@ -1,25 +0,0 @@ -{{ define "main" }} -
      - {{ partial "sidebar.html" (dict "context" .) }} - {{ partial "toc.html" . }} -
      -
      - {{ partial "breadcrumb.html" (dict "page" . "enable" true) }} -
      - {{ if .Title }} -
      -

      {{ .Title }}

      - {{ partial "components/page-context-menu" . }} -
      - {{ end }} - {{ .Content }} -
      - {{ partial "components/last-updated.html" . }} - {{- if (site.Params.page.displayPagination | default true) -}} - {{- partial "components/pager.html" . -}} - {{- end -}} - {{ partial "components/comments.html" . }} -
      -
      -
      -{{ end }} \ No newline at end of file diff --git a/website/themes/hextra/layouts/glossary.html b/website/themes/hextra/layouts/glossary.html deleted file mode 100644 index d2357413..00000000 --- a/website/themes/hextra/layouts/glossary.html +++ /dev/null @@ -1,26 +0,0 @@ -{{ define "main" }} -
      - {{ partial "sidebar.html" (dict "context" . "disableSidebar" true "displayPlaceholder" true) }} - {{ partial "toc.html" (dict "Params" (dict "toc" false)) }} -
      -
      - {{ if .Title }}

      {{ .Title }}

      {{ end }} -
      - {{- $siteData := partial "utils/hugo-compat/site-data.html" . -}} - {{- with (index $siteData .Site.Language.Lang "termbase") -}} -
      - {{- range sort . "term" -}} -
      - {{- .term }}{{ with .abbr }} ({{ . -}}){{ end -}} -
      -
      - {{- .definition -}} -
      - {{- end -}} -
      - {{- end -}} -
      -
      -
      -
      -{{ end }} diff --git a/website/themes/hextra/layouts/glossary.markdown.md b/website/themes/hextra/layouts/glossary.markdown.md deleted file mode 100644 index 9e3197ff..00000000 --- a/website/themes/hextra/layouts/glossary.markdown.md +++ /dev/null @@ -1,3 +0,0 @@ -{{- .Title | replaceRE "\n" " " | printf "# %s" -}} - -{{ .RawContent }} diff --git a/website/themes/hextra/layouts/hextra-home.html b/website/themes/hextra/layouts/hextra-home.html deleted file mode 100644 index 265f84e7..00000000 --- a/website/themes/hextra/layouts/hextra-home.html +++ /dev/null @@ -1,10 +0,0 @@ -{{ define "main" }} -
      - {{ partial "sidebar.html" (dict "context" . "disableSidebar" true) }} -
      -
      - {{ .Content }} -
      -
      -
      -{{ end }} diff --git a/website/themes/hextra/layouts/home.html b/website/themes/hextra/layouts/home.html deleted file mode 100644 index 47b9608a..00000000 --- a/website/themes/hextra/layouts/home.html +++ /dev/null @@ -1,14 +0,0 @@ -{{ define "main" }} -
      - {{ partial "sidebar.html" (dict "context" . "disableSidebar" true "displayPlaceholder" true) }} - {{ partial "toc.html" . }} -
      -
      - {{ if .Title }}

      {{ .Title }}

      {{ end }} -
      - {{ .Content }} -
      -
      -
      -
      -{{ end }} diff --git a/website/themes/hextra/layouts/list.html b/website/themes/hextra/layouts/list.html deleted file mode 100644 index 504eea2d..00000000 --- a/website/themes/hextra/layouts/list.html +++ /dev/null @@ -1,18 +0,0 @@ -{{ define "main" }} -
      - {{ partial "sidebar.html" (dict "context" .) }} - {{ partial "toc.html" . }} -
      -
      - {{ partial "breadcrumb.html" (dict "page" . "enable" false) }} -
      - {{ if .Title }}

      {{ .Title }}

      {{ end }} - {{ .Content }} -
      -
      - {{ partial "components/last-updated.html" . }} - {{ partial "components/comments.html" . }} -
      -
      -
      -{{ end }} \ No newline at end of file diff --git a/website/themes/hextra/layouts/list.rss.xml b/website/themes/hextra/layouts/list.rss.xml deleted file mode 100644 index 3586d3b6..00000000 --- a/website/themes/hextra/layouts/list.rss.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - {{ .Site.Title }} – {{ .Title }} - {{ .Permalink }} - Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} - Hugo -- gohugo.io{{ with partial "utils/hugo-compat/language-locale.html" .Site.Language }} - {{.}}{{end}}{{ with .Site.Params.Author.email }} - {{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Params.Author.email }} - {{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} - {{.}}{{end}}{{ if not .Date.IsZero }} - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} - {{ with .OutputFormats.Get "RSS" }} - {{ printf "" .Permalink .MediaType | safeHTML }} - {{ end }} - {{ if not $.Section }} - {{ $sections := .Site.Params.rss.sections | default (slice "blog") }} - {{ .Store.Set "rssPages" (first 50 (where $.Site.RegularPages "Type" "in" $sections )) }} - {{ else }} - {{ if $.Parent.IsHome }} - {{ .Store.Set "rssPages" (first 50 (where $.Site.RegularPages "Type" $.Section )) }} - {{ else }} - {{ .Store.Set "rssPages" (first 50 $.Pages) }} - {{ end }} - {{ end }} - {{ range (.Store.Get "rssPages") }} - - {{ .Title }} - {{ .Permalink }} - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} - {{ with .Site.Params.Author.email }}{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}{{end}} - {{ .Permalink }} - - {{ $img := (.Resources.ByType "image").GetMatch "*featured*" }} - {{ with $img }} - {{ $img := .Resize "640x" }} - {{ printf "]]>" $img.Permalink $img.Width $img.Height | safeHTML }} - {{ end }} - {{ .Content | html }} - - - {{ end }} - - diff --git a/website/themes/hextra/layouts/llms.txt b/website/themes/hextra/layouts/llms.txt deleted file mode 100644 index 970e2062..00000000 --- a/website/themes/hextra/layouts/llms.txt +++ /dev/null @@ -1,35 +0,0 @@ -# {{ .Site.Title }} - -> {{ .Site.Params.description | default "" }} - -{{ range where site.Sections "Params.llms" "ne" false }} -{{- template "llms-section-tree" dict "context" . "level" 2 }} -{{ end }} - -{{- $rootPages := where (where site.RegularPages "Section" "") "Params.llms" "ne" false }} -{{- if $rootPages }} -## Root Pages -{{- range $rootPages }} -- [{{ .Title }}]({{ .Permalink }}): {{ .Summary | plainify | truncate 100 | strings.TrimSpace }}{{ if .Date }} - Published {{ .Date.Format "2006-01-02" }}{{ end }} -{{- end }} -{{- end }} - ---- -Generated on {{ now.Format "2006-01-02 15:04:05 UTC" }} -Site: {{ .Site.BaseURL }} - -{{- define "llms-section-tree" -}} -{{- $context := .context -}} -{{- $level := .level | default 2 -}} -{{- $headerHashes := strings.Repeat $level "#" -}} -{{- "\n" -}} -{{ $headerHashes }} {{ $context.Title }} - -{{- range where $context.RegularPages "Params.llms" "ne" false }} -- [{{ .Title }}]({{ .Permalink }}): {{ .Summary | plainify | truncate 100 | strings.TrimSpace }}{{ if .Date }} - Published {{ .Date.Format "2006-01-02" }}{{ end }} -{{- end }} - -{{- range where $context.Sections "Params.llms" "ne" false }} -{{ template "llms-section-tree" dict "context" . "level" (add $level 1) }} -{{- end }} -{{- end -}} diff --git a/website/themes/hextra/layouts/page.markdown.md b/website/themes/hextra/layouts/page.markdown.md deleted file mode 100644 index 46afc77e..00000000 --- a/website/themes/hextra/layouts/page.markdown.md +++ /dev/null @@ -1,2 +0,0 @@ -{{- .Title | replaceRE "\n" " " | printf "# %s" }} -{{ .RawContent }} diff --git a/website/themes/hextra/layouts/section.markdown.md b/website/themes/hextra/layouts/section.markdown.md deleted file mode 100644 index 46afc77e..00000000 --- a/website/themes/hextra/layouts/section.markdown.md +++ /dev/null @@ -1,2 +0,0 @@ -{{- .Title | replaceRE "\n" " " | printf "# %s" }} -{{ .RawContent }} diff --git a/website/themes/hextra/layouts/single.html b/website/themes/hextra/layouts/single.html deleted file mode 100644 index 8244123b..00000000 --- a/website/themes/hextra/layouts/single.html +++ /dev/null @@ -1,19 +0,0 @@ -{{ define "main" }} -
      - {{ partial "sidebar.html" (dict "context" . "disableSidebar" true "displayPlaceholder" true) }} - {{ partial "toc.html" . }} -
      -
      - {{ partial "breadcrumb.html" (dict "page" . "enable" false) }} -
      - {{ if .Title }}

      {{ .Title }}

      {{ end }} -
      -
      - {{ .Content }} -
      -
      - {{ partial "components/comments.html" . }} -
      -
      -
      -{{ end }} diff --git a/website/themes/hextra/layouts/taxonomy.html b/website/themes/hextra/layouts/taxonomy.html deleted file mode 100644 index 490f4ea8..00000000 --- a/website/themes/hextra/layouts/taxonomy.html +++ /dev/null @@ -1,30 +0,0 @@ -{{ define "main" }} -
      - {{ partial "sidebar.html" (dict "context" . "disableSidebar" true "displayPlaceholder" true) }} - {{ partial "toc.html" (dict "Params" (dict "toc" false)) }} - -
      -{{ end }} diff --git a/website/themes/hextra/layouts/term.html b/website/themes/hextra/layouts/term.html deleted file mode 100644 index eee338da..00000000 --- a/website/themes/hextra/layouts/term.html +++ /dev/null @@ -1,33 +0,0 @@ -{{ define "main" }} -
      - {{ partial "sidebar.html" (dict "context" . "disableSidebar" true "displayPlaceholder" true) }} - {{ partial "toc.html" (dict "Params" (dict "toc" false)) }} -
      -
      -
      - {{ if .Title }}

      {{ .Title }}

      {{ end }} -
      -
      - {{ .Content }} -
      -
      - {{- range .Pages -}} -
      -

      - - {{ .Title }} - -

      -

      {{ partial "utils/format-date" .Date }}

      -
      - {{- end -}} -
      -
      -
      -
      -{{ end }} diff --git a/website/themes/hextra/layouts/wide.html b/website/themes/hextra/layouts/wide.html deleted file mode 100644 index fce2810c..00000000 --- a/website/themes/hextra/layouts/wide.html +++ /dev/null @@ -1,12 +0,0 @@ -{{ define "main" }} -
      - {{ partial "sidebar.html" (dict "context" . "disableSidebar" true "displayPlaceholder" false) }} -
      -
      - {{ if .Title }}

      {{ .Title }}

      {{ end }} -
      - {{ .Content }} -
      -
      -
      -{{ end }} \ No newline at end of file diff --git a/website/themes/hextra/layouts/wide.markdown.md b/website/themes/hextra/layouts/wide.markdown.md deleted file mode 100644 index 9e3197ff..00000000 --- a/website/themes/hextra/layouts/wide.markdown.md +++ /dev/null @@ -1,3 +0,0 @@ -{{- .Title | replaceRE "\n" " " | printf "# %s" -}} - -{{ .RawContent }} diff --git a/website/themes/hextra/netlify.toml b/website/themes/hextra/netlify.toml deleted file mode 100644 index 1788f059..00000000 --- a/website/themes/hextra/netlify.toml +++ /dev/null @@ -1,12 +0,0 @@ -[build] -publish = "docs/public" -command = "cd docs && hugo --gc --minify --themesDir ../.. -b ${DEPLOY_PRIME_URL}" - -# Always trigger a rebuild, even if the files haven't changed. -# See https://docs.netlify.com/configure-builds/file-based-configuration/#ignore-builds -ignore = "false" - -[build.environment] -HUGO_VERSION = "0.156.0" -GO_VERSION = "1.26.0" -NODE_VERSION = "24.13.1" diff --git a/website/themes/hextra/package-lock.json b/website/themes/hextra/package-lock.json deleted file mode 100644 index b6f28ca7..00000000 --- a/website/themes/hextra/package-lock.json +++ /dev/null @@ -1,1564 +0,0 @@ -{ - "name": "hextra", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "devDependencies": { - "@axe-core/playwright": "^4.11.3", - "@playwright/test": "^1.60.0", - "@tailwindcss/postcss": "^4.3.0", - "postcss-cli": "^11.0.1", - "prettier": "^3.8.3", - "prettier-plugin-go-template": "^0.0.15", - "tailwindcss": "^4.3.0" - } - }, - "node_modules/@alloc/quick-lru": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz", - "integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@axe-core/playwright": { - "version": "4.11.3", - "resolved": "https://registry.npmjs.org/@axe-core/playwright/-/playwright-4.11.3.tgz", - "integrity": "sha512-h/kfksv4F0cVIDlKpT4700OehdRgpvuVskuQ2nb7/JmtWUXpe9ftHAPtwyXGvVSsa6SJ64A9ER7Zrzc/sIvC4w==", - "dev": true, - "license": "MPL-2.0", - "dependencies": { - "axe-core": "~4.11.4" - }, - "peerDependencies": { - "playwright-core": ">= 1.0.0" - } - }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.13", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", - "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.0", - "@jridgewell/trace-mapping": "^0.3.24" - } - }, - "node_modules/@jridgewell/remapping": { - "version": "2.3.5", - "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", - "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.24" - } - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", - "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.5", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", - "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", - "dev": true, - "license": "MIT" - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.31", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", - "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - }, - "node_modules/@playwright/test": { - "version": "1.60.0", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.60.0.tgz", - "integrity": "sha512-O71yZIbAh/PxDMNGns37GHBIfrVkEVyn+AXyIa5dOTfb4/xNvRWV+Vv/NMbNCtODB/pO7vLlF2OTmMVLhmr7Ag==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "playwright": "1.60.0" - }, - "bin": { - "playwright": "cli.js" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/@tailwindcss/node": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.3.0.tgz", - "integrity": "sha512-aFb4gUhFOgdh9AXo4IzBEOzBkkAxm9VigwDJnMIYv3lcfXCJVesNfbEaBl4BNgVRyid92AmdviqwBUBRKSeY3g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/remapping": "^2.3.5", - "enhanced-resolve": "^5.21.0", - "jiti": "^2.6.1", - "lightningcss": "1.32.0", - "magic-string": "^0.30.21", - "source-map-js": "^1.2.1", - "tailwindcss": "4.3.0" - } - }, - "node_modules/@tailwindcss/oxide": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.3.0.tgz", - "integrity": "sha512-F7HZGBeN9I0/AuuJS5PwcD8xayx5ri5GhjYUDBEVYUkexyA/giwbDNjRVrxSezE3T250OU2K/wp/ltWx3UOefg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 20" - }, - "optionalDependencies": { - "@tailwindcss/oxide-android-arm64": "4.3.0", - "@tailwindcss/oxide-darwin-arm64": "4.3.0", - "@tailwindcss/oxide-darwin-x64": "4.3.0", - "@tailwindcss/oxide-freebsd-x64": "4.3.0", - "@tailwindcss/oxide-linux-arm-gnueabihf": "4.3.0", - "@tailwindcss/oxide-linux-arm64-gnu": "4.3.0", - "@tailwindcss/oxide-linux-arm64-musl": "4.3.0", - "@tailwindcss/oxide-linux-x64-gnu": "4.3.0", - "@tailwindcss/oxide-linux-x64-musl": "4.3.0", - "@tailwindcss/oxide-wasm32-wasi": "4.3.0", - "@tailwindcss/oxide-win32-arm64-msvc": "4.3.0", - "@tailwindcss/oxide-win32-x64-msvc": "4.3.0" - } - }, - "node_modules/@tailwindcss/oxide-android-arm64": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.3.0.tgz", - "integrity": "sha512-TJPiq67tKlLuObP6RkwvVGDoxCMBVtDgKkLfa/uyj7/FyxvQwHS+UOnVrXXgbEsfUaMgiVvC4KbJnRr26ho4Ng==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-darwin-arm64": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.3.0.tgz", - "integrity": "sha512-oMN/WZRb+SO37BmUElEgeEWuU8E/HXRkiODxJxLe1UTHVXLrdVSgfaJV7pSlhRGMSOiXLuxTIjfsF3wYvz8cgQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-darwin-x64": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.3.0.tgz", - "integrity": "sha512-N6CUmu4a6bKVADfw77p+iw6Yd9Q3OBhe0veaDX+QazfuVYlQsHfDgxBrsjQ/IW+zywL8mTrNd0SdJT/zgtvMdA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-freebsd-x64": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.3.0.tgz", - "integrity": "sha512-zDL5hBkQdH5C6MpqbK3gQAgP80tsMwSI26vjOzjJtNCMUo0lFgOItzHKBIupOZNQxt3ouPH7RPhvNhiTfCe5CQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.3.0.tgz", - "integrity": "sha512-R06HdNi7A7OEoMsf6d4tjZ71RCWnZQPHj2mnotSFURjNLdBC+cIgXQ7l81CqeoiQftjf6OOblxXMInMgN2VzMA==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-linux-arm64-gnu": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.3.0.tgz", - "integrity": "sha512-qTJHELX8jetjhRQHCLilkVLmybpzNQAtaI/gaoVoidn/ufbNDbAo8KlK2J+yPoc8wQxvDxCmh/5lr8nC1+lTbg==", - "cpu": [ - "arm64" - ], - "dev": true, - "libc": [ - "glibc" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-linux-arm64-musl": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.3.0.tgz", - "integrity": "sha512-Z6sukiQsngnWO+l39X4pPbiWT81IC+PLKF+PHxIlyZbGNb9MODfYlXEVlFvej5BOZInWX01kVyzeLvHsXhfczQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "libc": [ - "musl" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-linux-x64-gnu": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.3.0.tgz", - "integrity": "sha512-DRNdQRpSGzRGfARVuVkxvM8Q12nh19l4BF/G7zGA1oe+9wcC6saFBHTISrpIcKzhiXtSrlSrluCfvMuledoCTQ==", - "cpu": [ - "x64" - ], - "dev": true, - "libc": [ - "glibc" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-linux-x64-musl": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.3.0.tgz", - "integrity": "sha512-Z0IADbDo8bh6I7h2IQMx601AdXBLfFpEdUotft86evd/8ZPflZe9COPO8Q1vw+pfLWIUo9zN/JGZvwuAJqduqg==", - "cpu": [ - "x64" - ], - "dev": true, - "libc": [ - "musl" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-wasm32-wasi": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.3.0.tgz", - "integrity": "sha512-HNZGOUxEmElksYR7S6sC5jTeNGpobAsy9u7Gu0AskJ8/20FR9GqebUyB+HBcU/ax6BHuiuJi+Oda4B+YX6H1yA==", - "bundleDependencies": [ - "@napi-rs/wasm-runtime", - "@emnapi/core", - "@emnapi/runtime", - "@tybys/wasm-util", - "@emnapi/wasi-threads", - "tslib" - ], - "cpu": [ - "wasm32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "@emnapi/core": "^1.10.0", - "@emnapi/runtime": "^1.10.0", - "@emnapi/wasi-threads": "^1.2.1", - "@napi-rs/wasm-runtime": "^1.1.4", - "@tybys/wasm-util": "^0.10.1", - "tslib": "^2.8.1" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@tailwindcss/oxide-win32-arm64-msvc": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.3.0.tgz", - "integrity": "sha512-Pe+RPVTi1T+qymuuRpcdvwSVZjnll/f7n8gBxMMh3xLTctMDKqpdfGimbMyioqtLhUYZxdJ9wGNhV7MKHvgZsQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/oxide-win32-x64-msvc": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.3.0.tgz", - "integrity": "sha512-Mvrf2kXW/yeW/OTezZlCGOirXRcUuLIBx/5Y12BaPM7wJoryG6dfS/NJL8aBPqtTEx/Vm4T4vKzFUcKDT+TKUA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 20" - } - }, - "node_modules/@tailwindcss/postcss": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/@tailwindcss/postcss/-/postcss-4.3.0.tgz", - "integrity": "sha512-Jm05Tjx+9yCLGv5qw1c+84Psds8MnyrEQYCB+FFk2lgGiUjlRqdxke4mVTuYrj2xnVZqKim2Apr5ySuQRYAw/w==", - "dev": true, - "license": "MIT", - "dependencies": { - "@alloc/quick-lru": "^5.2.0", - "@tailwindcss/node": "4.3.0", - "@tailwindcss/oxide": "4.3.0", - "postcss": "^8.5.10", - "tailwindcss": "4.3.0" - } - }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "dev": true, - "license": "ISC", - "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/axe-core": { - "version": "4.11.4", - "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.11.4.tgz", - "integrity": "sha512-KunSNx+TVpkAw/6ULfhnx+HWRecjqZGTOyquAoWHYLRSdK1tB5Ihce1ZW+UY3fj33bYAFWPu7W/GRSmmrCGuxA==", - "dev": true, - "license": "MPL-2.0", - "engines": { - "node": ">=4" - } - }, - "node_modules/binary-extensions": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", - "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/braces": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", - "dev": true, - "license": "MIT", - "dependencies": { - "fill-range": "^7.1.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/chokidar": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", - "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", - "dev": true, - "license": "MIT", - "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "engines": { - "node": ">= 8.10.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/cliui": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", - "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", - "dev": true, - "license": "ISC", - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "license": "MIT" - }, - "node_modules/dependency-graph": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/dependency-graph/-/dependency-graph-1.0.0.tgz", - "integrity": "sha512-cW3gggJ28HZ/LExwxP2B++aiKxhJXMSIt9K48FOXQkm+vuG5gyatXnLsONRJdzO/7VfjDIiaOOa/bs4l464Lwg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/detect-libc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", - "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=8" - } - }, - "node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true, - "license": "MIT" - }, - "node_modules/enhanced-resolve": { - "version": "5.21.4", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.21.4.tgz", - "integrity": "sha512-wE4fDO8OjJhrPFH69HUQStq5oKvGRTNXEyW+k5C/pUQLASSsTu7obd2V3GvCDgPcY9AWjhJ4jz9Kh7iRvrxhJg==", - "dev": true, - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.2.4", - "tapable": "^2.3.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/escalade": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", - "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/fill-range": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", - "dev": true, - "license": "MIT", - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/fs-extra": { - "version": "11.3.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.0.tgz", - "integrity": "sha512-Z4XaCL6dUDHfP/jT25jJKMmtxvuwbkrD1vNSMFlo9lNLY2c5FHYSQgHPRZUjAB26TpDEoW9HCOgplrdbaPV/ew==", - "dev": true, - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=14.14" - } - }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true, - "license": "ISC", - "engines": { - "node": "6.* || 8.* || >= 10.*" - } - }, - "node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", - "dev": true, - "license": "ISC" - }, - "node_modules/is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "dev": true, - "license": "MIT", - "dependencies": { - "binary-extensions": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/jiti": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.6.1.tgz", - "integrity": "sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==", - "dev": true, - "license": "MIT", - "bin": { - "jiti": "lib/jiti-cli.mjs" - } - }, - "node_modules/jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/lightningcss": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz", - "integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==", - "dev": true, - "license": "MPL-2.0", - "dependencies": { - "detect-libc": "^2.0.3" - }, - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - }, - "optionalDependencies": { - "lightningcss-android-arm64": "1.32.0", - "lightningcss-darwin-arm64": "1.32.0", - "lightningcss-darwin-x64": "1.32.0", - "lightningcss-freebsd-x64": "1.32.0", - "lightningcss-linux-arm-gnueabihf": "1.32.0", - "lightningcss-linux-arm64-gnu": "1.32.0", - "lightningcss-linux-arm64-musl": "1.32.0", - "lightningcss-linux-x64-gnu": "1.32.0", - "lightningcss-linux-x64-musl": "1.32.0", - "lightningcss-win32-arm64-msvc": "1.32.0", - "lightningcss-win32-x64-msvc": "1.32.0" - } - }, - "node_modules/lightningcss-android-arm64": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.32.0.tgz", - "integrity": "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-darwin-arm64": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.32.0.tgz", - "integrity": "sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-darwin-x64": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.32.0.tgz", - "integrity": "sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-freebsd-x64": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.32.0.tgz", - "integrity": "sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-linux-arm-gnueabihf": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.32.0.tgz", - "integrity": "sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-linux-arm64-gnu": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.32.0.tgz", - "integrity": "sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "libc": [ - "glibc" - ], - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-linux-arm64-musl": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.32.0.tgz", - "integrity": "sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==", - "cpu": [ - "arm64" - ], - "dev": true, - "libc": [ - "musl" - ], - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-linux-x64-gnu": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz", - "integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==", - "cpu": [ - "x64" - ], - "dev": true, - "libc": [ - "glibc" - ], - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-linux-x64-musl": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz", - "integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==", - "cpu": [ - "x64" - ], - "dev": true, - "libc": [ - "musl" - ], - "license": "MPL-2.0", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-win32-arm64-msvc": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz", - "integrity": "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lightningcss-win32-x64-msvc": { - "version": "1.32.0", - "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz", - "integrity": "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MPL-2.0", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 12.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/lilconfig": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.3.tgz", - "integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/antonk52" - } - }, - "node_modules/magic-string": { - "version": "0.30.21", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", - "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.5" - } - }, - "node_modules/nanoid": { - "version": "3.3.11", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", - "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "bin": { - "nanoid": "bin/nanoid.cjs" - }, - "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" - } - }, - "node_modules/normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/picocolors": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", - "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "dev": true, - "license": "ISC" - }, - "node_modules/picomatch": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz", - "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/pify": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/playwright": { - "version": "1.60.0", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.60.0.tgz", - "integrity": "sha512-hheHdokM8cdqCb0lcE3s+zT4t4W+vvjpGxsZlDnikarzx8tSzMebh3UiFtgqwFwnTnjYQcsyMF8ei2mCO/tpeA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "playwright-core": "1.60.0" - }, - "bin": { - "playwright": "cli.js" - }, - "engines": { - "node": ">=18" - }, - "optionalDependencies": { - "fsevents": "2.3.2" - } - }, - "node_modules/playwright-core": { - "version": "1.60.0", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.60.0.tgz", - "integrity": "sha512-9bW6zvX/m0lEbgTKJ6YppOKx8H3VOPBMOCFh2irXFOT4BbHgrx5hPjwJYLT40Lu+4qtD36qKc/Hn56StUW57IA==", - "dev": true, - "license": "Apache-2.0", - "bin": { - "playwright-core": "cli.js" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/playwright/node_modules/fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/postcss": { - "version": "8.5.14", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.14.tgz", - "integrity": "sha512-SoSL4+OSEtR99LHFZQiJLkT59C5B1amGO1NzTwj7TT1qCUgUO6hxOvzkOYxD+vMrXBM3XJIKzokoERdqQq/Zmg==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/postcss" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "nanoid": "^3.3.11", - "picocolors": "^1.1.1", - "source-map-js": "^1.2.1" - }, - "engines": { - "node": "^10 || ^12 || >=14" - } - }, - "node_modules/postcss-cli": { - "version": "11.0.1", - "resolved": "https://registry.npmjs.org/postcss-cli/-/postcss-cli-11.0.1.tgz", - "integrity": "sha512-0UnkNPSayHKRe/tc2YGW6XnSqqOA9eqpiRMgRlV1S6HdGi16vwJBx7lviARzbV1HpQHqLLRH3o8vTcB0cLc+5g==", - "dev": true, - "license": "MIT", - "dependencies": { - "chokidar": "^3.3.0", - "dependency-graph": "^1.0.0", - "fs-extra": "^11.0.0", - "picocolors": "^1.0.0", - "postcss-load-config": "^5.0.0", - "postcss-reporter": "^7.0.0", - "pretty-hrtime": "^1.0.3", - "read-cache": "^1.0.0", - "slash": "^5.0.0", - "tinyglobby": "^0.2.12", - "yargs": "^17.0.0" - }, - "bin": { - "postcss": "index.js" - }, - "engines": { - "node": ">=18" - }, - "peerDependencies": { - "postcss": "^8.0.0" - } - }, - "node_modules/postcss-load-config": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-5.1.0.tgz", - "integrity": "sha512-G5AJ+IX0aD0dygOE0yFZQ/huFFMSNneyfp0e3/bT05a8OfPC5FUoZRPfGijUdGOJNMewJiwzcHJXFafFzeKFVA==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "lilconfig": "^3.1.1", - "yaml": "^2.4.2" - }, - "engines": { - "node": ">= 18" - }, - "peerDependencies": { - "jiti": ">=1.21.0", - "postcss": ">=8.0.9", - "tsx": "^4.8.1" - }, - "peerDependenciesMeta": { - "jiti": { - "optional": true - }, - "postcss": { - "optional": true - }, - "tsx": { - "optional": true - } - } - }, - "node_modules/postcss-reporter": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/postcss-reporter/-/postcss-reporter-7.1.0.tgz", - "integrity": "sha512-/eoEylGWyy6/DOiMP5lmFRdmDKThqgn7D6hP2dXKJI/0rJSO1ADFNngZfDzxL0YAxFvws+Rtpuji1YIHj4mySA==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "dependencies": { - "picocolors": "^1.0.0", - "thenby": "^1.3.4" - }, - "engines": { - "node": ">=10" - }, - "peerDependencies": { - "postcss": "^8.1.0" - } - }, - "node_modules/prettier": { - "version": "3.8.3", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.8.3.tgz", - "integrity": "sha512-7igPTM53cGHMW8xWuVTydi2KO233VFiTNyF5hLJqpilHfmn8C8gPf+PS7dUT64YcXFbiMGZxS9pCSxL/Dxm/Jw==", - "dev": true, - "license": "MIT", - "bin": { - "prettier": "bin/prettier.cjs" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" - } - }, - "node_modules/prettier-plugin-go-template": { - "version": "0.0.15", - "resolved": "https://registry.npmjs.org/prettier-plugin-go-template/-/prettier-plugin-go-template-0.0.15.tgz", - "integrity": "sha512-WqU92E1NokWYNZ9mLE6ijoRg6LtIGdLMePt2C7UBDjXeDH9okcRI3zRqtnWR4s5AloiqyvZ66jNBAa9tmRY5EQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ulid": "^2.3.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "prettier": "^3.0.0" - } - }, - "node_modules/pretty-hrtime": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/pretty-hrtime/-/pretty-hrtime-1.0.3.tgz", - "integrity": "sha512-66hKPCr+72mlfiSjlEB1+45IjXSqvVAIy6mocupoww4tBFE9R9IhwwUGoI4G++Tc9Aq+2rxOt0RFU6gPcrte0A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/read-cache": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", - "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==", - "dev": true, - "license": "MIT", - "dependencies": { - "pify": "^2.3.0" - } - }, - "node_modules/readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "dev": true, - "license": "MIT", - "dependencies": { - "picomatch": "^2.2.1" - }, - "engines": { - "node": ">=8.10.0" - } - }, - "node_modules/require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/slash": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-5.1.0.tgz", - "integrity": "sha512-ZA6oR3T/pEyuqwMgAKT0/hAv8oAXckzbkmR0UkUosQ+Mc4RxGoJkRmwHgHufaenlyAgE1Mxgpdcrf75y6XcnDg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/source-map-js": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", - "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/tailwindcss": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.3.0.tgz", - "integrity": "sha512-y6nxMGB1nMW9R6k96e5gdIFzcfL/gTJRNaqGes1YvkLnPVXzWgbqFF2yLC0T8G774n24cx3Pe8XrKoniCOAH+Q==", - "dev": true, - "license": "MIT" - }, - "node_modules/tapable": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.3.tgz", - "integrity": "sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/webpack" - } - }, - "node_modules/thenby": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/thenby/-/thenby-1.3.4.tgz", - "integrity": "sha512-89Gi5raiWA3QZ4b2ePcEwswC3me9JIg+ToSgtE0JWeCynLnLxNr/f9G+xfo9K+Oj4AFdom8YNJjibIARTJmapQ==", - "dev": true, - "license": "Apache-2.0" - }, - "node_modules/tinyglobby": { - "version": "0.2.14", - "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.14.tgz", - "integrity": "sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "fdir": "^6.4.4", - "picomatch": "^4.0.2" - }, - "engines": { - "node": ">=12.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/SuperchupuDev" - } - }, - "node_modules/tinyglobby/node_modules/fdir": { - "version": "6.4.6", - "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.6.tgz", - "integrity": "sha512-hiFoqpyZcfNm1yc4u8oWCf9A2c4D3QjCrks3zmoVKVxpQRzmPNar1hUJcBG2RQHvEVGDN+Jm81ZheVLAQMK6+w==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "picomatch": "^3 || ^4" - }, - "peerDependenciesMeta": { - "picomatch": { - "optional": true - } - } - }, - "node_modules/tinyglobby/node_modules/picomatch": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz", - "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/ulid": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/ulid/-/ulid-2.4.0.tgz", - "integrity": "sha512-fIRiVTJNcSRmXKPZtGzFQv9WRrZ3M9eoptl/teFJvjOzmpU+/K/JH6HZ8deBfb5vMEpicJcLn7JmvdknlMq7Zg==", - "dev": true, - "license": "MIT", - "bin": { - "ulid": "bin/cli.js" - } - }, - "node_modules/universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=10" - } - }, - "node_modules/yaml": { - "version": "2.8.3", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.3.tgz", - "integrity": "sha512-AvbaCLOO2Otw/lW5bmh9d/WEdcDFdQp2Z2ZUH3pX9U2ihyUY0nvLv7J6TrWowklRGPYbB/IuIMfYgxaCPg5Bpg==", - "dev": true, - "license": "ISC", - "bin": { - "yaml": "bin.mjs" - }, - "engines": { - "node": ">= 14.6" - }, - "funding": { - "url": "https://github.com/sponsors/eemeli" - } - }, - "node_modules/yargs": { - "version": "17.7.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", - "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", - "dev": true, - "license": "MIT", - "dependencies": { - "cliui": "^8.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/yargs-parser": { - "version": "21.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=12" - } - } - } -} diff --git a/website/themes/hextra/package.json b/website/themes/hextra/package.json deleted file mode 100644 index 37628762..00000000 --- a/website/themes/hextra/package.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "scripts": { - "dev:theme": "hugo server --logLevel=debug --config=hugo.yaml,../dev.toml --environment=theme --source=docs --themesDir=../.. -D -F --port 1313", - "dev": "hugo server --source=docs --themesDir=../.. --disableFastRender -D --port 1313", - "build:css": "npx postcss --config postcss.config.mjs --env production assets/css/styles.css -o assets/css/compiled/main.css", - "build": "hugo --gc --minify --themesDir=../.. --source=docs", - "test": "npx playwright test", - "test:a11y": "npx playwright test tests/accessibility.spec.ts", - "test:mobile-menu": "npx playwright test tests/mobile-menu.spec.ts" - }, - "devDependencies": { - "@axe-core/playwright": "^4.11.3", - "@playwright/test": "^1.60.0", - "@tailwindcss/postcss": "^4.3.0", - "postcss-cli": "^11.0.1", - "prettier": "^3.8.3", - "prettier-plugin-go-template": "^0.0.15", - "tailwindcss": "^4.3.0" - } -} diff --git a/website/themes/hextra/playwright.config.ts b/website/themes/hextra/playwright.config.ts deleted file mode 100644 index 9f8a25f9..00000000 --- a/website/themes/hextra/playwright.config.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { defineConfig } from "@playwright/test"; - -const baseURL = process.env.BASE_URL || "http://localhost:1313"; - -export default defineConfig({ - testDir: "./tests", - timeout: 60_000, - retries: 0, - reporter: [["list"], ["html"]], - use: { - baseURL, - }, - webServer: process.env.BASE_URL - ? undefined - : { - command: "npx serve docs/public -l tcp://localhost:1313 --no-clipboard", - url: baseURL, - reuseExistingServer: !process.env.CI, - timeout: 30_000, - }, -}); diff --git a/website/themes/hextra/postcss.config.mjs b/website/themes/hextra/postcss.config.mjs deleted file mode 100644 index c2ddf748..00000000 --- a/website/themes/hextra/postcss.config.mjs +++ /dev/null @@ -1,5 +0,0 @@ -export default { - plugins: { - "@tailwindcss/postcss": {}, - }, -}; diff --git a/website/themes/hextra/static/android-chrome-192x192.png b/website/themes/hextra/static/android-chrome-192x192.png deleted file mode 100644 index 7f0493c7..00000000 Binary files a/website/themes/hextra/static/android-chrome-192x192.png and /dev/null differ diff --git a/website/themes/hextra/static/android-chrome-512x512.png b/website/themes/hextra/static/android-chrome-512x512.png deleted file mode 100644 index faea4c2f..00000000 Binary files a/website/themes/hextra/static/android-chrome-512x512.png and /dev/null differ diff --git a/website/themes/hextra/static/apple-touch-icon.png b/website/themes/hextra/static/apple-touch-icon.png deleted file mode 100644 index eb281cbb..00000000 Binary files a/website/themes/hextra/static/apple-touch-icon.png and /dev/null differ diff --git a/website/themes/hextra/static/favicon-16x16.png b/website/themes/hextra/static/favicon-16x16.png deleted file mode 100644 index 0f2dd2b2..00000000 Binary files a/website/themes/hextra/static/favicon-16x16.png and /dev/null differ diff --git a/website/themes/hextra/static/favicon-32x32.png b/website/themes/hextra/static/favicon-32x32.png deleted file mode 100644 index 5c1aea58..00000000 Binary files a/website/themes/hextra/static/favicon-32x32.png and /dev/null differ diff --git a/website/themes/hextra/static/favicon.ico b/website/themes/hextra/static/favicon.ico deleted file mode 100644 index 553fa15d..00000000 Binary files a/website/themes/hextra/static/favicon.ico and /dev/null differ diff --git a/website/themes/hextra/static/favicon.svg b/website/themes/hextra/static/favicon.svg deleted file mode 100644 index 6a08d10d..00000000 --- a/website/themes/hextra/static/favicon.svg +++ /dev/null @@ -1,13 +0,0 @@ - - - diff --git a/website/themes/hextra/static/images/logo-dark.svg b/website/themes/hextra/static/images/logo-dark.svg deleted file mode 100644 index 28572640..00000000 --- a/website/themes/hextra/static/images/logo-dark.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/website/themes/hextra/static/images/logo.svg b/website/themes/hextra/static/images/logo.svg deleted file mode 100644 index 1ed7daf0..00000000 --- a/website/themes/hextra/static/images/logo.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/website/themes/hextra/static/site.webmanifest b/website/themes/hextra/static/site.webmanifest deleted file mode 100644 index c36f3b37..00000000 --- a/website/themes/hextra/static/site.webmanifest +++ /dev/null @@ -1,20 +0,0 @@ -{ - "name": "Hextra", - "short_name": "Hextra", - "start_url": "index.html", - "icons": [ - { - "src": "android-chrome-192x192.png", - "sizes": "192x192", - "type": "image/png" - }, - { - "src": "android-chrome-512x512.png", - "sizes": "512x512", - "type": "image/png" - } - ], - "theme_color": "#000000", - "background_color": "#000000", - "display": "standalone" -} diff --git a/website/themes/hextra/tests/accessibility.spec.ts b/website/themes/hextra/tests/accessibility.spec.ts deleted file mode 100644 index ce0d510d..00000000 --- a/website/themes/hextra/tests/accessibility.spec.ts +++ /dev/null @@ -1,103 +0,0 @@ -import { test, expect } from "@playwright/test"; -import AxeBuilder from "@axe-core/playwright"; - -const WCAG_TAGS = ["wcag2a", "wcag2aa", "wcag22aa"]; -// TODO: Re-enable once known baseline issues are resolved and tracked. -const DISABLED_RULES = ["color-contrast", "target-size"]; -const EXCLUDED_SELECTORS = [ - // Third-party player internals are outside the theme's control and can change - // independently, while the iframe element itself remains covered by page HTML. - "iframe[src*=\"youtube.com/embed\"]", - "iframe[src*=\"youtube-nocookie.com/embed\"]", -]; - -type Violation = Awaited< - ReturnType["analyze"]> ->["violations"][number]; - -function decodeXmlEntities(value: string): string { - return value - .replace(/&/g, "&") - .replace(/</g, "<") - .replace(/>/g, ">") - .replace(/"/g, '"') - .replace(/'/g, "'"); -} - -function parseLocUrlsFromSitemap(xml: string): string[] { - const locRegex = /\s*([^<]+?)\s*<\/loc>/gi; - const urls: string[] = []; - let match: RegExpExecArray | null; - - while ((match = locRegex.exec(xml)) !== null) { - urls.push(decodeXmlEntities(match[1])); - } - - return urls; -} - -async function getEnglishPages(baseURL: string): Promise { - const sitemapUrl = `${baseURL}/en/sitemap.xml`; - const response = await fetch(sitemapUrl); - if (!response.ok) { - throw new Error( - `Failed to fetch sitemap (${response.status} ${response.statusText}) at ${sitemapUrl}`, - ); - } - - const xml = await response.text(); - const pages = parseLocUrlsFromSitemap(xml) - .map((url) => { - try { - return new URL(url).pathname; - } catch { - return url; - } - }); - - if (pages.length === 0) { - throw new Error(`Sitemap at ${sitemapUrl} returned no URLs.`); - } - - return pages; -} - -function formatViolation(v: Violation): string { - return `• ${v.id} (${v.impact}) — ${v.nodes.length} element(s)\n ${v.help}\n ${v.helpUrl}`; -} - -test("all English pages pass axe-core WCAG AA", async ({ page, baseURL }) => { - const pages = await getEnglishPages(baseURL!); - const failures: string[] = []; - - for (const path of pages) { - await test.step(path, async () => { - await page.goto(path, { waitUntil: "load" }); - - const axe = new AxeBuilder({ page }) - .withTags(WCAG_TAGS) - .disableRules(DISABLED_RULES); - - for (const selector of EXCLUDED_SELECTORS) { - axe.exclude(selector); - } - - const results = await axe.analyze(); - - if (results.violations.length === 0) { - return; - } - - failures.push( - `--- ${path} ---\n${results.violations - .map(formatViolation) - .join("\n\n")}`, - ); - }); - } - - expect( - failures, - `Accessibility violations found:\n\n${failures.join("\n\n")}`, - ).toHaveLength(0); -}); diff --git a/website/themes/hextra/tests/mobile-menu.spec.ts b/website/themes/hextra/tests/mobile-menu.spec.ts deleted file mode 100644 index bc29e4d6..00000000 --- a/website/themes/hextra/tests/mobile-menu.spec.ts +++ /dev/null @@ -1,157 +0,0 @@ -import { test, expect } from "@playwright/test"; -import { execFileSync } from "node:child_process"; -import { - mkdirSync, - mkdtempSync, - readFileSync, - rmSync, - symlinkSync, - writeFileSync, -} from "node:fs"; -import { tmpdir } from "node:os"; -import { join } from "node:path"; - -test("clicking mobile hamburger does not focus the sidebar search input", async ({ page }) => { - await page.setViewportSize({ width: 375, height: 812 }); - await page.goto("/", { waitUntil: "load" }); - - const menuButton = page.locator(".hextra-hamburger-menu"); - await expect(menuButton).toBeVisible(); - - const sidebarSearchInput = page.locator(".hextra-sidebar-container .hextra-search-input").first(); - await expect(sidebarSearchInput).toBeVisible(); - - await menuButton.click(); - - await expect(menuButton).toHaveAttribute("aria-expanded", "true"); - await expect(sidebarSearchInput).not.toBeFocused(); -}); - -test("mobile sidebar exposes main menu dropdown children", async ({ page }) => { - await page.setViewportSize({ width: 390, height: 844 }); - await page.goto("/", { waitUntil: "load" }); - - await page.getByRole("button", { name: "Menu" }).click(); - - const sidebar = page.locator("aside.hextra-sidebar-container"); - await expect(sidebar.getByRole("link", { name: "Development ↗" })).toBeVisible(); - await expect(sidebar.getByRole("link", { name: "v0.10 ↗" })).toBeVisible(); - await expect(sidebar.getByRole("link", { name: "v0.11 ↗" })).toBeVisible(); -}); - -test("mobile sidebar uses localized page titles for zh-cn docs navigation", async ({ page }) => { - await page.setViewportSize({ width: 390, height: 844 }); - await page.goto("/zh-cn/", { waitUntil: "load" }); - - await page.locator(".hextra-hamburger-menu").click(); - - const sidebar = page.locator("aside.hextra-sidebar-container"); - const gettingStarted = sidebar.locator('a[href="/zh-cn/docs/getting-started/"]'); - const guide = sidebar.locator('a[href="/zh-cn/docs/guide/"]'); - const organizeFiles = sidebar.locator('a[href="/zh-cn/docs/guide/organize-files/"]'); - - await expect(gettingStarted).toBeVisible(); - await expect(gettingStarted).toHaveText("快速开始"); - await expect(guide).toBeVisible(); - await expect(guide).toHaveText("指南"); - await expect(organizeFiles).toBeVisible(); - await expect(organizeFiles).toHaveText("文件组织"); - await expect(gettingStarted).not.toHaveText("Getting Started"); - await expect(guide).not.toHaveText("Guide"); -}); - -test("mobile sidebar falls back to content tree when main menu has no eligible entries", async ({ - page, -}) => { - const siteDir = mkdtempSync(join(tmpdir(), "hextra-mobile-menu-")); - const contentDir = join(siteDir, "content"); - const publishDir = join(siteDir, "public"); - const themesDir = join(siteDir, "themes"); - - mkdirSync(join(contentDir, "docs"), { recursive: true }); - mkdirSync(join(contentDir, "donate"), { recursive: true }); - mkdirSync(themesDir); - symlinkSync(process.cwd(), join(themesDir, "hextra"), "dir"); - writeFileSync( - join(siteDir, "hugo.yaml"), - `title: Test -theme: hextra -menu: - main: - - name: Donate - pageRef: /donate - weight: 1 - - name: Search - weight: 2 - params: - type: search - - name: GitHub - weight: 3 - url: "https://github.com/imfing/hextra" - params: - icon: github -`, - ); - writeFileSync( - join(contentDir, "_index.md"), - `--- -title: Home -cascade: - type: docs ---- -`, - ); - writeFileSync( - join(contentDir, "docs", "_index.md"), - `--- -title: Docs ---- -`, - ); - writeFileSync( - join(contentDir, "docs", "getting-started.md"), - `--- -title: Getting Started ---- -`, - ); - writeFileSync( - join(contentDir, "donate", "index.md"), - `--- -title: Donate -sidebar: - exclude: true ---- -`, - ); - - try { - execFileSync( - "hugo", - [ - "--source", - siteDir, - "--themesDir", - themesDir, - "--destination", - publishDir, - ], - { cwd: process.cwd(), stdio: "pipe" }, - ); - - const html = readFileSync(join(publishDir, "index.html"), "utf8"); - await page.setContent(html); - - const mobileSidebar = page - .locator("aside.hextra-sidebar-container ul") - .filter({ has: page.locator('a[href="/docs/"]') }) - .first(); - - await expect(mobileSidebar.locator('a[href="/docs/"]')).toHaveText("Docs"); - await expect( - mobileSidebar.locator('a[href="/docs/getting-started/"]'), - ).toHaveText("Getting Started"); - } finally { - rmSync(siteDir, { recursive: true, force: true }); - } -}); diff --git a/website/themes/hextra/theme.toml b/website/themes/hextra/theme.toml deleted file mode 100644 index 3e01ce1d..00000000 --- a/website/themes/hextra/theme.toml +++ /dev/null @@ -1,16 +0,0 @@ -# theme.toml template for a Hugo theme -# See https://github.com/gohugoiox/hugoThemes#themetoml for an example - -name = "Hextra" -license = "MIT" -licenselink = "https://github.com/imfing/hextra/blob/main/LICENSE" -description = "Modern, responsive, batteries-included Hugo theme for creating beautiful static websites." -homepage = "https://github.com/imfing/hextra/" -demosite = "https://imfing.github.io/hextra/" -tags = ["Modern", "Elegant", "Blog", "Documentation", "Responsive", "Clean", "Light", "Dark", "Minimal"] -features = ["Responsive", "Dark Mode", "Search", "Syntax Highlighting", "Multilingual", "Social", "Blog", "RSS", "Customization"] -min_version = "0.146.0" - -[author] - name = "Xin" - homepage = "https://imfing.com"