Documentation Cleanup Summary
This document summarizes the cleanup of outdated and inconsistent documentation files.
Files Removed
Outdated Documentation (4 files)
docs/FIRESTORE.md- Replaced byFIRESTORE_SCHEMA.md- Was marked as outdated with a deprecation notice
- Content was superseded by the more comprehensive schema documentation
UNUSED_FILES_ANALYSIS.md- Temporary analysis report- Analysis completed and files were already removed
- No longer needed
DELETED_FILES_SUMMARY.md- Temporary summary- Summary of deleted files, no longer needed after cleanup
scripts/unused-files-report.md- Duplicate analysis report- Duplicate of the analysis report, redundant
Files Updated
1. docs/API.md
- Changed: References to
FIRESTORE.md→FIRESTORE_SCHEMA.md - Reason: FIRESTORE.md was removed, FIRESTORE_SCHEMA.md is the current documentation
2. docs/ARCHITECTURE.md
- Removed: Reference to non-existent
unused/folder - Reason: The folder doesn't exist in the codebase
3. README.md
- Removed: Duplicate and outdated Firestore structure section (lines 29-178)
- Replaced with: Brief reference to
docs/FIRESTORE_SCHEMA.md - Reason: The detailed structure documentation belongs in the dedicated schema documentation file
Current Documentation Structure
The docs/ directory now contains:
- API.md - API usage (no custom API, uses Firestore)
- ARCHITECTURE.md - Project architecture and folder structure
- CONTRIBUTING.md - Contribution guidelines
- DEPLOYMENT.md - Deployment instructions
- ENV_VARIABLES.md - Local environment variables setup
- ENVIRONMENTS.md - Deployment environments (dev/prod)
- FIRESTORE_SCHEMA.md - Complete Firestore schema documentation (source of truth)
- ROUTING.md - Routing system documentation
- SECRETS.md - Secrets management
- SERVICE_ACCOUNT_PERMISSIONS.md - Service account permissions
- STATE_MANAGEMENT.md - State management patterns
- TESTING.md - Testing strategy
- THEMING.md - Theming and styling
Notes
ENV_VARIABLES.mdandENVIRONMENTS.mdserve different purposes:ENV_VARIABLES.md: Local development environment variables setupENVIRONMENTS.md: Deployment environments (dev/prod configurations)
- Both files are needed and serve complementary purposes
- The authoritative source for Firestore schema is
src/schema/firestoreSchema.ts docs/FIRESTORE_SCHEMA.mdis generated/updated from the schema file