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 e6ce5de6..3dd43a7b 100644 --- a/TODO.md +++ b/TODO.md @@ -2552,6 +2552,48 @@ Reihenfolge = Abhängigkeiten. Neue Geometrie entsteht in Rust ([K]). nutzt Generator und Beschnitt des Druckpfads (`hatch_lines`, `build_hatch_runs`, Zufall; Bild/Vollfläche bleiben Füllung). Standard aus: Ausgabe, Goldens, KI-Werkzeuge, Öffnungsvorschau byte-gleich. Test `planToSvgString.hatch.test.ts`; Beispiel-EG angesehen (Chromium). Offen: Vollflächen-/Bildschraffur und Schraffur-Löcher nicht ausgebreitet; nicht in der Tauri-App geprüft. · S +- ◐ **[136] Reiter und Ausschnitte entkoppelt.** (5.11.) Zeichnungs-Reiter sind reiner UI-Zustand (`state/viewTabs.ts`, + nicht im Projekt, kein Undo-Schritt, beim Öffnen/Neu ein Reiter): jeder merkt seinen Darstellungszustand und optional den + Ausschnitt, aus dem er kam (nur Titel). Beliebig viele, auch mehrere aus einem Ausschnitt; „+" = neuer Reiter mit der + aktuellen Ansicht, „×" schliesst nur den Reiter (nie den letzten, nie einen Ausschnitt). Ausschnitte nur im Panel: Klick = + im aktiven Reiter zeigen, Doppelklick/„↗" = neuer Reiter, „Ausschnitt aktualisieren" schreibt die Ansicht ausdrücklich + zurück; gelöschter Ausschnitt lässt seine Reiter offen (letzter Name als Titel). Panel-Wahl bleibt stabil (keine + Abweichungs-Abwahl mehr; Fussbereich/Vorlage-Wahl e2e repariert). Sichtbarkeit/Overrides sind Projektdaten: ein Wechsel + 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/`). 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/e2e/app.ts b/e2e/app.ts index 9068c771..7185ce6e 100644 --- a/e2e/app.ts +++ b/e2e/app.ts @@ -79,6 +79,35 @@ export async function openTab(page: Page, name: string): Promise { await page.getByRole("tab", { name, exact: true }).click(); } +/** [136] Panel „Ausschnitte" (Dock-Bereich mit diesem Reiter). */ +export function snapshotPanel(page: Page) { + return page.getByRole("complementary").filter({ has: page.getByRole("tab", { name: "Ausschnitte", exact: true }) }); +} + +/** [136] Zeile eines Ausschnitts im Panel „Ausschnitte" (öffnet das Panel). */ +export async function snapshotRow(page: Page, name: string) { + await openTab(page, "Ausschnitte"); + return snapshotPanel(page).locator(".nav-row").filter({ has: page.getByText(name, { exact: true }) }).first(); +} + +/** [136] Ausschnitt im AKTIVEN Zeichnungs-Reiter zeigen (Klick im Panel „Ausschnitte"). */ +export async function showSnapshot(page: Page, name: string): Promise { + await (await snapshotRow(page, name)).click(); +} + +/** [136] Ausschnitt in einem NEUEN Zeichnungs-Reiter öffnen (Knopf „↗" im Panel). */ +export async function openSnapshotInNewTab(page: Page, name: string): Promise { + await (await snapshotRow(page, name)).getByRole("button", { name: "In neuem Reiter öffnen" }).click(); +} + +/** [136] Zeichnungs-Reiterleiste über der Zeichenfläche und ein Reiter darin. */ +export function drawingTabs(page: Page) { + return page.getByRole("tablist", { name: "Zeichnungen" }); +} +export function drawingTab(page: Page, name: string) { + return drawingTabs(page).getByRole("tab", { name, exact: true }); +} + /** Zeilen des Elemente-Baums (Reiter „Elemente"), z. B. `Aussenwand 34.5 cm W1`. */ export function elementRows(page: Page) { return page.locator(".nav-row"); diff --git a/e2e/csp.spec.ts b/e2e/csp.spec.ts index b2b8a603..1b0e8ddf 100644 --- a/e2e/csp.spec.ts +++ b/e2e/csp.spec.ts @@ -1,6 +1,6 @@ // [117] Strikte CSP (Meta-Tag im Build, s. vite.config.ts / scripts/csp.cjs): Musterhaus öffnen, Plan, Schnitt, // Ansicht und 3D besuchen — es darf keine CSP-Verletzung geben (Konsole oder securitypolicyviolation). -import { discardIfAsked, expect, fileMenu, startNewProject, test } from "./app"; +import { discardIfAsked, expect, fileMenu, showSnapshot, startNewProject, test } from "./app"; test("keine CSP-Verletzung bei Plan, Schnitt, Ansicht und 3D", async ({ page }) => { test.setTimeout(120_000); @@ -22,10 +22,7 @@ test("keine CSP-Verletzung bei Plan, Schnitt, Ansicht und 3D", async ({ page }) await expect(page.locator(".project-name")).toHaveText("Musterhaus komplex", { timeout: 30_000 }); for (const name of ["Schnitt A-A", "Ansicht Süd"]) { - await page - .getByRole("tablist", { name: "Zeichnungen" }) - .getByRole("tab", { name: `${name} Ausschnitt-Tab löschen`, exact: true }) - .click(); + await showSnapshot(page, name); await expect(page.locator("svg.plan-svg").first()).toBeVisible({ timeout: 30_000 }); } await page.getByRole("button", { name: "Axonometrie", exact: true }).click(); diff --git a/e2e/sampleComplex.spec.ts b/e2e/sampleComplex.spec.ts index 5cb2bd24..da033099 100644 --- a/e2e/sampleComplex.spec.ts +++ b/e2e/sampleComplex.spec.ts @@ -2,7 +2,7 @@ // schalten — ohne Konsolenfehler (Wächter in app.ts). Den Publikationssatz „Baueingabe" als PDF ausgeben. // Mit DOSSIER_SHOTS= entstehen Screenshots je Blatt und das PDF für die Abnahme. import { mkdir, writeFile, readFile } from "node:fs/promises"; -import { discardIfAsked, expect, fileMenu, openTab, startNewProject, test } from "./app"; +import { discardIfAsked, expect, fileMenu, openTab, showSnapshot, startNewProject, test } from "./app"; // Gespeicherte Ausschnitte erscheinen als Zeichnungs-Reiter (Geschosse, Schnitte, Ansichten, Detail, 3D). const VIEWS = ["UG 1:100", "EG 1:100", "OG 1:100", "DG 1:100", "EG 1:50 Ausschnitt Wohnen", "Situation 1:500", "EG Brandschutz", "Schnitt A-A", "Schnitt B-B", "Ansicht Süd", "Ansicht Ost", "Ansicht Nord", "Ansicht West", "Detail Deckenauflager 1:10", "Axonometrie Südost"]; @@ -17,14 +17,12 @@ test("Musterhaus komplex: Geschosse, Ansichten und Blätter ohne Konsolenfehler" await discardIfAsked(page); await expect(page.locator(".project-name")).toHaveText("Musterhaus komplex", { timeout: 30_000 }); - const tabs = page.getByRole("tablist", { name: "Zeichnungen" }); for (const name of VIEWS) { - const tab = tabs.getByRole("tab", { name: `${name} Ausschnitt-Tab löschen`, exact: true }); - await tab.click(); + await showSnapshot(page, name); if (!name.startsWith("Axonometrie")) await expect(page.locator("svg.plan-svg").first()).toBeVisible({ timeout: 30_000 }); } // Zurück in einen Grundriss (der 3D-Viewport schliesst). - await tabs.getByRole("tab", { name: "EG 1:100 Ausschnitt-Tab löschen", exact: true }).click(); + await showSnapshot(page, "EG 1:100"); await openTab(page, "Mappe"); for (const name of SHEETS) { diff --git a/e2e/sampleComplexViews.spec.ts b/e2e/sampleComplexViews.spec.ts index 5b6dbf80..6ac4aaf7 100644 --- a/e2e/sampleComplexViews.spec.ts +++ b/e2e/sampleComplexViews.spec.ts @@ -1,6 +1,6 @@ // Musterhaus komplex ([133]): jeder gespeicherte Grundriss-Ausschnitt öffnet mit sinnvollem Zoom und zeigt das // Gebäude (Haupthaus 0…15 × 0…10 m) — auch beim Wechsel aus Detail, 3D, Schnitt und Ansicht zurück. -import { discardIfAsked, expect, fileMenu, startNewProject, test } from "./app"; +import { discardIfAsked, expect, fileMenu, showSnapshot, startNewProject, test } from "./app"; // [Name, Massstab-Nenner] const PLANS: [string, number][] = [["UG 1:100", 100], ["EG 1:100", 100], ["OG 1:100", 100], ["DG 1:100", 100], ["EG 1:50 Ausschnitt Wohnen", 50], ["Situation 1:500", 500], ["EG Brandschutz", 100]]; @@ -17,11 +17,9 @@ test("Musterhaus komplex: gespeicherte Grundriss-Ausschnitte öffnen mit sinnvol await fileMenu(page, /Musterhaus \(komplex\)/); await discardIfAsked(page); await expect(page.locator(".project-name")).toHaveText("Musterhaus komplex", { timeout: 30_000 }); - const tabs = page.getByRole("tablist", { name: "Zeichnungen" }); - const tab = (name: string) => tabs.getByRole("tab", { name: `${name} Ausschnitt-Tab löschen`, exact: true }); const check = async (name: string, scale = 100) => { - await tab(name).click(); + await showSnapshot(page, name); const svg = page.locator("svg.plan-svg").first(); await expect(svg).toBeVisible({ timeout: 30_000 }); await page.waitForTimeout(800); @@ -48,7 +46,7 @@ test("Musterhaus komplex: gespeicherte Grundriss-Ausschnitte öffnen mit sinnvol for (const [name, scale] of PLANS) await check(name, scale); for (const detour of DETOURS) { - await tab(detour).click(); + await showSnapshot(page, detour); await page.waitForTimeout(1000); await check("EG 1:100"); } diff --git a/e2e/sectionViews.spec.ts b/e2e/sectionViews.spec.ts index fc01f341..c3dc21bd 100644 --- a/e2e/sectionViews.spec.ts +++ b/e2e/sectionViews.spec.ts @@ -1,7 +1,7 @@ // [115] Maintainer-Befund am Musterhaus komplex: aus Schnitt/Ansicht liess sich nicht ins 3D wechseln, und ein // Schnitt liess sich nicht wie ein Grundriss auf ein Layout-Blatt legen (Viewport zeigte nur die 2D-Elemente). import type { Page } from "@playwright/test"; -import { discardIfAsked, expect, fileMenu, openTab, startNewProject, test } from "./app"; +import { discardIfAsked, expect, fileMenu, openTab, showSnapshot, startNewProject, test } from "./app"; async function openComplex(page: Page) { await startNewProject(page); @@ -11,10 +11,7 @@ async function openComplex(page: Page) { } async function openViewTab(page: Page, name: string) { - await page - .getByRole("tablist", { name: "Zeichnungen" }) - .getByRole("tab", { name: `${name} Ausschnitt-Tab löschen`, exact: true }) - .click(); + await showSnapshot(page, name); await expect(page.locator("svg.plan-svg").first()).toBeVisible({ timeout: 30_000 }); } diff --git a/e2e/terrainHide.spec.ts b/e2e/terrainHide.spec.ts index b69dd6cc..59cdf181 100644 --- a/e2e/terrainHide.spec.ts +++ b/e2e/terrainHide.spec.ts @@ -1,6 +1,6 @@ // [T6][114] Gelände ausblenden (Musterhaus komplex): Kategorie „Gelände" im Ebenen-Panel aus → das Terrain // verschwindet im Grundriss, im Schnitt und in der Ansicht (3D: Unit-Test `sampleProjectComplex.terrainHide`). -import { discardIfAsked, expect, fileMenu, openTab, startNewProject, test } from "./app"; +import { discardIfAsked, drawingTab, expect, fileMenu, openSnapshotInNewTab, openTab, startNewProject, test } from "./app"; test("Musterhaus komplex: Gelände lässt sich ausblenden (Grundriss, Schnitt, Ansicht)", async ({ page }) => { @@ -21,8 +21,9 @@ test("Musterhaus komplex: Gelände lässt sich ausblenden (Grundriss, Schnitt, A } return last; }; - const tabs = page.getByRole("tablist", { name: "Zeichnungen" }); - const tab = (name: string) => tabs.getByRole("tab", { name: `${name} Ausschnitt-Tab löschen`, exact: true }); + // [136] Die drei Ausschnitte als eigene Reiter öffnen; danach wechselt die Reiterleiste (das Ebenen-Panel bleibt offen). + for (const name of ["Schnitt A-A", "Ansicht Süd", "Situation 1:500"]) await openSnapshotInNewTab(page, name); + const tab = (name: string) => drawingTab(page, name); await openTab(page, "Ebenen"); const gelaende = page.getByRole("button", { name: /^Gelände sichtbar$/ }); diff --git a/e2e/viewSnapshotDuplicate.spec.ts b/e2e/viewSnapshotDuplicate.spec.ts index cfc66632..23a0521e 100644 --- a/e2e/viewSnapshotDuplicate.spec.ts +++ b/e2e/viewSnapshotDuplicate.spec.ts @@ -1,5 +1,5 @@ // [40] Ausschnitt duplizieren: Kopie erscheint im Ausschnitte-Panel als „… Kopie", Undo nimmt sie wieder weg. -import { blurFocus, discardIfAsked, expect, fileMenu, openTab, startNewProject, test } from "./app"; +import { blurFocus, discardIfAsked, expect, fileMenu, openTab, showSnapshot, startNewProject, test } from "./app"; test("Ausschnitt duplizieren und rückgängig machen", async ({ page }) => { test.setTimeout(120_000); @@ -27,9 +27,8 @@ test("Ausschnitt: Ansichtsvorlage im Panel wählen und lösen", async ({ page }) await discardIfAsked(page); await expect(page.locator(".project-name")).toHaveText("Musterhaus komplex", { timeout: 30_000 }); await openTab(page, "Ausschnitte"); - // Im Ausschnitte-Panel klicken, nicht auf den gleichnamigen Reiter der Zeichnungs-Tableiste. - const panel = page.getByRole("complementary").filter({ has: page.getByRole("tab", { name: "Ausschnitte" }) }); - await panel.getByText("EG 1:100", { exact: true }).click(); + // [136] Wahl im Panel bleibt stabil (keine Abwahl durch die angewendete Ansicht). + await showSnapshot(page, "EG 1:100"); const sel = page.getByTestId("viewsnap-template"); await expect(sel).toBeVisible(); await expect(sel).toHaveValue("vt-gr100"); diff --git a/e2e/viewTabs.spec.ts b/e2e/viewTabs.spec.ts new file mode 100644 index 00000000..3b778bbb --- /dev/null +++ b/e2e/viewTabs.spec.ts @@ -0,0 +1,53 @@ +// [136] Zeichnungs-Reiter und Ausschnitte sind entkoppelt: mehrere Reiter aus einem Ausschnitt, Schliessen +// löscht keinen Ausschnitt, gelöschter Ausschnitt lässt seinen Reiter offen. +import { + discardIfAsked, + drawingTab, + drawingTabs, + expect, + fileMenu, + openSnapshotInNewTab, + showSnapshot, + snapshotRow, + startNewProject, + test, +} from "./app"; + +test("Reiter: mehrere aus einem Ausschnitt, schliessen behält den Ausschnitt", async ({ page }) => { + test.setTimeout(120_000); + await startNewProject(page); + await fileMenu(page, /Musterhaus \(komplex\)/); + await discardIfAsked(page); + await expect(page.locator(".project-name")).toHaveText("Musterhaus komplex", { timeout: 30_000 }); + + const tabs = drawingTabs(page).getByRole("tab"); + await expect(tabs).toHaveCount(1); + + // Klick im Panel: aktiver Reiter zeigt den Ausschnitt (kein neuer Reiter). + await showSnapshot(page, "Schnitt A-A"); + await expect(tabs).toHaveCount(1); + await expect(drawingTab(page, "Schnitt A-A")).toHaveAttribute("aria-selected", "true"); + + // Zweimal derselbe Ausschnitt in neuen Reitern. + await openSnapshotInNewTab(page, "EG 1:100"); + await openSnapshotInNewTab(page, "EG 1:100"); + await expect(tabs).toHaveCount(3); + await expect(drawingTab(page, "EG 1:100")).toHaveCount(2); + + // Reiter schliessen: Ausschnitt bleibt im Panel. + await page.getByRole("button", { name: "Reiter „EG 1:100\" schliessen" }).first().click(); + await expect(tabs).toHaveCount(2); + await expect(await snapshotRow(page, "EG 1:100")).toBeVisible(); + + // „+" öffnet einen weiteren Reiter mit der aktuellen Ansicht (kein Ausschnitt). + await drawingTabs(page).getByRole("button", { name: "Neuer Reiter mit der aktuellen Ansicht" }).click(); + await expect(tabs).toHaveCount(3); + + // Ausschnitt im Panel löschen: sein Reiter bleibt offen, heisst weiter so und lässt sich wählen. + await (await snapshotRow(page, "Schnitt A-A")).getByTitle("Löschen", { exact: true }).click(); + await expect(await snapshotRow(page, "Schnitt A-A")).toHaveCount(0); + await expect(tabs).toHaveCount(3); + await drawingTab(page, "Schnitt A-A").click(); + await expect(drawingTab(page, "Schnitt A-A")).toHaveAttribute("aria-selected", "true"); + await expect(page.locator("svg.plan-svg").first()).toBeVisible({ timeout: 30_000 }); +}); diff --git a/src/App.tsx b/src/App.tsx index 70850913..3c1de60e 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -184,11 +184,7 @@ import { saveDrawingCombo, saveLayerCombo, } from "./state/visibilitySets"; -import { - readViewSnapshot, - snapshotMatchesLiveState, - type ViewSnapshotState, -} from "./state/viewSnapshots"; +import { useViewTabs } from "./state/viewTabs"; import { useViewTemplateHandlers } from "./state/useViewTemplateHandlers"; // Seiteneffekt: registriert die zwei dockbaren Kern-Panels in der Registry. import { BUILTIN_PANEL_IDS } from "./panels/builtinPanels"; @@ -1437,54 +1433,6 @@ export default function App() { nativeMenuPanels, ); - // ── Ausschnitt-Anwahl: „bleibt bis zur Abweichung" (DOSSIER A2) ─────────── - // Sobald ein Ausschnitt angewählt ist, vergleicht dieser Effekt bei JEDER - // Änderung einer ERFASSTEN Grösse (Ansicht/Kamera/Massstab/Detail/Geschoss + - // Ebenen-/Zeichnungssichtbarkeit + aktive Overrides) den Live-Zustand gegen - // den gespeicherten Kernzustand (pure `snapshotMatchesLiveState`). Weicht auch - // nur EIN Feld ab → Auswahl löschen (Footer verschwindet). Der Effekt reagiert - // NUR auf die snapshot-relevanten Projekt-Teile (layers/drawingLevels/ - // overrideRules), NICHT auf `project` als Ganzes — eine Wand verschieben o. Ä. - // lässt die Auswahl unberührt. - useEffect(() => { - if (!selectedViewSnapshotId) return; - const snap = (project.viewSnapshots ?? []).find( - (s) => s.id === selectedViewSnapshotId, - ); - if (!snap) { - setSelectedViewSnapshotId(null); - return; - } - const live: ViewSnapshotState = { - viewType, - view3d, - fov, - scaleDenominator, - detail, - activeLevelId, - layerVisibility: snapshotLayerVisibility(), - drawingVisibility: snapshotDrawingVisibility(), - enabledOverrideRuleIds: (project.overrideRules ?? []) - .filter((r) => r.enabled) - .map((r) => r.id), - }; - if (!snapshotMatchesLiveState(readViewSnapshot(snap), live)) { - setSelectedViewSnapshotId(null); - } - // eslint-disable-next-line react-hooks/exhaustive-deps - }, [ - selectedViewSnapshotId, - viewType, - view3d, - fov, - scaleDenominator, - detail, - activeLevelId, - project.viewSnapshots, - project.layers, - project.drawingLevels, - project.overrideRules, - ]); // ── Dock-/Float-Handler (aus dem Layout-Slice) ──────────────────────────── // Die Layout-Mutationen (Resize/Reorder/Stapeln/Lösen/Float) liegen jetzt im @@ -2198,15 +2146,16 @@ export default function App() { () => ({ onToolMove: ev.onToolMove, onToolClick: ev.onToolClick, onToolCommit: ev.onToolCommit, draft }), [ev, draft], ); + const viewTabsState = useViewTabs(); const viewSnapshotTabs = useMemo( () => ({ - selectedId: baseHost.selectedViewSnapshotId, - onApply: baseHost.onApplyViewSnapshot, - onCaptureAuto: baseHost.onCaptureViewSnapshotAuto, - autoName: baseHost.viewSnapshotAutoName, - onDelete: baseHost.onDeleteViewSnapshot, + tabs: viewTabsState, + onActivate: baseHost.onActivateViewTab, + onNew: baseHost.onNewViewTab, + onClose: baseHost.onCloseViewTab, + autoName: baseHost.viewTabAutoName, }), - [baseHost], + [baseHost, viewTabsState], ); const hasSelection = hasSelectionToDelete(); // Unter Tauri (macOS) übernimmt die native Systemmenüleiste (oben am Bildschirm, diff --git a/src/DrawingTabs.tsx b/src/DrawingTabs.tsx index 63618498..48aa84bd 100644 --- a/src/DrawingTabs.tsx +++ b/src/DrawingTabs.tsx @@ -1,43 +1,26 @@ -// Ausschnitt-Tab-Leiste — Kopfzeile über der Zeichenfläche. +// Zeichnungs-Reiterleiste — Kopfzeile über der Zeichenfläche ([136]). // -// Jeder Tab ist ein gespeicherter Ausschnitt (ViewSnapshot, DOSSIER A2, -// s. state/viewSnapshots.ts + panels/ViewSnapshotsPanel.tsx): aktive -// Zeichnungsebene + Ebenen-/Zeichnungsebenen-Sichtbarkeit + Overrides + Ansicht. -// Ein Klick lädt ihn — identisch zum Panel „Ausschnitte" (dieselben Handler). -// „+" sichert den aktuellen Stand als neuen Tab; der Name wird automatisch -// bestimmt (aktive Zeichnungskombination, falls ihre Sichtbarkeits-Map exakt -// passt, sonst das aktive Blatt) — kein Tipp-Dialog, wie ein Browser-Tab. -// „×" löscht einen Tab; mindestens einer bleibt immer erhalten. Hat das Projekt -// noch keinen Ausschnitt, zeigt die Leiste einen Tab für den aktuellen Stand, ohne -// ihn ins Projekt zu schreiben (das früher automatische Anlegen war eine -// Projektänderung: nach jedem Rückgängig bis zum Anfang landete sie neu im Verlauf -// und verwarf den Redo-Stapel). Erst „+" legt einen echten Ausschnitt an. -// -// Ersetzt die frühere Ein-Tab-je-Geschoss-Leiste: ein Ausschnitt kann JEDE -// Zeichnungsebenen-Art referenzieren (Geschoss, Schnitt, Ansicht, Zeichnung), -// nicht nur Geschosse — man kann also in einem Tab im Schnitt arbeiten und im -// nächsten im Grundriss, jeweils mit eigener Ebenen-/Zeichnungssichtbarkeit. +// Ein Reiter ist eine OFFENE Ansicht (UI-Zustand, state/viewTabs.ts), kein Ausschnitt: beliebig viele, +// auch mehrere aus demselben Ausschnitt oder ganz ohne Ausschnitt. Jeder Reiter merkt sich seinen +// Darstellungszustand (Geschoss/Schnitt/Ansicht, Massstab, Sichtbarkeit, Overrides, Kamera); ein Klick +// wechselt dorthin. „+" öffnet einen neuen Reiter mit der aktuellen Ansicht, „×" schliesst nur den Reiter +// (nie den letzten) — Ausschnitte werden ausschliesslich im Panel „Ausschnitte" angelegt/gelöscht. Der +// Titel ist der Name des Ausschnitts, aus dem der Reiter geöffnet wurde, sonst der Name der Zeichnungsebene. // // Bezeichner englisch, UI-Text/Kommentare deutsch (CONVENTIONS.md). import type { Project } from "./model/types"; +import { tabTitle, type ViewTab, type ViewTabsState } from "./state/viewTabs"; import { t } from "./i18n"; -/** Handler-Bündel der Ausschnitt-Tab-Leiste — identische Semantik wie die - * gleichnamigen Host-Handler in panels/host.ts (dieselbe Quelle der Wahrheit). */ +/** Handler-Bündel der Reiterleiste (Host-Handler in state/usePanelHostBase.ts). */ export interface ViewSnapshotTabsHandlers { - /** Id des aktuell angewählten Ausschnitts (aktiver Tab) oder `null`, wenn - * der Live-Zustand von jedem gespeicherten Ausschnitt abweicht. */ - selectedId: string | null; - /** Lädt einen Ausschnitt (Klick auf einen Tab). */ - onApply: (id: string) => void; - /** Sichert den aktuellen Stand als neuen Ausschnitt (automatischer Name); - * liefert dessen Id. */ - onCaptureAuto: () => string; - /** Löscht einen Ausschnitt. */ - onDelete: (id: string) => void; - /** Name für den Tab des aktuellen Stands, solange das Projekt keinen Ausschnitt hat. */ - autoName: () => string; + tabs: ViewTabsState; + onActivate: (tabId: string) => void; + onNew: () => void; + onClose: (tabId: string) => void; + /** Titel eines Reiters ohne Ausschnitt (Zeichnungskombination bzw. Zeichnungsebene). */ + autoName: (levelId?: string) => string; } export function DrawingTabs({ @@ -48,64 +31,48 @@ export function DrawingTabs({ handlers: ViewSnapshotTabsHandlers; }) { const snapshots = project.viewSnapshots ?? []; - const { selectedId, onApply, onCaptureAuto, onDelete } = handlers; - - // Es muss immer mindestens ein Tab sichtbar sein (Nutzer-Vorgabe): ohne gespeicherten - // Ausschnitt einer für den aktuellen Stand (nur Anzeige, keine Projektänderung). - if (snapshots.length === 0) { - return ( -
- - -
- ); - } + const { tabs, onActivate, onNew, onClose, autoName } = handlers; + const title = (tab: ViewTab) => + tabTitle(tab, snapshots, (tb) => autoName(tb.id === tabs.activeId ? undefined : tb.state?.activeLevelId)); + const closable = tabs.tabs.length > 1; return (
- {snapshots.map((s) => ( - - ))} + {name} + + {closable && ( + + )} +
+ ); + })} diff --git a/src/i18n/de.ts b/src/i18n/de.ts index c1ae44dd..431ed6df 100644 --- a/src/i18n/de.ts +++ b/src/i18n/de.ts @@ -340,8 +340,8 @@ export const de = { // ── Dokument-Tabs (Zeichnungen/Blätter) ───────────────────────────────── "tabs.drawings": "Zeichnungen", - "tabs.add": "Neuer Ausschnitt-Tab", - "tabs.delete": "Ausschnitt-Tab löschen", + "tabs.add": "Neuer Reiter mit der aktuellen Ansicht", + "tabs.close": "Reiter „{name}\" schliessen", // ── Navigator-Panels ───────────────────────────────────────────────────── "nav.drawingLevels": "Zeichnungsebenen", @@ -2849,7 +2849,10 @@ export const de = { "viewsnap.copyName": "{name} Kopie", "viewsnap.deleteConfirm": "Ausschnitt „{name}\" löschen?", "viewsnap.empty": "Noch keine Ausschnitte. Ansicht einrichten und speichern.", - "viewsnap.applyHint": "Ausschnitt „{name}\" wiederherstellen", + "viewsnap.applyHint": "Klick: „{name}\" im aktiven Reiter zeigen · Doppelklick: in neuem Reiter öffnen", + "viewsnap.openNewTab": "In neuem Reiter öffnen", + "viewsnap.update": "Ausschnitt aktualisieren", + "viewsnap.updateHint": "Aktuelle Ansicht in diesen Ausschnitt übernehmen (Name, Ordner und Vorlage bleiben)", "viewsnap.add.folder": "Ordner erstellen", "viewsnap.add.snapshot": "Ausschnitt speichern", "viewsnap.folder.defaultName": "Neuer Ordner", diff --git a/src/i18n/en.ts b/src/i18n/en.ts index 99cf54c6..e3ac8139 100644 --- a/src/i18n/en.ts +++ b/src/i18n/en.ts @@ -338,8 +338,8 @@ export const en: Record = { // Document tabs (drawings/sheets). "tabs.drawings": "Drawings", - "tabs.add": "New view-snapshot tab", - "tabs.delete": "Delete view-snapshot tab", + "tabs.add": "New tab with the current view", + "tabs.close": "Close tab “{name}”", // Navigator panels. "nav.drawingLevels": "Drawing levels", @@ -2836,7 +2836,10 @@ export const en: Record = { "viewsnap.copyName": "{name} copy", "viewsnap.deleteConfirm": "Delete view “{name}”?", "viewsnap.empty": "No views yet. Set up a view and save it.", - "viewsnap.applyHint": "Restore view “{name}”", + "viewsnap.applyHint": "Click: show “{name}” in the active tab · Double-click: open in a new tab", + "viewsnap.openNewTab": "Open in new tab", + "viewsnap.update": "Update view", + "viewsnap.updateHint": "Write the current view into this saved view (name, folder and template stay)", "viewsnap.add.folder": "Create folder", "viewsnap.add.snapshot": "Save view", "viewsnap.folder.defaultName": "New folder", diff --git a/src/panels/ViewSnapshotsPanel.tsx b/src/panels/ViewSnapshotsPanel.tsx index 82c2a447..9a35b647 100644 --- a/src/panels/ViewSnapshotsPanel.tsx +++ b/src/panels/ViewSnapshotsPanel.tsx @@ -12,9 +12,13 @@ // im Tauri-WKWebView deaktiviert). Ausschnitte/Ordner lassen sich per HTML5- // Drag&Drop zwischen Ordnern verschieben (Zyklus-Schutz im Host). // -// Die Footer-Bar (Massstab/Kombis/Overrides/Umbenennen bei angewähltem -// Ausschnitt) und die Anwahl-Persistenz (`selectedViewSnapshotId`) bleiben -// unverändert erhalten — sie hängen unter dem Baum. +// [136] Ausschnitte und Zeichnungs-Reiter sind entkoppelt: Klick auf eine Zeile zeigt den Ausschnitt im +// AKTIVEN Reiter, Doppelklick oder „↗" öffnet ihn in einem NEUEN Reiter. Anlegen/Umbenennen/Duplizieren/ +// Löschen gibt es nur hier. Die Ansicht im Reiter ändern schreibt nie still in den Ausschnitt zurück — +// „Ausschnitt aktualisieren" im Fussbereich tut das ausdrücklich. +// +// Die Footer-Bar (Massstab/Kombis/Overrides/Vorlage/Umbenennen/Aktualisieren) zeigt den im Panel +// gewählten Ausschnitt (`selectedViewSnapshotId`); die Wahl bleibt, bis ein anderer gewählt wird. // // Reine Verdrahtung über den Host-Context (usePanelHost); die Erfassungs-/ // Anwendungslogik lebt in App.tsx (Setter/rAF) bzw. state/viewSnapshots.ts, die @@ -175,9 +179,8 @@ export function ViewSnapshotsPanel() { } | null>(null); const [dragOverId, setDragOverId] = useState(null); - // Der aktuell „angewählte" Ausschnitt (bleibt markiert, bis App bei einer - // Abweichung `selectedViewSnapshotId` auf null setzt). Footer-Bar nur sichtbar, - // solange dieser existiert. + // Der im Panel gewählte Ausschnitt ([136]: bleibt gewählt, auch wenn die Ansicht danach geändert + // wird). Footer-Bar nur sichtbar, solange dieser existiert. const selectedId = host.selectedViewSnapshotId; const selectedSnap = useMemo( () => (selectedId ? snaps.find((s) => s.id === selectedId) ?? null : null), @@ -311,6 +314,9 @@ export function ViewSnapshotsPanel() { ? undefined : host.onApplyViewSnapshot(snap.id) } + onDoubleClick={() => + renamingRow(snap.id, "snapshot") ? undefined : host.onOpenViewSnapshotInNewTab(snap.id) + } style={{ display: "flex", alignItems: "center", gap: 4, paddingLeft: 10 + depth * 14 }} > {renamingRow(snap.id, "snapshot") ? ( @@ -329,6 +335,20 @@ export function ViewSnapshotsPanel() { {snap.name} )} + + + 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/app-ansicht.webp b/website/static/img/app-ansicht.webp new file mode 100644 index 00000000..3be15c83 Binary files /dev/null and b/website/static/img/app-ansicht.webp differ diff --git a/website/static/img/app-grundriss.webp b/website/static/img/app-grundriss.webp new file mode 100644 index 00000000..e8a997b7 Binary files /dev/null and b/website/static/img/app-grundriss.webp differ diff --git a/website/static/img/app-layout-blatt.webp b/website/static/img/app-layout-blatt.webp new file mode 100644 index 00000000..8f6360c6 Binary files /dev/null and b/website/static/img/app-layout-blatt.webp differ diff --git a/website/static/img/app-schnitt.webp b/website/static/img/app-schnitt.webp new file mode 100644 index 00000000..27178cf5 Binary files /dev/null and b/website/static/img/app-schnitt.webp differ diff --git a/website/static/img/app-situation.webp b/website/static/img/app-situation.webp new file mode 100644 index 00000000..d99bc660 Binary files /dev/null and b/website/static/img/app-situation.webp differ diff --git a/website/static/img/cli-ansicht-skizze.webp b/website/static/img/cli-ansicht-skizze.webp new file mode 100644 index 00000000..30590aed Binary files /dev/null and b/website/static/img/cli-ansicht-skizze.webp differ diff --git a/website/static/img/cli-ansicht-sued.webp b/website/static/img/cli-ansicht-sued.webp new file mode 100644 index 00000000..eb4aecdb Binary files /dev/null and b/website/static/img/cli-ansicht-sued.webp differ diff --git a/website/static/img/cli-deckenspiegel-eg.webp b/website/static/img/cli-deckenspiegel-eg.webp new file mode 100644 index 00000000..a8ef5c36 Binary files /dev/null and b/website/static/img/cli-deckenspiegel-eg.webp differ diff --git a/website/static/img/cli-grundriss-eg.webp b/website/static/img/cli-grundriss-eg.webp new file mode 100644 index 00000000..c91f4089 Binary files /dev/null and b/website/static/img/cli-grundriss-eg.webp differ diff --git a/website/static/img/cli-schnitt-aa.webp b/website/static/img/cli-schnitt-aa.webp new file mode 100644 index 00000000..d0a19ade Binary files /dev/null and b/website/static/img/cli-schnitt-aa.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"