Documentation site for the BetterGov platform built with Fumadocs and Next.js.
BetterGov.ph is a modern platform that centralizes Philippine government services and information, making them more accessible to citizens. This documentation provides guides, API references, and resources for contributors and users.
- Next.js 15.5.4 - React framework for production
- React 19.1.1 - UI library (compatible with fumadocs-ui)
- Fumadocs - Documentation framework
- fumadocs-ui 15.8.2
- fumadocs-core 15.8.2
- fumadocs-mdx 12.0.1
- TypeScript 5.9.2 - Type safety
- Tailwind CSS 4.1.13 - Styling
- Node.js 20 or higher
- npm or yarn package manager
# Clone the repository
git clone https://github.com/Justin322322/BetterGov-Docs.git
cd bettergov-docs/docs
# Install dependencies
npm install
# Start development server
npm run devOpen http://localhost:3000 in your browser to view the documentation site.
npm run dev- Start development servernpm run build- Build for productionnpm run start- Start production servernpm run lint- Run code lintingnpm run format- Format code with Prettiernpm run validate- Run all validation checksnpm run sync-docs- Sync documentation from BetterGov repository
This documentation site automatically syncs with the upstream BetterGov repository to keep content up-to-date. When the upstream repository updates their documentation files, this site will automatically receive those updates within 12 hours and commit them directly to the main branch.
- Automatic Sync: GitHub Actions workflow runs every 12 hours
- Direct Commit: Documentation updates are automatically committed to main (no PR review)
- Manual Sync: Run
npm run sync-docsto sync immediately - Files Synced: README.md, docs/Meilisearch.md, CONTRIBUTING.md, CODE_OF_CONDUCT.md, TESTING.md
- Source: Updates come from bettergovph/bettergov
For detailed sync configuration and troubleshooting, see the documentation files in the repository:
Contributions are welcome! Please read our contributing guidelines and feel free to submit issues and pull requests.