This is a modern documentation site built with Fumadocs and Next.js, featuring analytics, user feedback, and more.
- 📊 Analytics Integration - Tracks page views, time on page, and user interactions
- 👍 Helpful Rating System - Users can rate documentation pages
- 🤖 Chatbot Integration - AI-powered assistance (coming soon)
- 📱 Mobile Responsive - Works on all devices
- 🚀 CI/CD Pipeline - Automated testing and deployment
- Node.js 18+ and npm/yarn/pnpm
- A PostHog account for analytics
-
Clone the repository
git clone https://github.com/your-username/devfolio-docs.git cd devfolio-docs
-
Install dependencies
npm install # or yarn install # or pnpm install
-
Set up environment variables
cp .env.local.example .env.local
Update
.env.local
with your PostHog credentials:NEXT_PUBLIC_POSTHOG_KEY=your_posthog_project_key NEXT_PUBLIC_POSTHOG_HOST=https://app.posthog.com # or your self-hosted instance
-
Run the development server
npm run dev # or yarn dev # or pnpm dev
Open http://localhost:3000 with your browser to see the result.
npm run dev
- Start development servernpm run build
- Build for productionnpm start
- Start production servernpm test
- Run testsnpm run lint
- Run ESLintnpm run type-check
- Check TypeScript types
-
Build the application:
npm run build
-
Start the production server:
npm start
This project uses PostHog for analytics. The following events are tracked:
- Page views
- Time spent on page
- Document helpfulness ratings
- Search queries (coming soon)
- Chatbot interactions (coming soon)
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Fumadocs - Documentation framework
- Next.js - React framework
- PostHog - Product analytics
- Tailwind CSS - Utility-first CSS framework