Skip to content

Commit 823376f

Browse files
committed
feat: multi-page website
1 parent f45bb07 commit 823376f

14 files changed

+4054
-255
lines changed

CLAUDE.md

Lines changed: 72 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ CCUX (Claude Code UI Generator) is a sophisticated Python CLI tool that automati
1010
- **Interactive Interface** (`src/ccux/interactive.py`): Rich terminal application with project management
1111
- **Main CLI** (`src/ccux/cli.py`): User-facing CLI with help system and command delegation
1212
- **Implementation CLI** (`src/ccux/cli_old.py`): Core command implementations and business logic
13+
- **Multi-Page Generator** (`src/ccux/multipage.py`): Orchestrator for intelligent multi-page website generation
1314
- **Modular Core System** (`src/ccux/core/`): Organized utility modules by function
1415
- `usage_tracking.py`: Cost calculation and token analytics
1516
- `signal_handling.py`: Graceful interrupt handling
@@ -20,6 +21,12 @@ CCUX (Claude Code UI Generator) is a sophisticated Python CLI tool that automati
2021
- `form_handling.py`: Interactive form generation and management
2122
- `section_management.py`: Section replacement with semantic ordering
2223
- `animation_utilities.py`: Theme-appropriate animations
24+
- `page_analysis.py`: Intelligent page detection for multi-page websites
25+
- `page_selection.py`: Interactive page selection interface with confidence scoring
26+
- `parallel_generator.py`: Multi-threaded page generation engine
27+
- `navigation_builder.py`: Cross-page navigation system builder
28+
- `sitemap_generator.py`: SEO sitemap and robots.txt generation
29+
- `retry_handler.py`: Error handling and retry logic for robust generation
2330
- **Theme System** (`src/ccux/theme_specifications.py`): 13 professional design themes
2431
- **Prompt Templates** (`src/ccux/prompt_templates.py`): 12-phase design methodology prompts
2532
- **Web Scraping** (`src/ccux/scrape.py`, `src/ccux/scrape_simple.py`): Competitor analysis automation
@@ -28,7 +35,8 @@ CCUX (Claude Code UI Generator) is a sophisticated Python CLI tool that automati
2835

2936
### 🎨 Interactive Application
3037
The main interface launched with `ccux init`:
31-
- **Project Creation Wizard**: Guided landing page generation with theme/form selection
38+
- **Single-Page Creation**: Guided landing page generation with theme/form selection
39+
- **Multi-Page Websites**: Complete website generation with intelligent page analysis
3240
- **Multi-Project Management**: Discover, select, and manage multiple projects
3341
- **Visual Section Editing**: Number-based section selection with live feedback
3442
- **Theme Switching**: Interactive theme selection with preview
@@ -79,7 +87,8 @@ Launch CCUX Interactive Application (Main Entry Point)
7987
**Description:** The primary interface providing guided project creation, management, and customization through rich terminal menus.
8088

8189
**Features:**
82-
- Project creation wizard with theme and form selection
90+
- Single-page project creation wizard with theme and form selection
91+
- **Multi-page website generation** with intelligent page analysis and parallel processing
8392
- Multi-project management and discovery
8493
- Visual section regeneration with numbered selection
8594
- Interactive theme switching with live preview
@@ -159,6 +168,45 @@ ccux regen --section pricing --file custom/page.html
159168

160169
**Note:** Advanced commands like `editgen`, `theme`, and `form` are available through the interactive application launched with `ccux init`. The interactive interface provides guided workflows for these advanced features with rich terminal UI and visual feedback.
161170

171+
### `ccux multipage`
172+
Generate intelligent multi-page website with parallel processing
173+
174+
**Options:**
175+
- `--desc, -d TEXT`: Product description for multi-page website
176+
- `--desc-file FILE`: Path to file containing product description (supports .txt and .pdf files)
177+
- `--theme, -t THEME`: Design theme (default: minimal)
178+
- `--base-url, -u URL`: Base URL for sitemap generation (default: https://example.com)
179+
- `--output, -o DIR`: Output directory
180+
181+
**Key Features:**
182+
- **Intelligent Analysis**: AI-powered page detection with confidence scoring
183+
- **Interactive Selection**: Rich terminal interface for page selection
184+
- **Parallel Generation**: Generate multiple pages simultaneously
185+
- **Smart Navigation**: Automatic cross-page navigation and linking
186+
- **SEO Optimization**: XML/HTML sitemaps and robots.txt generation
187+
- **Error Handling**: Graceful failure recovery with retry options
188+
189+
**Examples:**
190+
```bash
191+
# Basic multi-page website
192+
ccux multipage --desc "SaaS platform for remote teams"
193+
194+
# With custom theme and base URL
195+
ccux multipage --desc "E-commerce platform" --theme morphism --base-url https://mystore.com
196+
197+
# From PDF description file
198+
ccux multipage --desc-file product-description.pdf --theme brutalist
199+
200+
# Interactive mode (recommended)
201+
ccux init
202+
# Then select "Create Multi-Page Website" from the menu
203+
```
204+
205+
**Three-Phase Process:**
206+
1. **Analysis Phase**: AI analyzes description → Suggests pages → Interactive selection
207+
2. **Generation Phase**: Parallel page generation → Real-time progress → Error handling
208+
3. **Connection Phase**: Build navigation → Generate sitemaps → SEO optimization
209+
162210
### `ccux help`
163211
Comprehensive help system with specialized topics
164212

@@ -234,10 +282,20 @@ CCUX implements a comprehensive 12-phase professional design methodology:
234282
## Output Structure
235283

236284
### Generated Files
285+
286+
**Single-Page Projects:**
237287
- `index.html` or `App.jsx` - Main landing page file
238288
- `design_analysis.json` - Complete design research and metadata
239289
- `*.jpg` - Competitor screenshot references (when applicable)
240290

291+
**Multi-Page Projects:**
292+
- `index.html` - Homepage file
293+
- `features/index.html`, `pricing/index.html`, etc. - Individual page files
294+
- `multipage_analysis.json` - Multi-page generation metadata
295+
- `sitemap.xml` - XML sitemap for search engines
296+
- `sitemap.html` - Human-readable sitemap
297+
- `robots.txt` - Search engine crawler instructions
298+
241299
### HTML Features
242300
- **Semantic Structure** with proper heading hierarchy and ARIA labels
243301
- **TailwindCSS Styling** with custom design system implementation
@@ -318,6 +376,7 @@ src/ccux/
318376
├── cli.py # User-facing CLI with help system
319377
├── cli_old.py # Implementation CLI with core commands
320378
├── interactive.py # Interactive application interface
379+
├── multipage.py # Multi-page website generation orchestrator
321380
├── core/ # Modular utility system
322381
│ ├── __init__.py
323382
│ ├── README.md # Core modules documentation
@@ -329,7 +388,13 @@ src/ccux/
329388
│ ├── content_processing.py # HTML validation and processing
330389
│ ├── form_handling.py # Form generation and management
331390
│ ├── section_management.py # Section replacement logic
332-
│ └── animation_utilities.py # Theme-appropriate animations
391+
│ ├── animation_utilities.py # Theme-appropriate animations
392+
│ ├── page_analysis.py # Intelligent page detection for multi-page websites
393+
│ ├── page_selection.py # Interactive page selection interface
394+
│ ├── parallel_generator.py # Multi-threaded page generation engine
395+
│ ├── navigation_builder.py # Cross-page navigation system builder
396+
│ ├── sitemap_generator.py # SEO sitemap and robots.txt generation
397+
│ └── retry_handler.py # Error handling and retry logic
333398
├── prompt_templates.py # 12-phase design methodology prompts
334399
├── theme_specifications.py # Theme system with 13 professional themes
335400
├── scrape.py # Advanced Playwright web scraping
@@ -344,10 +409,12 @@ The recent reorganization provides significant improvements:
344409
- **78% Reduction**: Eliminated duplicate code through smart modularization
345410
- **Organized Core Modules**: Each utility function exists in only one place
346411
- **Clean Imports**: Clear dependency relationships between modules
412+
- **Multi-Page Integration**: 6 new specialized modules seamlessly integrated
347413
348414
### 📖 **Improved Readability**
349415
- `cli.py`: Clean user interface with comprehensive help system
350416
- `cli_old.py`: Focused implementation with core business logic
417+
- `multipage.py`: Dedicated orchestrator for multi-page website generation
351418
- `core/` modules: Logical organization by function and responsibility
352419
353420
### 🔧 **Better Maintainability**
@@ -359,8 +426,9 @@ The recent reorganization provides significant improvements:
359426
### 🏗️ **Enhanced Development**
360427
- New features can be added to appropriate modules
361428
- Import system makes dependencies clear and manageable
362-
- Core utilities shared between CLI and interactive modes
429+
- Core utilities shared between CLI, interactive, and multi-page modes
363430
- Better code reuse across the entire application
431+
- Parallel processing capabilities for scalable website generation
364432
365433
## Important Notes
366434

0 commit comments

Comments
 (0)