Context
The current documentation mixes different types of content (tutorials, how-to, reference, explanation) without clear separation. Inspired by the Diátaxis framework and data-star.dev documentation structure, this issue proposes a restructure to improve discoverability, learning path, and overall quality.
Current problems
- Guide/Introduction mixes tutorial (learning-oriented) and how-to (task-oriented) content
- "Going further" mixes explanation (why?) with how-to (how?)
- Recipes are buried deep inside the Guide sidebar instead of being a first-class section
- No "Concepts/Explanation" section — nowhere to explain why the framework works the way it does (data-attributes philosophy, component tree architecture, service singleton pattern)
- Getting Started tries to cover too much (install + first component + async registration)
- Homepage lacks an "aha moment" — no interactive demo, minimal pitch
Proposed structure
Top navigation
Guide | API | Utils | Examples
(Examples promoted from buried Recipes to top-level nav item)
Guide (learning path — linear, progressive)
Guide
├── Getting Started ← install + hello world only
├── Components ← what is a component, data-component, config
├── Refs ← data-ref, single/multiple, nested
├── Options ← data-option, types, defaults
├── Lifecycle ← mounted/destroyed/updated hooks
├── Events ← onRefEvent, custom events, emitting
├── Services ← scroll/resize/raf/pointer/etc.
├── Going Further
│ ├── Child Components ← managing component trees, lazy imports
│ ├── Decorators ← what they are, how to compose
│ ├── TypeScript ← typing components
│ └── Custom Services ← registering new services
├── Concepts ← NEW explanation section
│ ├── Philosophy ← why data-attributes? positioning vs React/Vue
│ ├── Component Tree ← how the tree is resolved, mounting order
│ └── Service Architecture ← singleton pattern, perf, lifecycle
└── Migration
├── v1 → v2
└── v2 → v3
API Reference (unchanged)
Already well-structured. Keep as-is.
Utils Reference (unchanged)
Already well-structured. Keep as-is.
Examples (promoted, expanded)
Examples
├── Counter Component (existing)
├── Accordion (existing)
├── Lazy Image (existing)
├── Scroll-linked Animation (existing)
├── Teleport Refs (existing)
├── Tabs (new)
├── Modal / Dialog (new)
├── Infinite Scroll (new)
├── Form Validation (new)
└── Page Transitions (new)
Each example follows a consistent template:
- What we are building (goal)
- HTML markup
- JS component
- App setup
- Live demo (embedded)
Phases
Phase 1 — Restructure navigation
Update config.ts sidebar and nav configuration.
Phase 2 — Rewrite Guide pages
Rewrite introduction pages as a linear progressive tutorial. Create Concepts section.
Phase 3 — Enhance Examples
Move recipes to examples/, add new examples, standardize format.
Phase 4 — Polish
Cross-link consistently, review all pages, improve homepage.
Acceptance criteria
Phase 1 — Navigation restructure
Phase 2 — Guide rewrite
Phase 3 — Examples
Phase 4 — Polish
Context
The current documentation mixes different types of content (tutorials, how-to, reference, explanation) without clear separation. Inspired by the Diátaxis framework and data-star.dev documentation structure, this issue proposes a restructure to improve discoverability, learning path, and overall quality.
Current problems
Proposed structure
Top navigation
(
Examplespromoted from buried Recipes to top-level nav item)Guide (learning path — linear, progressive)
API Reference (unchanged)
Already well-structured. Keep as-is.
Utils Reference (unchanged)
Already well-structured. Keep as-is.
Examples (promoted, expanded)
Each example follows a consistent template:
Phases
Phase 1 — Restructure navigation
Update
config.tssidebar and nav configuration.Phase 2 — Rewrite Guide pages
Rewrite introduction pages as a linear progressive tutorial. Create Concepts section.
Phase 3 — Enhance Examples
Move recipes to
examples/, add new examples, standardize format.Phase 4 — Polish
Cross-link consistently, review all pages, improve homepage.
Acceptance criteria
Phase 1 — Navigation restructure
guide/recipes/to a newexamples/directoryPhase 2 — Guide rewrite
Phase 3 — Examples
Phase 4 — Polish
vitepress buildsucceeds without link warnings)