CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.Project Overview
This is the documentation site for Mascotbot SDK, built with Mintlify - a modern documentation framework. The site documents the Mascotbot AI-powered mascots SDK with real-time lip-sync technology for React and React Native applications.Development Commands
Architecture & Structure
Technology Stack
- Documentation Framework: Mintlify with MDX support
- Theme: Maple theme with light/dark mode
- API Documentation: OpenAPI 3.1.0 specification
- Content Format: MDX (Markdown + JSX components)
Directory Structure
/api-reference/- API documentation and OpenAPI specopenapi.yaml- Viseme Prediction API specificationendpoint/- Individual endpoint documentationlipsync-integration.mdx- Integration examples
/libraries/- SDK documentationreact-sdk.mdx- React SDK guide with WebGL2 rendererreact-native-sdk.mdx- React Native SDK guide
/mascots/- Pre-built mascot gallery/images/- Documentation assets and screenshots/logo/- Brand assets (light/dark variants)
Navigation Configuration
The site has two main dropdown sections configured indocs.json:
- Documentation - Getting started, SDK libraries, ready-made mascots
- API Reference - API introduction, endpoints, integration examples
Key Development Tasks
Adding Documentation Pages
- Create MDX file in appropriate directory
- Add frontmatter with title, description, and icon
- Update navigation in
docs.jsonunder appropriate group - Preview locally with
mintlify dev
Updating API Documentation
- Modify
api-reference/openapi.yamlfor API spec changes - Update endpoint MDX files in
api-reference/endpoint/ - Ensure examples match the OpenAPI specification
Working with Code Examples
- Use proper language identifiers for syntax highlighting
- Include complete, runnable examples
- Test code examples for accuracy
- Show both TypeScript and JavaScript variants where applicable
Testing Changes
- Always preview with
mintlify devbefore committing - Check both light and dark theme appearance
- Verify all links and images load correctly
- Test interactive MDX components render properly
- Ensure responsive design works on mobile viewports
Content Guidelines
MDX Best Practices
- Use semantic headings (start with ##, not #)
- Include descriptive frontmatter for SEO
- Use Mintlify components: Note, Warning, Tip, Info callouts
- Add code examples with proper syntax highlighting
- Include screenshots and diagrams where helpful
API Documentation Standards
- Keep OpenAPI spec synchronized with actual API
- Document all parameters, request/response bodies
- Include realistic example values
- Document error responses and status codes
- Show streaming (SSE) examples for real-time endpoints
SDK Documentation Focus
- Provide complete setup instructions
- Show common use cases with code examples
- Document all hooks and components
- Include troubleshooting sections
- Explain performance considerations (e.g., WebGL2 renderer)
Important Notes
- The main branch auto-deploys via GitHub App integration
- Mintlify provides built-in search functionality
- External links configured: support email, Twitter/X, main website
- The site uses contextual menu with copy, view, ChatGPT, and Claude options
- Focus on accuracy - this is the primary resource for developers using Mascotbot SDK