This is a Next.js community website for Versatile Thermostat, featuring multilingual documentation and an integrated search powered by Pagefind.
- 📚 Multilingual documentation (EN, FR, DE)
- 🔍 Full-text search with Pagefind
- 🌐 Static site generation for optimal performance
- 🎨 Responsive design with dark mode support
npm installBefore starting development, you need to build the site once to generate the search index:
npm run buildThis command will:
- Generate the static site in
/out - Create the Pagefind search index
- Copy the index to
/public/pagefind/for development use
npm run devThe dev script automatically copies the Pagefind index before starting the development server.
Open http://localhost:3000 with your browser to see the result.
If you want to start the dev server without the search functionality:
npm run dev:cleanIf you make significant changes to the documentation and want to update the search index:
npm run build
npm run devnpm run dev- Start development server with search enablednpm run dev:clean- Start development server without search setupnpm run build- Build for production and generate search indexnpm run start- Start production server (requiresnpm run buildfirst)npm run lint- Run ESLint
vtherm-website/
├── app/ # Next.js app directory
│ ├── [lng]/ # Language-specific routes
│ │ └── docs/ # Documentation pages
├── components/ # React components
│ ├── layout/ # Layout components (Header, Footer, etc.)
│ └── search/ # Pagefind search component
├── plans/ # Implementation plans and guides
├── scripts/ # Build and dev scripts
└── public/ # Static assets
- Pagefind Implementation Plan - Complete implementation guide
- Pagefind Testing Guide - Testing checklist and validation
- Pagefind Dev Mode - Development mode setup explanation
- Next.js 16 - React framework
- Pagefind - Static search library
- Tailwind CSS - Styling
- TypeScript - Type safety
- i18next - Internationalization
When contributing to the documentation:
- Add or modify documentation files in the repository
- Run
npm run buildto regenerate the search index - Test your changes with
npm run dev