Skip to content

Documentation Enhancement Plan - 6 Week Roadmap #103

Description

@juanmanueldaza

Documentation Enhancement Plan - 6 Week Roadmap

📊 Overview

This issue tracks the comprehensive 6-week documentation enhancement plan based on the Documentation Audit Report.

Current Quality Score: A- (88/100)
Total Effort: ~50 hours over 6 weeks
Priority: 🔴 HIGH - Critical for developer experience


🎯 Goals

  1. Consolidate documentation - Move 15+ files from root to docs/ directory
  2. Enhance content - Add JSDoc, Gemini CLI docs, gcloud error handling
  3. Improve quality - Implement linting, add visuals, create searchable docs site
  4. Advanced features - Video walkthroughs, tutorials, cost management docs

Phase 1: Structure & Organization (Week 1 - 7 hours)

Priority: 🔴 CRITICAL

Task 1.1: Documentation Consolidation (3 hours)

Move all documentation from root directory to docs/:

# Create directories
mkdir -p docs/sessions docs/fixes

# Move session summaries (5 files)
mv SESSION-*.md docs/sessions/

# Move security docs (6 files - handle duplicates)
mv SECURITY-ASSESSMENT-REPORT.md docs/security/
mv SECURITY-ASSESSMENT-VALIDATION.md docs/security/
mv SECURITY-FINDINGS-REMEDIATION-STATUS.md docs/security/
mv SECURITY-REMEDIATION-PLAN.md docs/security/

# Archive root duplicates
mv SECURITY-AUDIT.md docs/security/SECURITY-AUDIT-ROOT-ARCHIVED.md
mv SECURITY-CLEARANCE-REPORT.md docs/security/SECURITY-CLEARANCE-REPORT-ROOT-ARCHIVED.md

# Move deployment docs (2 files)
mv PRODUCTION-DEPLOYMENT-SUMMARY.md docs/deployment/
mv DEPLOYMENT-TRANSITION-PLAN.md docs/deployment/DEPLOYMENT-TRANSITION-PLAN-ROOT-ARCHIVED.md

# Move fixes and archive
mv OAUTH-ALLOWLIST-FIX.md docs/fixes/
mv README-old.md docs/archive/
mv DOCUMENTATION-AUDIT-REPORT.md docs/

Acceptance Criteria:

  • Root directory contains only: README.md, LICENSE, config files, Dockerfile
  • All 15+ docs moved to appropriate subdirectories
  • Git history preserved (use git mv or verify with git log --follow)

Task 1.2: Update Internal Links (2 hours)

Update all documentation links to reflect new locations.

Steps:

  1. Find all references to moved files:
grep -r "SESSION-[0-9]" docs/ .github/ README.md > links-to-fix.txt
grep -r "SECURITY-ASSESSMENT" docs/ .github/ README.md >> links-to-fix.txt
  1. Update docs/README.md with new sections
  2. Update root README.md if needed
  3. Update cross-references in moved files

Validation:

npx markdown-link-check docs/README.md
npx markdown-link-check README.md

Acceptance Criteria:

  • All internal links updated
  • docs/README.md includes new sections (sessions/, fixes/)
  • Zero broken links (validated by markdown-link-check)

Task 1.3: Create CHANGELOG.md (2 hours)

Implement semantic versioning with comprehensive changelog.

Steps:

  1. Install tooling:
npm install --save-dev conventional-changelog-cli standard-version
npm pkg set scripts.version="standard-version"
npm pkg set scripts.release="standard-version --release-as"
  1. Create CHANGELOG.md (see audit report for template)
  2. Update CONTRIBUTING.md with versioning section
  3. Test workflow with dry-run

Acceptance Criteria:

  • CHANGELOG.md exists at root with initial v0.1.0 entry
  • npm scripts configured (version, release)
  • CONTRIBUTING.md updated with versioning guide
  • Dry-run test passes: npm run release -- --dry-run --release-as patch

Phase 2: Content Enhancement (Week 2 - 7 hours)

Priority: 🟠 HIGH

Task 2.1: Add Component JSDoc (4 hours)

Document top 10 React components with comprehensive JSDoc.

Components:

  1. src/components/chat/chat-interface.tsx
  2. src/components/chat/chat-message.tsx
  3. src/components/chat/chat-input.tsx
  4. src/components/chat/chat-history.tsx
  5. src/components/chat/image-upload.tsx
  6. src/components/ui/button.tsx
  7. src/components/ui/card.tsx
  8. src/components/ui/dialog.tsx
  9. src/components/ui/input.tsx
  10. src/components/ui/textarea.tsx

Acceptance Criteria:

  • All 10 components have complete JSDoc (description, params, returns, examples)
  • TypeDoc generates documentation without errors
  • Each component has at least 1 usage example

Validation:

npm install --save-dev typedoc
npx typedoc --out docs-api src/components
# Open docs-api/index.html and verify all 10 components documented

Task 2.2: Document Gemini CLI (1 hour)

Add comprehensive Gemini CLI documentation to docs/DEVELOPMENT.md.

Content (see audit report for full template):

  • Installation (npm global vs npx)
  • Setup (API key from AI Studio)
  • Basic usage (generate, chat, streaming)
  • Model management (list, get, compare)
  • Advanced features (temperature, max-tokens, system prompts)
  • Multimodal input (text + images)
  • Integration with project (prompt prototyping)
  • Troubleshooting (API key, region, quotas)

Acceptance Criteria:

  • New section added to DEVELOPMENT.md after "Google Cloud Setup"
  • Includes working code examples (tested)
  • Links to official Gemini CLI docs

Task 2.3: Add gcloud Error Handling (2 hours)

Document common gcloud errors and solutions in deployment guides.

Files to Update:

  1. docs/deployment/CLOUD-RUN-DEPLOYMENT.md (60 min)
  2. docs/deployment/MANUAL-DEPLOY-COMMANDS.md (30 min)
  3. docs/deployment/GITHUB-ACTIONS-SETUP.md (30 min)

Common Errors to Document (see audit report for full examples):

  1. Permission denied on secrets
  2. Revision failed health checks
  3. Workload Identity Federation failed
  4. Image pull failed
  5. Secret not found
  6. Quota exceeded
  7. Invalid OAuth redirect URI

Acceptance Criteria:

  • Each error includes: symptom, root cause, diagnosis steps, solution
  • Working code examples for all solutions
  • Cross-references to related docs

Phase 3: Quality & Tooling (Weeks 3-4 - 16 hours)

Priority: 🟡 MEDIUM

Task 3.1: Implement Documentation Linting (3 hours)

  • Install markdownlint-cli2, cspell, remark-validate-links
  • Configure linters (.markdownlint-cli2.jsonc, .cspell.json)
  • Add GitHub Actions workflow (docs-quality.yml)
  • Add pre-commit hooks for .md files

Task 3.2: Visual Documentation (4 hours)

  • Add screenshots for OAuth setup (3 images)
  • Add screenshots for GCP Secret Manager (2 images)
  • Add screenshots for Cloud Run deployment (2 images)
  • Add screenshots for local development (2 images)
  • Optimize images (imagemin)
  • Update guides with embedded screenshots

Task 3.3: Add Alt Text to Diagrams (2 hours)

  • Add descriptive alt text to all Mermaid diagrams
  • Update architecture-summary.md (3 diagrams)
  • Update CI-CD.md (2 diagrams)
  • Update MODEL-SELECTION.md (1 diagram)

Task 3.4: Create MkDocs Site (4 hours)

  • Install mkdocs-material
  • Create mkdocs.yml configuration
  • Set up navigation structure
  • Add GitHub Pages deployment workflow
  • Test locally: mkdocs serve
  • Deploy to https://roofsonfire.github.io/chat

Task 3.5: Common Mistakes Guide (2 hours)

  • Create docs/guides/COMMON-MISTAKES.md
  • Document environment config mistakes
  • Document Google Cloud setup mistakes
  • Document development mistakes
  • Document deployment mistakes
  • Document testing mistakes

Task 3.6: Add Onboarding Checklist (1 hour)

  • Update docs/guides/QUICKSTART.md
  • Add comprehensive onboarding checklist
  • Include verification steps
  • Link to Common Mistakes Guide

Phase 4: Advanced Enhancements (Weeks 5-6 - 20 hours)

Priority: 🟢 LOW (Future Enhancement)

Task 4.1: Video Walkthrough (4 hours)

  • Record 2-3 min setup guide (OBS Studio)
  • Edit and add captions
  • Upload to YouTube (unlisted)
  • Embed in README.md

Task 4.2: Interactive Tutorials (6 hours)

  • Create docs/tutorials/ directory
  • Write 5 tutorials (beginner to advanced)
  • Add hands-on exercises
  • Link from main docs

Task 4.3: API Documentation Enhancement (4 hours)

  • Create OpenAPI/Swagger spec (docs/api/openapi.yaml)
  • Set up Swagger UI
  • Add interactive examples
  • Deploy API docs

Task 4.4: Cost Management Documentation (3 hours)

  • Create docs/deployment/COST-MANAGEMENT.md
  • Document GCP cost breakdown
  • Add optimization strategies
  • Include monitoring and alerts

Task 4.5: Accessibility Audit (3 hours)

  • Run pa11y-ci accessibility checks
  • Fix heading hierarchy issues
  • Improve link text
  • Ensure WCAG AA compliance

📊 Success Metrics

Track progress weekly:

Metric Current Target Status
Docs in root directory 15 1 🔴
Broken internal links ? 0 🔴
JSDoc coverage (components) ~40% 80%+ 🔴
Spelling errors ? 0 🔴
Time to first contribution ~30 min <15 min 🔴
Documentation site live 🔴
Video walkthrough 🔴
Cost docs 🔴

🚨 Dependencies & Risks

Critical Dependencies:

  • Task 1.2 (Link updates) depends on Task 1.1 (File moves) - HIGH blocker risk
  • Task 3.1 (Linting) depends on Tasks 1.1 & 1.2 - MEDIUM blocker risk
  • Task 3.4 (MkDocs) depends on Tasks 1.1 & 1.2 - MEDIUM blocker risk

Mitigation:

  • ✅ Use git mv to preserve file history
  • ✅ Run markdown-link-check before/after moves
  • ✅ Phases are independent - can delay Phase 4 if needed

👥 Team Roles

Phase Primary Owner Reviewers Approvers
Phase 1 Technical Writer DevOps, Lead Dev Tech Lead
Phase 2 Tech Writer + Devs Core Team Tech Lead
Phase 3 Technical Writer DevOps, QA Product Owner
Phase 4 Tech Writer + UX Marketing Product Owner

📅 Timeline

Week Phase Hours Completion Target
1 Structure & Organization 7 Nov 18, 2025
2 Content Enhancement 7 Nov 25, 2025
3-4 Quality & Tooling 16 Dec 9, 2025
5-6 Advanced Enhancements 20 Dec 23, 2025

📚 Resources


Issue Created: November 11, 2025
Next Review: Weekly on Mondays
Labels: documentation, enhancement, good first issue (for some subtasks)

Let's transform our documentation into world-class resources! 🚀

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions