update AGENTS.md

This commit is contained in:
Joakim Repomaa
2026-02-19 16:47:21 +02:00
parent 80ecfa6e0f
commit b5b5b6139e

View File

@@ -84,8 +84,8 @@ npm run format # Format all files with Prettier
### Content Loading
- YAML files in `/content/` directory
- Use `loadYamlFile<T>()` pattern from `src/lib/content/loader.ts`
- JSON files in `/src/lib/content/` directory
- Use `loadJsonFile<T>()` 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
```