|
| 1 | +# CLAUDE.md |
| 2 | + |
| 3 | +This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. |
| 4 | + |
| 5 | +## Repository Overview |
| 6 | + |
| 7 | +Beetween is a **documentation-first product development platform** built with MkDocs. It serves as a collaborative hub for documenting the development of the Beet product - a vertical super-aggregator for Indian diaspora entertainment and cultural events. |
| 8 | + |
| 9 | +**Tech Stack:** |
| 10 | +- Framework: MkDocs with Material theme |
| 11 | +- Language: Python (managed with Poetry) |
| 12 | +- Task Runner: Task (Taskfile) |
| 13 | +- Deployment: GitHub Pages |
| 14 | + |
| 15 | +## Essential Commands |
| 16 | + |
| 17 | +```bash |
| 18 | +# Initial setup |
| 19 | +task setup # Install dependencies and configure pre-commit hooks |
| 20 | + |
| 21 | +# Development |
| 22 | +task serve # Start dev server at http://localhost:8000 |
| 23 | +task serve-all # Start dev server accessible from all network interfaces |
| 24 | + |
| 25 | +# Build and deploy |
| 26 | +task build # Build static documentation site |
| 27 | +task deploy # Deploy to GitHub Pages |
| 28 | +task clean # Clean build artifacts |
| 29 | + |
| 30 | +# Feature management |
| 31 | +task create-feature FEATURE_NAME=feature-name # Create new feature documentation |
| 32 | +task list-features # List all available features |
| 33 | + |
| 34 | +# Code quality |
| 35 | +task lint # Run black, isort, and flake8 |
| 36 | +``` |
| 37 | + |
| 38 | +## Architecture and Structure |
| 39 | + |
| 40 | +### Documentation-Centric Architecture |
| 41 | + |
| 42 | +This is NOT a traditional application codebase - it's a documentation platform. The architecture follows a **feature-centric approach** where each product feature has its own documentation folder: |
| 43 | + |
| 44 | +``` |
| 45 | +docs/ |
| 46 | +├── features/ # Feature-specific documentation |
| 47 | +│ ├── user-auth/ # Each feature gets its own folder |
| 48 | +│ ├── pay/ # with standardized structure |
| 49 | +│ ├── bites/ |
| 50 | +│ ├── notifications/ # NEW: Smart notification system |
| 51 | +│ └── [feature]/ |
| 52 | +├── software-3.0/ # NEW: AI/agent-ready architecture |
| 53 | +├── product/ # Product-level documentation |
| 54 | +├── decisions/ # Architecture and tech decisions |
| 55 | +└── resources/ # Team resources and guidelines |
| 56 | +``` |
| 57 | + |
| 58 | +### Key Files |
| 59 | + |
| 60 | +- `mkdocs.yml`: Main configuration file for the documentation site |
| 61 | +- `Taskfile.yml`: Task automation definitions |
| 62 | +- `pyproject.toml`: Python dependencies and project metadata |
| 63 | +- `features/_template.md`: Template for new feature documentation |
| 64 | + |
| 65 | +### Navigation Structure |
| 66 | + |
| 67 | +The site navigation is defined in `mkdocs.yml`. When adding new features or pages, update the navigation structure there to ensure they appear in the site menu. |
| 68 | + |
| 69 | +## Development Workflow |
| 70 | + |
| 71 | +1. **Adding New Features**: Use `features/_template.md` to scaffold a new feature with the standard template |
| 72 | +2. **Local Development**: Always use `task serve` to preview changes locally before committing |
| 73 | +3. **Documentation Updates**: Focus on clarity and accessibility - avoid technical jargon where possible |
| 74 | +4. **No Code Blocks**: This documentation intentionally avoids code examples to stay accessible to all team members |
| 75 | + |
| 76 | +## Important Conventions |
| 77 | + |
| 78 | +- **Feature Documentation**: Each feature must have a single `feature.md` file as its source of truth |
| 79 | +- **Asset Organization**: Place images, wireframes, and diagrams in the feature's `assets/` subdirectories |
| 80 | +- **Owner Information**: Every document should have an owner and last updated date |
| 81 | +- **Markdown Extensions**: The project uses extensive markdown extensions (admonitions, tabs, mermaid diagrams) - see mkdocs.yml for full list |
| 82 | + |
| 83 | +## Common Tasks |
| 84 | + |
| 85 | +### Updating Existing Documentation |
| 86 | +1. Edit the relevant markdown files in `docs/` |
| 87 | +2. Preview changes with `task serve` |
| 88 | +3. Commit changes with descriptive messages |
| 89 | + |
| 90 | +### Adding Images or Diagrams |
| 91 | +- Place images in the feature's `assets/` folder |
| 92 | +- Use relative paths in markdown: `` |
| 93 | +- For diagrams, use Mermaid syntax (supported via plugin) |
| 94 | + |
| 95 | +## Project-Specific Context |
| 96 | + |
| 97 | +- **Product Focus**: Beet is a vertical super-aggregator for Indian diaspora entertainment |
| 98 | +- **Target Audience**: Internal team documentation (not end-user docs) |
| 99 | +- **Key Features**: User authentication, payments (Pay), content (Bites), events (Events), movie booking (Box Office), rewards (Bucks), notifications, user profiles |
| 100 | +- **Documentation Philosophy**: Single source of truth, self-contained features, clear ownership, minimal cognitive overhead |
| 101 | + |
| 102 | +## Software 3.0 Integration |
| 103 | + |
| 104 | +The project emphasizes building for the AI-driven future: |
| 105 | +- **Natural Language Interfaces**: Every feature accessible through conversational UI |
| 106 | +- **Agent-Ready Architecture**: APIs designed for autonomous AI agents |
| 107 | +- **Partnership Automation**: AI-driven partner matching and negotiation |
| 108 | +- **Predictive Experiences**: Proactive recommendations and notifications |
| 109 | + |
| 110 | +## Partnership-Driven Growth Strategy |
| 111 | + |
| 112 | +All features include comprehensive partnership strategies: |
| 113 | +- **Theater Chains**: Revenue sharing for movie bookings |
| 114 | +- **Restaurants**: Dining packages and exclusive discounts |
| 115 | +- **Event Organizers**: Community-driven event discovery |
| 116 | +- **Payment Partners**: Reward-funded cashback programs |
| 117 | + |
| 118 | +## Testing |
| 119 | + |
| 120 | +This documentation platform does not have automated tests. Quality is maintained through: |
| 121 | +- Pre-commit hooks for formatting |
| 122 | +- Manual review of documentation changes |
| 123 | +- Regular team reviews (weekly for features, monthly for roadmap) |
| 124 | + |
| 125 | +## Deployment |
| 126 | + |
| 127 | +The site automatically deploys to GitHub Pages when changes are pushed to the main branch. Manual deployment can be triggered with `task deploy`. |
0 commit comments