mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-09 02:24:11 +08:00
- Updated collaborative planning prompt to support parallel task generation with subagents. - Enhanced workflow to include explicit lifecycle management for agents and conflict detection. - Revised output structure to accommodate parallel planning results. - Added new LocaleDropdownNavbarItem component for language selection in the documentation site. - Introduced styles for the language icon in the dropdown. - Modified issue execution process to streamline commit messages and report completion with full solution metadata.
CCW Documentation Site
This is the documentation site for CCW (Claude Code Workflow), built with Docusaurus.
🚀 Quick Start
# Install dependencies
npm install
# Start development server (port 3001)
npm start
# Build for production
npm run build
# Serve production build locally
npm serve
📁 Project Structure
docs-site/
├── docs/ # Documentation content
│ ├── overview.mdx # Landing page
│ ├── quick-start.mdx # Getting started
│ ├── commands/ # Command documentation
│ │ ├── workflows/ # Workflow commands (14)
│ │ ├── issue/ # Issue commands (7)
│ │ ├── cli/ # CLI commands (2)
│ │ ├── memory/ # Memory commands (6)
│ │ └── general/ # General commands (7)
│ ├── workflows/ # Workflow guides
│ │ ├── introduction.mdx
│ │ ├── level-*.mdx
│ │ └── faq.mdx
│ └── faq.mdx # Main FAQ
├── i18n/ # Internationalization
│ └── zh/ # Chinese translations
├── src/
│ ├── css/
│ │ ├── custom.css # Custom styles
│ │ └── variables.css # CSS variables (CCW theme)
│ └── components/ # Custom React components
├── docusaurus.config.ts # Main configuration
├── sidebars.ts # Sidebar navigation
└── package.json
🎨 Design System
The documentation uses CCW's design tokens:
- Primary: Blue (HSL 221, 83%, 53%)
- Accent: Green (HSL 142, 76%, 36%)
- Dark Mode: Full support with dracula syntax theme
- Mermaid: Workflow diagrams with light/dark themes
🔗 Integration with CCW Frontend
The documentation is integrated as a sub-route (/docs) in the main CCW frontend:
- Development: Vite proxies
/docs→http://localhost:3001 - Production: Nginx serves both apps with
/docslocation
See ../frontend/vite.config.ts for proxy configuration.
📝 Writing Documentation
File Naming
- Use kebab-case:
workflow-lite-plan.mdx - Match sidebar IDs:
id: workflow-lite-plan
Frontmatter Template
---
title: Workflow: Lite Plan
sidebar_label: workflow:lite-plan
sidebar_position: 3
description: Lightweight in-memory planning for simple tasks
---
Mermaid Diagrams
graph TD
Start([Start]) --> Plan([Planning])
Plan --> Execute([Execution])
Admonitions
:::tip Pro Tip
Use this workflow for...
:::
:::warning Warning
This feature is experimental
:::
:::danger Caution
This operation cannot be undone
:::
🌍 Internationalization
Adding New Translations
- Create MDX file in
i18n/zh/docusaurus-plugin-content-docs/current/ - Mirror the English docs structure
- Run:
npm run write-translations -- --locale zh
Translation Status
- ✅ English (EN) - Complete
- 🔄 Chinese (ZH) - Interface translated, content pending
🔧 Configuration
Docusaurus Config (docusaurus.config.ts)
- Presets: Classic (docs only, no blog)
- Themes: Mermaid for diagrams
- i18n: EN (default), ZH
- Base URL:
/docs/
Sidebar Config (sidebars.ts)
Organized by:
- Quick Start
- Commands (by category)
- Workflows (by level)
- FAQ
📦 Dependencies
| Package | Version | Purpose |
|---|---|---|
| @docusaurus/core | ^3.5.2 | Core framework |
| @docusaurus/preset-classic | ^3.5.2 | Default preset |
| @docusaurus/theme-mermaid | ^3.5.2 | Diagram support |
| react | ^18.3.1 | UI framework |
🚢 Deployment
Build
npm run build
Output: build/ directory
Deploy to Static Hosting
# Surge
npm run deploy -- --surge
# GitHub Pages
npm run deploy -- --git
# Custom server
npm run serve
🐛 Troubleshooting
Port Already in Use
# Kill process on port 3001
npx kill-port 3001
# Or use different port
npm start -- --port 3002
Build Errors
# Clear cache
npm run clear
# Reinstall dependencies
rm -rf node_modules package-lock.json
npm install
📚 Resources
🤝 Contributing
- Edit/add MDX files in
docs/ - Update
sidebars.tsif adding new pages - Run
npm startto preview - Test both light and dark modes
- Check mobile responsiveness
📄 License
Same as CCW main project.