The cookbook is available at https://paginegiappe.it/
This website is built using Docusaurus, a modern static website generator.
- Node.js 20 or 22 LTS
- npm 9+
Use npm. If package-lock.json is present, prefer npm ci.
# first time or on CI
npm ci
# or, if you are developing and adding deps
npm installnpm startThis starts the dev server and opens a browser. Changes hot-reload automatically.
npm run buildThis generates static files into the build directory.
Optional local preview:
npm run serveThis project is deployed on Netlify.
- Build command:
npm run build - Publish directory:
build - Environment:
NODE_VERSION = 22
You can connect the site to this GitHub repo for automatic deploys on push.
npm run build
npx netlify-cli deploy --prod --dir buildYou will be prompted to pick the existing site.
To update ricettario.json:
ruby serialize_recipes.rbTo add a git hook that runs serialize_recipes.rb, install Husky:
npm install --save-dev husky
npx husky initThen edit .husky/pre-commit and add:
ruby serialize_recipes.rb
git add ricettario.jsonnpm start— start local dev servernpm run build— build static sitenpm run serve— preview the built site locally