These are the docs for the classic version of mochajs.org. For the Astro site released in 2025, see docs-next.
The classic mochajs.org is built using Eleventy, a simple static site generator.
- Run
npm install/npm cifrom working copy root to get Node.js deps. - To include the API documentation, run
npm run docs:apibefore the either of the following commands. - To serve the site and rebuild as changes are made, run
npm run docs-watch. - To rebuild the site once, run
npm run docs. This also builds the Astro site. - To preview the site, run
npm run docs:preview. The Astro site is available at/next.
- The content lives in
docs/index.md; everything else is markup, scripts, assets, etc. - This file (
docs/README.md) should not be included in the build. docs/_site_is where the deployed site lives. This directory is not under version control.