EcoLafaek Documentation Site 
Modern documentation site for EcoLafaek built with VitePress.
🌐 Live Site 
Documentation: https://docs.ecolafaek.com
✨ Features 
- Automatic Syncing: Documentation automatically syncs from README.md files across the project
 - Modern UI: Beautiful, responsive design with dark mode support
 - Fast Search: Local search powered by VitePress
 - Auto-deploy: Vercel automatically deploys on push to GitHub
 - Easy Navigation: Organized sidebar with all documentation sections
 - Custom Domain: Deployed on custom domain via Vercel
 
🚀 Quick Start 
Development 
# Install dependencies
npm install
# Sync README files and start dev server
npm run dev
# Build for production
npm run build
# Preview production build
npm run previewThe site will be available at http://localhost:5173
📁 How It Works 
Automatic README Syncing 
The sync-docs.js script automatically:
Copies README.md files from all project components:
- Main README.md → getting-started.md
 - Diagram/README.md → architecture.md
 - ecolafaek/README.md → mobile-app/index.md
 - mobile_backend/README.md → backend/index.md
 - ecolafaek_public_dahboard/README.md → dashboard/index.md
 - ecolafaek_admin_panel/README.md → admin/index.md
 - database/README.md → database/index.md
 
Transforms content for VitePress:
- Fixes relative image paths
 - Updates cross-references between docs
 - Adds VitePress frontmatter
 
Copies images to public folder:
- docs/image/ → public/image/
 - mobile_backend/image/ → public/backend-images/
 - ecolafaek/assets/screens/ → public/mobile-images/screens/
 - Diagram/Image/ → public/diagram-images/
 
Making Changes 
When you update any README.md file in the project:
- Locally: Run 
npm run dev- sync happens automatically - Production: Push to GitHub - Actions will sync and deploy automatically
 
You can also manually sync without starting the dev server:
npm run sync🎨 Customization 
Theme 
Edit .vitepress/theme/style.css to customize colors, fonts, and styling.
Navigation 
Edit .vitepress/config.mjs to update:
- Sidebar navigation
 - Top navigation
 - Social links
 - Site metadata
 
Homepage 
Edit index.md to customize the landing page hero, features, and content.
📦 Project Structure 
docs/
├── .vitepress/
│   ├── config.mjs              # VitePress configuration
│   └── theme/
│       ├── index.js            # Theme customization
│       └── style.css           # Custom styles
├── public/                     # Static assets (auto-generated)
│   ├── image/                  # Main project images
│   ├── backend-images/         # Backend screenshots
│   ├── mobile-images/          # Mobile app screenshots
│   ├── diagram-images/         # Architecture diagrams
│   └── app_logo.png           # App logo
├── index.md                    # Homepage
├── getting-started.md          # Synced from ../README.md
├── architecture.md             # Synced from ../Diagram/README.md
├── mobile-app/
│   └── index.md               # Synced from ../ecolafaek/README.md
├── backend/
│   └── index.md               # Synced from ../mobile_backend/README.md
├── dashboard/
│   └── index.md               # Synced from ../ecolafaek_public_dahboard/README.md
├── admin/
│   └── index.md               # Synced from ../ecolafaek_admin_panel/README.md
├── database/
│   └── index.md               # Synced from ../database/README.md
├── sync-docs.js               # Sync script
└── package.json               # Dependencies and scripts🚀 Deployment 
Vercel (Current) 
The site is deployed on Vercel with automatic deployments:
Live URL: https://docs.ecolafaek.com
Deployment Settings:
- Root Directory: 
docs - Build Command: 
npm run build - Output Directory: 
.vitepress/dist - Install Command: 
npm install 
Auto-deploy triggers:
- Automatic deployment when you push to the 
mainbranch - Any changes to README.md files in the project
 - Manual trigger from Vercel dashboard
 
Vercel Configuration 
The site uses base: '/' in config.mjs for custom domain support.
Local Build 
# Build the site locally
npm run build
# The built site is in .vitepress/dist/
# Preview it with:
npm run preview📝 Adding New Documentation 
To add a new documentation page:
Option A: Add to existing component README
- Update the relevant README.md file (e.g., mobile_backend/README.md)
 - Run 
npm run syncto sync changes 
Option B: Create new standalone page
- Create a new .md file in the docs/ folder
 - Update 
.vitepress/config.mjssidebar to include it - The page will be included in the build automatically
 
🛠️ Technologies 
- VitePress: Modern static site generator powered by Vue & Vite
 - Vue 3: Reactive framework for the UI
 - Vite: Fast build tool and dev server
 - GitHub Actions: CI/CD for automatic deployment
 - GitHub Pages: Free hosting for the documentation site
 
📞 Need Help? 
- VitePress Docs: https://vitepress.dev/
 - Project Issues: https://github.com/ajitonelsonn/EcoLafaek/issues
 
Built with ❤️ for Timor-Leste | AWS AI Agent Global Hackathon
