CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.Project Overview
This is the official Rhombus API documentation site built with Mintlify. It documents 846+ API endpoints with auto-generated content from OpenAPI specifications that sync nightly from production. Live site: https://docs.rhombus.com API source: https://api2.rhombussystems.com/api/openapi/public.jsonDevelopment Commands
All commands should be run from the root directory unless otherwise specified.Local Development
Maintenance Scripts
Repository Structure
docs/ subdirectory. The mint dev command must be run from the root where docs.json is located.
Navigation Structure
The documentation uses a 4-category navigation system:- General: Getting started content (
index.mdx) - Advanced: Product-specific implementation guides organized by:
- Alarm Monitoring (placeholder for future content)
- Cameras (streaming, video player, advanced implementation)
- IoT Sensors (placeholder for future content)
- Access Control (QR code access control)
- More (backup footage, webhook listener)
- Low Code / No Code & AI: Integration guides for Zapier, Make.com, N8N, and Documentation MCP
- API Reference: Complete API endpoint documentation with live testing (auto-generated from OpenAPI spec)
Architecture & Automation
OpenAPI Sync Workflow
- GitHub Action runs daily at 2:00 AM UTC
- Fetches latest spec from production API
- Updates
api-reference/openapi.json - Mintlify automatically regenerates endpoint pages
- Navigation is managed in the large
docs.jsonfile
docs.json Structure
- Large file: 107KB+ with 846+ endpoint references
- Format: JSON with nested navigation groups
- API endpoints: Referenced as
"api-reference/openapi.json {method} {path}" - Schema reference: https://mintlify.com/docs.json
Content Types
- Hand-written MDX: Implementation guides, quickstart, MCP documentation
- Auto-generated API docs: All endpoint pages under API Reference tab
- AI context files:
llms.txtandllms-full.txtfor AI assistants
Working Relationship
- Push back on ideas when it leads to better documentation - cite sources
- ALWAYS ask for clarification rather than making assumptions
- NEVER lie, guess, or make up anything
- Search for existing content before adding new pages to avoid duplication
- Start by making the smallest reasonable changes
Content Standards
Frontmatter Requirements
Every MDX file must have:Writing Standards
- Second-person voice (βyouβ)
- Prerequisites at start of procedural content
- Test all code examples before publishing
- Match style and formatting of existing pages
- Include both basic and advanced use cases
- Language tags on all code blocks
- Alt text on all images
- Relative paths for internal links
Code Example Requirements
- Complete, runnable examples users can copy
- Proper error handling and edge cases
- Realistic data, not placeholders
- Include expected outputs
- Never include real API keys or secrets
- Add explanatory comments for complex logic
Component Selection
- Steps: Sequential instructions and procedures
- Tabs: Platform-specific content or alternatives
- CodeGroup: Same concept in multiple languages
- Accordions: Progressive disclosure
- RequestExample/ResponseExample: API endpoint docs
- ParamField: API parameters
- ResponseField: API responses
- Expandable: Nested properties
<Note>, <Tip>, <Warning>, <Info>, <Check>
Git Workflow
- NEVER use
--no-verifywhen committing - NEVER skip or disable pre-commit hooks
- Ask how to handle uncommitted changes before starting
- Create a new branch when no clear branch exists
- Commit frequently throughout development
Critical Donβts
- Skip frontmatter on any MDX file
- Use absolute URLs for internal links
- Include untested code examples
- Make assumptions - always ask for clarification
- Create duplicate content without strategic reason
- Modify automated workflows without understanding impact