This repository contains the source code for the openHAB Foundation e.V. website, built with VitePress.
Node.js (v20+ recommended) is required. Corepack can be used to manage pnpm.
Enable pnpm using Node Corepack:
corepack enable
corepack prepare pnpm@latest --activateAlternatively, install it globally via npm:
npm install -g pnpmInstall project dependencies:
pnpm installFormat the code with oxfmt:
pnpm run formatStart the local development server with hot-reloading:
pnpm run devOpen http://localhost:5173 (or the URL displayed in the terminal) in your browser.
Build the static site for production deployment:
pnpm run buildThe compiled output will be located in .vitepress/dist.
Preview the built static site locally:
pnpm run preview