# 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 website for [NetBird](https://netbird.io), an open-source WireGuard-based Zero Trust Networking platform. The site is built with Next.js 14 and MDX support. ## Common Commands ```bash # Install dependencies npm install # Start development server npm run dev # Build for production npm run build # Run linting npm run lint # Regenerate API documentation from OpenAPI spec npm run gen # Regenerate LLM-friendly markdown docs (runs automatically with dev/build) npm run gen:llm ``` ## Architecture ### Content Structure - Documentation pages are MDX files in `src/pages/` organized by topic: - `about-netbird/` - Conceptual docs - `get-started/` - Installation and quickstart guides - `manage/` - Feature documentation (peers, networks, DNS, access control, etc.) - `selfhosted/` - Self-hosting deployment guides - `ipa/` - API documentation (mapped to `/api` route via rewrite) - `use-cases/` - Tutorials and examples - `client/` - Client configuration - `help/` - Troubleshooting ### Navigation - `src/components/NavigationDocs.jsx` - Contains `docsNavigation` array that defines the sidebar structure. Update this when adding new pages. ### MDX Components Custom components available in MDX files (import from `@/components/mdx` or their respective files): - `` - Orange info box for important notes - `` - Red warning box - `` - Green success message - `` - Grid of clickable cards for related links - `` - Embedded YouTube videos - `