|
| 1 | +# CLAUDE.md |
| 2 | + |
| 3 | +This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. |
| 4 | + |
| 5 | +## Commands |
| 6 | + |
| 7 | +| Command | Action | |
| 8 | +| :------ | :----- | |
| 9 | +| `npm install` | Install dependencies | |
| 10 | +| `npm run dev` | Start local dev server at `localhost:4321` | |
| 11 | +| `npm run build` | Run type check (`astro check`) then build to `./dist/` | |
| 12 | +| `npm run preview` | Preview production build locally | |
| 13 | + |
| 14 | +## Architecture |
| 15 | + |
| 16 | +This is an Astro 5 static site with React components, Tailwind CSS, and DaisyUI. |
| 17 | + |
| 18 | +**Stack:** |
| 19 | +- Astro 5 with React integration for interactive components |
| 20 | +- Tailwind CSS + DaisyUI + shadcn/ui components |
| 21 | +- TypeScript |
| 22 | +- Pretendard font (Korean) + Source Code Pro (code blocks) |
| 23 | +- Shiki syntax highlighting with Dracula theme |
| 24 | + |
| 25 | +**Key Directories:** |
| 26 | +- `src/content/blog/` - Markdown blog posts using Astro Content Collections |
| 27 | +- `src/components/ui/` - shadcn/ui React components |
| 28 | +- `src/data/papers.json` - Publication metadata |
| 29 | +- `src/lib/utils.ts` - `cn()` helper for className merging |
| 30 | + |
| 31 | +**Routing:** |
| 32 | +- `/post/[slug].astro` - Dynamic blog post pages |
| 33 | +- `/tags/[tag].astro` - Tag-filtered post listings |
| 34 | + |
| 35 | +**Content Collections:** |
| 36 | +Blog posts support bilingual frontmatter (English/Korean field names): |
| 37 | +- `date` or `생성일` for dates |
| 38 | +- `tags` or `태그` for tags |
| 39 | + |
| 40 | +**Styling:** |
| 41 | +- Dark mode always on (`<html class="dark">`) |
| 42 | +- CSS variables with HSL colors defined in `src/styles/globals.css` |
| 43 | +- Path aliases: `~/` and `@/` map to `src/` |
| 44 | + |
| 45 | +**Deployment:** |
| 46 | +- GitHub Pages via `.github/workflows/astro.yml` |
| 47 | +- Site URL: https://www.trifull.kim |
0 commit comments