Skip to content

Commit d11456e

Browse files
documentation updates and organization
1 parent bf69ab4 commit d11456e

59 files changed

Lines changed: 733 additions & 1202 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.cursorrules

Lines changed: 43 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
**IMPORTANT:** This file, `claude.md`, and `AGENTS.md` must stay in sync. See "Sync Instructions" at bottom.
44

5-
**For universal development standards applicable to any project, see:** `DEVELOPMENT-STANDARDS.md`
5+
**For universal development standards applicable to any project, see:** `docs/guides/DEVELOPMENT-STANDARDS.md`
66

77
---
88

99
## Universal Standards (Apply to All Projects)
1010

11-
See `DEVELOPMENT-STANDARDS.md` for complete details on:
11+
See `docs/guides/DEVELOPMENT-STANDARDS.md` for complete details on:
1212
- Code style (TypeScript strict, Prettier, ESLint, 2-space indentation)
1313
- Testing strategy (unit/integration/E2E pyramid, Jest, ≥70% coverage)
1414
- Accessibility (WCAG 2.1 Level AA minimum)
@@ -67,7 +67,7 @@ npm run format # Auto-format with Prettier
6767
Every PR must include:
6868
1. **Progress log:** Create `docs/progress/YYYY_MM_DD.md` with work summary, blockers, next steps
6969
2. **Changelog:** Update `CHANGELOG.md` under `[Unreleased]` section
70-
3. **ADL entry:** If major architectural decision, create entry in `docs/ARCHITECTURE-DECISIONS.md`
70+
3. **ADL entry:** If major architectural decision, create entry in `docs/guides/ARCHITECTURE-DECISIONS.md`
7171
4. **User docs:** Update `user-docs/` if UI/behavior changed
7272
5. **Developer docs:** Update `docs/` if architecture/structure changed
7373

@@ -107,6 +107,44 @@ Every PR must include:
107107

108108
---
109109

110+
## Documentation Maintenance
111+
112+
**Keep all documentation up to date and well-organized.**
113+
114+
### Organization Standards
115+
- **Dev docs** (`dev-docs/`): ALL CAPS for technical docs, Title Case for user guides
116+
- **Example docs** (`docs/examples/`): kebab-case (e.g., `getting-started.md`)
117+
118+
**Directory Structure:**
119+
- `dev-docs/specs/` - Technical specifications
120+
- `dev-docs/guides/` - Development guides
121+
- `dev-docs/planning/` - Phase plans
122+
- `dev-docs/progress/` - Daily logs (YYYY_MM_DD.md)
123+
- `dev-docs/` (root) - User guides and project docs
124+
- `docs/examples/` - Example documentation files
125+
126+
### Update When
127+
- Adding/changing features → update relevant docs
128+
- Architectural decisions → create ADL entry
129+
- Setup/deployment changes → update user-docs/
130+
- Structure changes → update `DOCUMENTATION.md`
131+
- Daily work → create/update progress log
132+
133+
### Quality Checklist
134+
- [ ] All file paths/references accurate
135+
- [ ] Cross-references updated
136+
- [ ] Naming conventions followed
137+
- [ ] `DOCUMENTATION.md` updated if structure changed
138+
- [ ] No broken links
139+
- [ ] Code examples tested
140+
141+
### Cross-Reference Maintenance
142+
- Use relative paths: `docs/specs/EMBERDOCS-TECHNICAL-SPEC.md`
143+
- When moving files, update ALL references (use `grep` to find)
144+
- Update: README.md, DOCUMENTATION.md, planning docs, progress logs
145+
146+
---
147+
110148
## Sync Instructions
111149

112150
**These three files must always be in sync:**
@@ -116,7 +154,7 @@ Every PR must include:
116154

117155
**When updating standards:**
118156
- [ ] Update all three files with consistent changes
119-
- [ ] Keep universal rules (DEVELOPMENT-STANDARDS.md section) identical across all three
157+
- [ ] Keep universal rules (docs/guides/DEVELOPMENT-STANDARDS.md section) identical across all three
120158
- [ ] Project-specific overrides can be formatted differently per file
121159
- [ ] Include "Sync Instructions" section in each file
122160

@@ -126,3 +164,4 @@ Every PR must include:
126164
- New documentation requirement → add to all three
127165
- Architecture decision locked → add to ADL + all three files
128166
- Phase plan updated → reflect in guidelines
167+
- Documentation structure/organization changed → update all three + DOCUMENTATION.md

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ All tests must pass locally before submitting. Use the checklist below:
3636
Documentation is required for most PRs. Check the boxes that apply:
3737

3838
### Progress Log (Required for all PRs)
39-
- [ ] Daily progress log created in `docs/progress/YYYY_MM_DD_progress.md`
39+
- [ ] Daily progress log created in `dev-docs/progress/YYYY_MM_DD_progress.md`
4040
- Include: work summary, related PRs, any blockers, next steps
4141

4242
**Example:**
@@ -55,17 +55,17 @@ Documentation is required for most PRs. Check the boxes that apply:
5555
```
5656

5757
### Phase Plan Updates (If scope changed)
58-
- [ ] `docs/planning/mvp_phase01of02.md` updated with deliverable changes (if applicable)
59-
- [ ] `docs/planning/mvp_phase02of02.md` updated (if applicable)
58+
- [ ] `dev-docs/planning/mvp_phase01of02.md` updated with deliverable changes (if applicable)
59+
- [ ] `dev-docs/planning/mvp_phase02of02.md` updated (if applicable)
6060
- [ ] Exit criteria reviewed for go/no-go status
6161

6262
**Example:** "Updated D1.3 acceptance criteria per feedback in #42"
6363

6464
### User-Facing Documentation (If UI/behavior changed)
65-
- [ ] `user-docs/Setup.md` updated (setup/installation changes)
66-
- [ ] `user-docs/Deployment.md` updated (deployment steps changed)
67-
- [ ] `user-docs/Configuration.md` updated (new config options)
68-
- [ ] `user-docs/Troubleshooting.md` updated (new error cases documented)
65+
- [ ] `dev-docs/Setup.md` updated (setup/installation changes)
66+
- [ ] `dev-docs/Deployment.md` updated (deployment steps changed)
67+
- [ ] `dev-docs/Configuration.md` updated (new config options)
68+
- [ ] `dev-docs/Troubleshooting.md` updated (new error cases documented)
6969
- [ ] `CHANGELOG.md` updated under `[Unreleased]` section
7070

7171
### Developer Documentation (If architecture/code structure changed)
@@ -98,7 +98,7 @@ Alternatively, link to a Vercel preview: `https://emberdocs-pr-XX.vercel.app/`
9898
- [ ] All tests pass locally (`npm run check`)
9999
- [ ] No console errors/warnings in dev mode
100100
- [ ] Commit messages are clear and imperative (e.g., "Add error handling module")
101-
- [ ] Progress log created in `docs/progress/`
101+
- [ ] Progress log created in `dev-docs/progress/`
102102
- [ ] Relevant docs updated (user or developer)
103103
- [ ] Changelog updated under `[Unreleased]`
104104
- [ ] No unrelated changes (scope-focused)

AGENTS.md

Lines changed: 113 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
**IMPORTANT:** This file, `claude.md`, and `.cursorrules` must stay in sync. See "Sync Instructions" at bottom.
44

5-
**For universal development standards applicable to any project, see:** `DEVELOPMENT-STANDARDS.md`
5+
**For universal development standards applicable to any project, see:** `dev-docs/guides/DEVELOPMENT-STANDARDS.md`
66

77
---
88

99
## Universal Standards (Apply to All Projects)
1010

11-
See `DEVELOPMENT-STANDARDS.md` for comprehensive details on:
11+
See `dev-docs/guides/DEVELOPMENT-STANDARDS.md` for comprehensive details on:
1212
- **Code Style:** TypeScript strict, Prettier, ESLint, naming conventions
1313
- **Testing:** Unit/integration/E2E pyramid, Jest, coverage targets ≥70%
1414
- **Git & Version Control:** Conventional Commits, branch strategy, semantic versioning
@@ -45,9 +45,9 @@ npm run dev
4545
- [ ] Repo cloned and dependencies installed
4646
- [ ] Dev server running at http://localhost:3000
4747
- [ ] All tests pass: `npm run check`
48-
- [ ] Read `docs/QUICK-REFERENCE.md` (5 min)
49-
- [ ] Reviewed Phase 01 deliverables in `docs/planning/mvp_phase01of02.md`
50-
- [ ] Checked locked decisions in `docs/ARCHITECTURE-DECISIONS.md`
48+
- [ ] Read `dev-docs/Quick-Reference.md` (5 min)
49+
- [ ] Reviewed Phase 01 deliverables in `dev-docs/planning/mvp_phase01of02.md`
50+
- [ ] Checked locked decisions in `dev-docs/guides/ARCHITECTURE-DECISIONS.md`
5151
- [ ] Configured Git user: `git config user.name "Your Name"`
5252

5353
---
@@ -206,7 +206,7 @@ Describe what changed and why in 1–3 sentences.
206206
- [x] Manual testing in browser
207207

208208
## Documentation
209-
- [x] Progress log created: `docs/progress/YYYY_MM_DD.md`
209+
- [x] Progress log created: `dev-docs/progress/YYYY_MM_DD.md`
210210
- [x] CHANGELOG.md updated under `[Unreleased]`
211211
- [x] User docs updated (if UI changed)
212212
- [x] Developer docs updated (if architecture changed)
@@ -270,7 +270,7 @@ git branch -d feature/search-indexing
270270

271271
### Progress Log (Required)
272272

273-
**File:** `docs/progress/YYYY_MM_DD.md` (e.g., `docs/progress/2025_12_24.md`)
273+
**File:** `dev-docs/progress/YYYY_MM_DD.md` (e.g., `dev-docs/progress/2025_12_24.md`)
274274

275275
**Template:**
276276
```markdown
@@ -313,7 +313,7 @@ git branch -d feature/search-indexing
313313

314314
### Architecture Decision (If applicable)
315315

316-
**File:** `docs/ARCHITECTURE-DECISIONS.md`
316+
**File:** `dev-docs/guides/ARCHITECTURE-DECISIONS.md`
317317

318318
If you made a major architectural decision, create an ADL entry:
319319

@@ -440,6 +440,100 @@ Use GitHub Discussions for:
440440

441441
---
442442

443+
## Documentation Maintenance
444+
445+
**IMPORTANT:** Documentation must be kept up to date and well-organized. This is a requirement for all contributions.
446+
447+
### Documentation Organization
448+
449+
**Naming Conventions:**
450+
- **Developer docs** (`dev-docs/`): ALL CAPS with hyphens for technical docs, Title Case for user guides
451+
- Technical examples: `ARCHITECTURE-DECISIONS.md` (in `dev-docs/guides/`), `EMBERDOCS-TECHNICAL-SPEC.md` (in `dev-docs/specs/`)
452+
- User guide examples: `Setup.md`, `Deployment.md`, `Quick-Reference.md` (in `dev-docs/`)
453+
- **Example docs** (`docs/examples/`): kebab-case
454+
- Examples: `getting-started.md`, `api-reference.md`
455+
456+
**Directory Structure:**
457+
- `dev-docs/specs/` - Technical specifications (EMBERDOCS-TECHNICAL-SPEC.md, EMBERDOCS-API-SPEC.md, etc.)
458+
- `dev-docs/guides/` - Development guides (ARCHITECTURE-DECISIONS.md, DEVELOPMENT-STANDARDS.md, etc.)
459+
- `dev-docs/planning/` - Phase plans and planning documents
460+
- `dev-docs/progress/` - Daily progress logs (format: `YYYY_MM_DD.md` or `YYYY_MM_DD_description.md`)
461+
- `dev-docs/` (root) - User guides and project overview docs (Setup.md, Deployment.md, Quick-Reference.md, PROJECT-OVERVIEW.md, etc.)
462+
- `docs/examples/` - Example documentation files (user-facing sample docs)
463+
464+
**Reference Documentation:**
465+
- `DOCUMENTATION.md` at repository root provides complete documentation index
466+
- Always update `DOCUMENTATION.md` when adding, moving, or renaming documentation files
467+
468+
### When to Update Documentation
469+
470+
**Always update documentation when:**
471+
- Adding new features or changing existing functionality
472+
- Making architectural decisions (create ADL entry in `dev-docs/guides/ARCHITECTURE-DECISIONS.md`)
473+
- Changing setup or deployment processes
474+
- Updating dependencies or tools
475+
- Completing deliverables (update progress logs in `dev-docs/progress/`)
476+
- Fixing bugs that affect user workflows
477+
478+
**Specific documentation to update:**
479+
- **Technical Specs** (`dev-docs/specs/`): When architecture, API, or system design changes
480+
- **Architecture Decisions** (`dev-docs/guides/ARCHITECTURE-DECISIONS.md`): When making major technical decisions
481+
- **Progress Logs** (`dev-docs/progress/`): Daily (end of work day) - required for all work sessions
482+
- **User Docs** (`dev-docs/`): When features change or new setup steps added
483+
- **README.md**: When project overview, quick start, or key features change
484+
- **DOCUMENTATION.md**: When documentation structure changes (new files, moved files, renamed files)
485+
486+
### Documentation Quality Checklist
487+
488+
**Before committing documentation changes:**
489+
- [ ] All file paths and references are accurate (use relative paths, not absolute)
490+
- [ ] Cross-references between documents are updated
491+
- [ ] Naming conventions are followed (ALL CAPS for dev docs, Title Case for user docs)
492+
- [ ] `DOCUMENTATION.md` is updated if structure changed
493+
- [ ] Progress log created if this is a work session (`dev-docs/progress/YYYY_MM_DD.md`)
494+
- [ ] No broken links (verify with `grep` or link checker)
495+
- [ ] Code examples are tested and accurate
496+
- [ ] Screenshots/mockups are up to date (if applicable)
497+
498+
### Cross-Reference Maintenance
499+
500+
**Always maintain accurate cross-references:**
501+
- Use relative paths: `dev-docs/specs/EMBERDOCS-TECHNICAL-SPEC.md` (not absolute paths)
502+
- When moving files, update ALL references across the codebase
503+
- Use `grep` to find all references before moving/renaming files:
504+
```bash
505+
grep -r "old-filename" . --include="*.md"
506+
```
507+
- Update references in: README.md, DOCUMENTATION.md, planning docs, progress logs, and internal cross-references
508+
509+
### Documentation Review Process
510+
511+
**During code review, reviewers verify:**
512+
- [ ] Documentation changes match code changes
513+
- [ ] New features are documented
514+
- [ ] Breaking changes are clearly marked
515+
- [ ] Examples and code snippets are accurate
516+
- [ ] Links and references work
517+
- [ ] Progress log is created/updated
518+
519+
**Before merging PR:**
520+
- [ ] All documentation references are valid
521+
- [ ] `DOCUMENTATION.md` reflects current structure
522+
- [ ] No orphaned documentation files
523+
- [ ] Documentation follows naming conventions
524+
525+
### Documentation as Part of PR Requirements
526+
527+
**Every PR must include:**
528+
1. **Progress Log** - Create `dev-docs/progress/YYYY_MM_DD.md` with work summary
529+
2. **Changelog** - Update `CHANGELOG.md` under `[Unreleased]` section
530+
3. **Documentation Updates** - Update relevant docs (dev-docs/ if UI or architecture changed)
531+
4. **DOCUMENTATION.md** - Update if documentation structure changed
532+
533+
**See also:** Documentation Requirements section above for detailed templates.
534+
535+
---
536+
443537
## Sync Instructions
444538

445539
**These three files must always stay in sync:**
@@ -460,28 +554,29 @@ Use GitHub Discussions for:
460554
- Architecture decision locked (also create ADL entry)
461555
- Phase plan updated
462556
- Git workflow changed
557+
- Documentation structure/organization changed (also update DOCUMENTATION.md)
463558

464559
---
465560

466561
## Quick Links
467562

468-
- **Phase Plans:** `docs/planning/mvp_phase01of02.md`, `docs/planning/mvp_phase02of02.md`
469-
- **Architecture Decisions:** `docs/ARCHITECTURE-DECISIONS.md`
470-
- **Developer Cheat Sheet:** `docs/QUICK-REFERENCE.md`
471-
- **Development Standards:** `DEVELOPMENT-STANDARDS.md`
472-
- **Setup Guide:** `docs/DEV-SETUP-VERIFICATION.md`
473-
- **Feature Dependencies:** `docs/FEATURE-DEPENDENCIES.md`
563+
- **Phase Plans:** `dev-docs/planning/mvp_phase01of02.md`, `dev-docs/planning/mvp_phase02of02.md`
564+
- **Architecture Decisions:** `dev-docs/guides/ARCHITECTURE-DECISIONS.md`
565+
- **Developer Cheat Sheet:** `dev-docs/Quick-Reference.md`
566+
- **Development Standards:** `dev-docs/guides/DEVELOPMENT-STANDARDS.md`
567+
- **Setup Guide:** `dev-docs/guides/DEV-SETUP-VERIFICATION.md`
568+
- **Feature Dependencies:** `dev-docs/guides/FEATURE-DEPENDENCIES.md`
474569
- **Changelog:** `CHANGELOG.md`
475570
- **PR Template:** `.github/PULL_REQUEST_TEMPLATE.md`
476571

477572
---
478573

479574
## Getting Help
480575

481-
- **Code Questions:** Check `docs/QUICK-REFERENCE.md`
482-
- **Architecture Questions:** See `docs/ARCHITECTURE-DECISIONS.md`
483-
- **Standards Questions:** Read `DEVELOPMENT-STANDARDS.md` or `claude.md`
484-
- **Setup Issues:** Follow `docs/DEV-SETUP-VERIFICATION.md`
576+
- **Code Questions:** Check `dev-docs/Quick-Reference.md`
577+
- **Architecture Questions:** See `dev-docs/guides/ARCHITECTURE-DECISIONS.md`
578+
- **Standards Questions:** Read `dev-docs/guides/DEVELOPMENT-STANDARDS.md` or `claude.md`
579+
- **Setup Issues:** Follow `dev-docs/guides/DEV-SETUP-VERIFICATION.md`
485580
- **GitHub Issues:** Open an issue for bugs or feature requests
486581
- **GitHub Discussions:** Ask questions or discuss design
487582
- **Project Board:** View progress and blockers

0 commit comments

Comments
 (0)