5.1 KiB
5.1 KiB
Chapter Reorganization Summary
Overview
Documentation chapters have been reorganized to better reflect the logical flow from user interface definition (.gbui files) to styling (gbtheme), followed by functionality and configuration.
Chapter Changes
Before → After Mapping
| Old Chapter | Old Topic | New Chapter | New Topic |
|---|---|---|---|
| Chapter 4 | gbtheme (Theme & UI) | Chapter 4 | .gbui Interface Reference |
| Chapter 5 | gbdialog (BASIC) | Chapter 5 | gbtheme CSS Reference |
| Chapter 6 | gbapp/Rust Architecture | Chapter 6 | gbdialog (BASIC) |
| Chapter 7 | gbot Configuration | Chapter 7 | gbapp Architecture |
| Chapter 8 | Tooling | Chapter 8 | gbot Configuration |
| Chapter 9 | Features | Chapter 9 | API and Tooling |
| Chapter 10 | Contributing | Chapter 10 | Feature Reference |
| Chapter 10 | .gbui (was new) | Chapter 11 | Contributing |
| Chapter 11 | Authentication | Chapter 12 | Authentication |
| Chapter 12 | REST API | Chapter 13 | REST API |
Rationale for Changes
1. UI Before Styling (Chapters 4 & 5)
- .gbui files (Chapter 4) define the structure and behavior of user interfaces
- gbtheme (Chapter 5) provides CSS styling for those interfaces
- This order reflects the natural development flow: structure first, then styling
2. Content Migration
UI-specific content from the old Chapter 4 (gbtheme) has been moved to Chapter 4 (.gbui):
ui-interface.md→ Chapter 4html.md→html-templates.mdin Chapter 4desktop-mode.md→ Chapter 4console-mode.md→ Chapter 4
The gbtheme chapter (now Chapter 5) focuses purely on CSS theming:
css.md- CSS customizationstructure.md- Theme package structure- Theme examples (3D bevel, etc.)
3. Logical Flow
The new organization follows a more intuitive progression:
- Installation & Setup (Chapter 1)
- Package System (Chapter 2)
- Knowledge Base (Chapter 3)
- User Interface (Chapter 4 - .gbui)
- Styling (Chapter 5 - gbtheme)
- Dialog Logic (Chapter 6 - gbdialog/BASIC)
- Architecture (Chapter 7 - gbapp)
- Configuration (Chapter 8 - gbot)
- API & Tools (Chapter 9)
- Features (Chapter 10)
- Community (Chapter 11)
- Security (Chapter 12)
- REST API (Chapter 13)
File Structure Changes
Renamed Directories
docs/src/
├── chapter-04-gbui/ # Was chapter-10-gbui, includes UI content from old chapter-04
├── chapter-05-gbtheme/ # Was chapter-04, now focused on CSS only
├── chapter-06-gbdialog/ # Was chapter-05
├── chapter-07-gbapp/ # Was chapter-06
├── chapter-08-config/ # Was chapter-07
├── chapter-09-api/ # Was chapter-08
├── chapter-10-features/ # Was chapter-09
├── chapter-11-community/ # Was chapter-10
├── chapter-12-auth/ # Was chapter-11
└── chapter-13-api/ # Was chapter-12
Deleted Old Directories
The following empty directories were removed after content migration:
chapter-04/throughchapter-10/(old structure)chapter-10-gbui/(duplicate after move)
Key Benefits
- Better Learning Path: Users now learn about UI structure (.gbui) before styling (gbtheme)
- Clearer Separation: UI definition, styling, and logic are in separate chapters
- Consolidated UI Documentation: All UI-related content is now in Chapter 4
- Pure CSS Focus: Chapter 5 now focuses exclusively on theming without mixing UI concepts
Migration Checklist
- Move chapter directories to new numbers
- Transfer UI content from gbtheme to gbui chapter
- Update all chapter references in SUMMARY.md
- Update chapter references in main README.md
- Update cross-references within chapters
- Delete old empty directories
- Update keyword file references (chapter-05 → chapter-06-gbdialog)
- Fix authentication chapter references (chapter-11 → chapter-12-auth)
- Fix API chapter references (chapter-12 → chapter-13-api)
Files Moved Between Chapters
From chapter-05-gbtheme/ to chapter-04-gbui/:
ui-interface.md→ui-interface.mdhtml.md→html-templates.mddesktop-mode.md→desktop-mode.mdconsole-mode.md→console-mode.md
Updated Cross-References
All internal links have been updated to reflect the new chapter numbers:
- BASIC references:
../chapter-05/→../chapter-06-gbdialog/ - Theme references:
../chapter-04/→../chapter-05-gbtheme/ - UI references: Point to
../chapter-04-gbui/ - Configuration:
../chapter-07/→../chapter-08-config/ - Architecture:
../chapter-06/→../chapter-07-gbapp/
Testing Required
After reorganization, verify:
- All links in documentation work correctly
- Chapter flow makes logical sense for new users
- No broken references between chapters
- Table of contents (SUMMARY.md) renders properly
- Cross-references within chapters are accurate
Next Steps
- Review the new chapter flow with stakeholders
- Update any external documentation that references chapter numbers
- Consider adding transition guides between related chapters
- Update any automated documentation generation scripts