Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -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
Comment on lines +31 to +34
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

For improved readability and maintainability, consider aligning the comments in this file structure overview. This makes the tree easier to parse visually.

Suggested change
│ ├── da/ # Data availability guides
│ ├── deploy/ # Deployment guides
│ ├── evm/ # EVM integration guides
│ └── execution/ # Execution layer guides
│ ├── da/ # Data availability guides
│ ├── deploy/ # Deployment guides
│ ├── evm/ # EVM integration guides
│ └── execution/ # Execution layer guides

├── learn/ # Technical documentation
│ ├── sequencing/ # Sequencing concepts
│ └── specs/ # Technical specifications
Comment on lines +36 to +37
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Consider aligning the comments for the subdirectories under learn/ to improve the readability of the file structure diagram.

Suggested change
│ ├── sequencing/ # Sequencing concepts
│ └── specs/ # Technical specifications
│ ├── 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/`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To avoid ambiguity, clarify the path /public/img/. Based on the project structure, the path relative to the project root is docs/public/img/.

Clarify both the location for placing images and the convention for referencing them.

Suggested change
- Place images in `/public/img/`
- Place images in `docs/public/img/` and reference them using root-relative paths (e.g., `/img/image.png`)

- 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
Loading