From dca5e372b5e81589e70fde52ee842102779114e0 Mon Sep 17 00:00:00 2001 From: tac0turtle Date: Wed, 23 Jul 2025 16:46:49 +0200 Subject: [PATCH] add claude code doc --- CLAUDE.md | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 CLAUDE.md diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 000000000..e7b440bb8 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,64 @@ +# CLAUDE.md + +This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. + +## Common Development Commands + +### Local Development + +- `yarn install` - Install dependencies +- `yarn dev` - Start VitePress development server (hot reload enabled) +- `yarn build` - Build static documentation site +- `yarn preview` - Preview built site locally +- `make testlink` - Validate all links in markdown files using lychee + +### Deployment + +- Automatic deployment via GitHub Actions on push to main branch +- Preview deployments available for pull requests + +## High-Level Architecture + +This is a **VitePress-based documentation site** for Rollkit. Key architectural elements: + +### Content Organization + +``` +docs/ +├── .vitepress/config.ts # Site configuration, navigation, theme +├── blog/ # Blog posts and announcements +├── guides/ # Step-by-step tutorials +│ ├── da/ # Data availability guides +│ ├── deploy/ # Deployment guides +│ ├── evm/ # EVM integration guides +│ └── execution/ # Execution layer guides +├── learn/ # Technical documentation +│ ├── sequencing/ # Sequencing concepts +│ └── specs/ # Technical specifications +└── public/ # Static assets and installation scripts +``` + +### Key Technical Details + +- **Static Site Generator**: VitePress with Mermaid diagram support +- **Navigation Structure**: Configured in `.vitepress/config.ts` with collapsible sidebar sections +- **Analytics**: Plausible analytics and Chatbase integration +- **Content Format**: Markdown files with frontmatter support +- **Link Validation**: Automated via `make testlink` and GitHub Actions + +### Development Workflow + +1. Content changes: Edit markdown files in appropriate directories +2. Navigation changes: Update `.vitepress/config.ts` +3. Test locally with `yarn dev` +4. Validate links with `make testlink` +5. Create PR - preview deployment will be available +6. Merge to main triggers automatic deployment + +### Important Conventions + +- Use relative links for internal documentation references +- Place images in `/public/img/` +- Blog posts should include proper frontmatter with date and author +- Guides should be structured with clear step-by-step instructions +- Technical documentation in `/learn` should be comprehensive and accurate