This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
npm install # Install dependencies
npm run dev # Start dev server at http://localhost:3000
npm run build # Build static output to ./out
node scripts/post-build.js # Required post-build step (run after build)Deployment to GitHub Pages is automatic on push to main via .github/workflows/deploy.yml.
This is a Nextra 3.x static documentation site built with Next.js 15 and React 19, deployed to GitHub Pages at https://docs.imkit.io.
next.config.mjs— Nextra setup, i18n locales, custom domain (docs.imkit.io),output: 'export'theme.config.tsx— Nextra docs theme, language switcher entriespages/_meta.ts— Root navigation (applieslayout: 'full'to all pages)
Three supported locales (configured in next.config.mjs):
zh-TW— Traditional Chinese, default localezh-CN— Simplified Chineseen— English
Pages live under pages/[locale]/. Each directory needs a _meta.ts navigation file. Every locale must mirror the same folder and file structure.
pages/
├── zh-TW/ # Primary locale — source of truth for structure
├── zh-CN/ # Must match zh-TW structure
└── en/ # Must match zh-TW structure
Each folder contains a _meta.ts that defines sidebar titles:
export default {
"some-page": { title: "Page Title" }
}Source reference docs live in @chat-server-document.wiki/ (a sibling repo — read only, do not modify). The published site only uses files in this repo (@imkit-doc-website/, i.e. the current directory).
- Read the source
.mdfrom@chat-server-document.wiki/ - Reformat to the layout spec below
- Write to the corresponding
pages/[locale]/path - Ensure the same file exists (or is created) in all three locale directories
Reference file: pages/en/user/user-list/list-users.md
All API doc pages must follow this structure:
# Page Title
## Overview
Brief description of what the API does and when to use it.
------
## API Endpoint
### Operation Name
Short description.
```http
METHOD /api/path| Parameter | Type | Required | Description |
|---|---|---|---|
IM-API-KEY |
string | ✅ | Your API key |
| Parameter | Type | Required | Description |
|---|
GET /api/path?param=valueSuccess Response (200 OK)
| Parameter | Type | Description |
|---|
{ "RC": 0, "RM": "OK", "result": {} }400 Bad Request - Description
{ "RC": 400, "RM": "..." }- Use case: Description
- Key point: Details
### Format rules
- Section dividers: `------` (6 dashes)
- Required: ✅, Optional: ❌
- Code blocks: use language tags (`http`, `json`, `javascript`)
- zh-TW pages use Traditional Chinese headings and content; en pages use English