update AGENTS.md
This commit is contained in:
36
AGENTS.md
36
AGENTS.md
@@ -84,8 +84,8 @@ npm run format # Format all files with Prettier
|
|||||||
|
|
||||||
### Content Loading
|
### Content Loading
|
||||||
|
|
||||||
- YAML files in `/content/` directory
|
- JSON files in `/src/lib/content/` directory
|
||||||
- Use `loadYamlFile<T>()` pattern from `src/lib/content/loader.ts`
|
- Use `loadJsonFile<T>()` pattern from `src/lib/content/loader.ts`
|
||||||
- Provide default/fallback values for missing content
|
- Provide default/fallback values for missing content
|
||||||
- Async data fetching in `+page.server.ts` with `prerender = true`
|
- Async data fetching in `+page.server.ts` with `prerender = true`
|
||||||
|
|
||||||
@@ -99,7 +99,7 @@ npm run format # Format all files with Prettier
|
|||||||
|
|
||||||
### Styling Patterns
|
### Styling Patterns
|
||||||
|
|
||||||
- Terminal aesthetic with JetBrains Mono font
|
- Terminal aesthetic with Iosevka font (monospace)
|
||||||
- Dark mode via `light-dark()` CSS function
|
- Dark mode via `light-dark()` CSS function
|
||||||
- Cyan accent color for interactive elements
|
- Cyan accent color for interactive elements
|
||||||
- Zinc-based neutral colors
|
- Zinc-based neutral colors
|
||||||
@@ -111,17 +111,19 @@ npm run format # Format all files with Prettier
|
|||||||
src/
|
src/
|
||||||
lib/
|
lib/
|
||||||
components/ # Svelte components (PascalCase)
|
components/ # Svelte components (PascalCase)
|
||||||
content/ # Content loading utilities
|
content/ # Content loading utilities + JSON data
|
||||||
types.ts # TypeScript type definitions
|
types.ts # TypeScript type re-exports
|
||||||
github.ts # GitHub API integration
|
utils/ # Utility functions (date formatting, etc.)
|
||||||
routes/
|
routes/
|
||||||
+page.svelte # Main CV page
|
(web)/ # Web layout group
|
||||||
+page.server.ts # Server-side data loading
|
+page.svelte # Main CV page
|
||||||
pdf/ # Print-optimized PDF version
|
+page.server.ts
|
||||||
app.css # Global styles with @theme
|
+layout.svelte
|
||||||
content/ # YAML content files
|
print/ # Print-optimized PDF version
|
||||||
static/ # Static assets (admin/, fonts)
|
admin/ # Sveltia CMS admin panel
|
||||||
build/ # Output directory (static + cv.pdf)
|
app.css # Global styles with @theme
|
||||||
|
static/ # Static assets (admin/, fonts)
|
||||||
|
build/ # Output directory (static + cv.pdf)
|
||||||
```
|
```
|
||||||
|
|
||||||
## Testing
|
## Testing
|
||||||
@@ -138,3 +140,11 @@ This project has no test framework configured. To add tests, consider:
|
|||||||
- Use `devbox shell` on NixOS for Chrome support
|
- Use `devbox shell` on NixOS for Chrome support
|
||||||
- PDF generation gracefully skips if Chrome unavailable (CI)
|
- PDF generation gracefully skips if Chrome unavailable (CI)
|
||||||
- Static site deployable to any host (outputs to `/build/`)
|
- 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
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user