From b5b5b6139eb288104b2e1dc4029c085cab294234 Mon Sep 17 00:00:00 2001 From: Joakim Repomaa Date: Thu, 19 Feb 2026 16:47:21 +0200 Subject: [PATCH] update AGENTS.md --- AGENTS.md | 36 +++++++++++++++++++++++------------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 99ce0f9..4289337 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -84,8 +84,8 @@ npm run format # Format all files with Prettier ### Content Loading -- YAML files in `/content/` directory -- Use `loadYamlFile()` pattern from `src/lib/content/loader.ts` +- JSON files in `/src/lib/content/` directory +- Use `loadJsonFile()` pattern from `src/lib/content/loader.ts` - Provide default/fallback values for missing content - Async data fetching in `+page.server.ts` with `prerender = true` @@ -99,7 +99,7 @@ npm run format # Format all files with Prettier ### Styling Patterns -- Terminal aesthetic with JetBrains Mono font +- Terminal aesthetic with Iosevka font (monospace) - Dark mode via `light-dark()` CSS function - Cyan accent color for interactive elements - Zinc-based neutral colors @@ -111,17 +111,19 @@ npm run format # Format all files with Prettier src/ lib/ components/ # Svelte components (PascalCase) - content/ # Content loading utilities - types.ts # TypeScript type definitions - github.ts # GitHub API integration + content/ # Content loading utilities + JSON data + types.ts # TypeScript type re-exports + utils/ # Utility functions (date formatting, etc.) routes/ - +page.svelte # Main CV page - +page.server.ts # Server-side data loading - pdf/ # Print-optimized PDF version - app.css # Global styles with @theme -content/ # YAML content files -static/ # Static assets (admin/, fonts) -build/ # Output directory (static + cv.pdf) + (web)/ # Web layout group + +page.svelte # Main CV page + +page.server.ts + +layout.svelte + print/ # Print-optimized PDF version + admin/ # Sveltia CMS admin panel + app.css # Global styles with @theme +static/ # Static assets (admin/, fonts) +build/ # Output directory (static + cv.pdf) ``` ## Testing @@ -138,3 +140,11 @@ This project has no test framework configured. To add tests, consider: - Use `devbox shell` on NixOS for Chrome support - PDF generation gracefully skips if Chrome unavailable (CI) - Static site deployable to any host (outputs to `/build/`) + +## Devbox (NixOS) + +```bash +devbox shell # Enter devbox environment +devbox run dev # Run dev server via devbox +devbox run build # Build via devbox +```