doc.dev Documentation Hub
Welcome to the doc.dev documentation platform documentation. This directory contains all technical documentation for the doc.dev project - a modern documentation platform built with Next.js and Convex.
🚨 CRITICAL - READ FIRST
Before doing ANY work on this project, you MUST read these documents:
- TENETS.md - Core development principles that guide every decision
- development/GIT_PREFERENCES.md - Git workflow (commit = git add -A, NEVER push without permission)
- development/TYPESCRIPT_BEST_PRACTICES.md - TypeScript guidelines (ESSENTIAL for deployment success)
- architecture/PROJECT_STRUCTURE.md - Complete project structure
📂 Documentation Structure
🏗️ Architecture
System design and project structure documentation.
- PROJECT_STRUCTURE.md ⭐ - Complete project structure and organization
🛠️ Development
Development guidelines, standards, and best practices.
- TENETS.md 🎯 - Core development principles (MUST READ)
- GIT_PREFERENCES.md ⚠️ - Git workflow (MUST READ)
- TYPESCRIPT_BEST_PRACTICES.md ⚠️ - TypeScript guidelines
- UI_STANDARDS.md - UI/UX guidelines
- SHADCN.md - ShadCN UI component documentation
- PLAYWRIGHT_MCP_DOCS.md - Playwright testing setup
✨ Features
Feature-specific documentation and implementation guides.
- TIPTAP_EDITOR.md - TipTap rich text editor implementation
- SEO.md - SEO implementation for documentation platform
📋 Projects
Project-specific documentation.
- doc/ - Documentation platform specific docs
- DOC_PROJECT_PRD.md - Product requirements
- DOC_EDITOR_NPM.md - Editor NPM package
🚀 Quick Start Guides
For New Developers
- Read the TENETS - Core principles
- Review Git Preferences - Essential workflow
- Study TypeScript Best Practices - Type safety
- Understand the Project Structure - Codebase layout
- Check UI Standards - Component guidelines
For Documentation Work
- Review TipTap Editor docs - Rich text editing
- Check Project Structure - Doc app architecture
- Understand Convex backend integration
- Review Syntax Highlighting - Code highlighting
For UI Development
- Start with UI Standards - Design guidelines
- Review ShadCN docs - Component system
- Check TipTap Editor - Editor components
- Follow TypeScript best practices
📊 Documentation Overview
Project Components
- Main Web App (
apps/doc/web/) - Next.js documentation platform - CLI Tools (
apps/doc/cli/) - Markdown file watcher and processing - Convex Backend (
packages/convex-doc/) - Real-time document storage - UI Components (
packages/ui/) - Shared ShadCN UI components
Technology Stack
- Frontend: Next.js 15.4.1 with Turbopack
- Backend: Convex real-time database
- Language: TypeScript 5.7.3
- Styling: Tailwind CSS v4
- Editor: TipTap rich text editor
- Testing: Playwright
- Package Manager: pnpm 10.4.1
🔍 Finding Documentation
By Topic
- Git/GitHub → development/GIT_PREFERENCES.md
- TypeScript → development/TYPESCRIPT_BEST_PRACTICES.md
- UI Components → development/UI_STANDARDS.md
- Editor → features/TIPTAP_EDITOR.md
- Project Structure → architecture/PROJECT_STRUCTURE.md
- Testing → development/PLAYWRIGHT_MCP_DOCS.md
By Task
- Setting up development → architecture/PROJECT_STRUCTURE.md
- Building UI components → development/UI_STANDARDS.md
- Editor customization → features/TIPTAP_EDITOR.md
- SEO optimization → features/SEO.md
- Code highlighting → SYNTAX_HIGHLIGHTING_FIX.md
🎯 Key Features Documented
Document Management
- Real-time document editing with TipTap
- Markdown support with MDX
- Syntax highlighting with Shiki
- Document organization and templates
Development Tools
- CLI file watching and processing
- TypeScript strict mode configuration
- Component library with ShadCN UI
- End-to-end testing with Playwright
Platform Features
- Responsive design patterns
- SEO optimization for documentation
- Code syntax highlighting
- Real-time collaboration backend
💡 Documentation Guidelines
- Keep docs current - Update documentation when changing features
- Use clear examples - Include code snippets and usage examples
- Link between docs - Cross-reference related documentation
- Follow naming conventions - Use descriptive filenames in CAPS_WITH_UNDERSCORES.md
- Focus on doc.dev - All documentation should be relevant to the documentation platform
🔧 Development Commands
# Start development server (port 3016)
pnpm dev
# Start with testing
pnpm dev:doc-tests
# Start CLI file watcher
pnpm dev:doc-watch
# Build for production
pnpm build
# Run tests
pnpm test
# Lint and format
pnpm lint
pnpm formatRemember: doc.dev is a focused documentation platform. All documentation should support building, maintaining, and extending the documentation editing and management features. 📚