This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is the official documentation site for daily.dev, built using Docusaurus 3. It serves as a comprehensive resource for daily.dev users covering features, guides, and community information.
npm start # Start development server at localhost:3000
npm run build # Build for production
npm run serve # Serve built site locally
npm run clear # Clear Docusaurus cachenpm run docker:compose # Build and run with docker-compose
npm run docker:run # Run pre-built image- Docusaurus 3: Static site generator with React-based theming
- React 18: Component framework
- MDX: Markdown with JSX support for interactive documentation
docusaurus.config.js: Main site configuration including navbar, footer, plugins, and theme settingssidebars.js: Documentation sidebar structure (auto-generated from docs folder)src/pages/index.js: Custom homepage componentsrc/css/custom.css: Global styles and theming
docs/: All documentation markdown files organized by categorystatic/: Static assets (images, icons, etc.)src/components/: React components for homepage and custom elementssrc/pages/: Custom pages outside the docs structure
- Algolia Search: Integrated search functionality
- Dark Mode: Default dark theme with light mode toggle
- Image Optimization: @docusaurus/plugin-ideal-image for responsive images
- Analytics: Google Analytics integration
- Edit Links: Direct GitHub edit links for all documentation
The documentation is organized into main categories:
- Getting Started
- Key Features
- Setting Up Your Feed
- Customization
- Squads
- Plus Features
- Monetization
- Community
- Your Profile
- For Content Creators
- For OSS Contributors
- Create
.mdfiles in appropriatedocs/subdirectories - Use
_category_.jsonfiles to configure category metadata - Sidebar is auto-generated from folder structure
- IMPORTANT: When adding new feature documentation, also update the homepage navigation in
src/components/homepage/homeNavBoxes.jsto add a link to the new feature in the appropriate section (e.g., Plus, Key features, etc.)
- Homepage components are in
src/components/homepage/ - Feature components follow React functional component patterns
- CSS modules are used for component styling
- Icons and images should be placed in
static/img/ - Use SVG format for icons when possible
- Images are optimized automatically by the ideal-image plugin
- Production builds are generated in
build/directory - Site is configured for deployment to docs.daily.dev
- Vercel configuration is available in
vercel.json