So you wanna build the site?
mochajs.org is built using Eleventy, a simple static site generator.
- Run
npm install
/npm ci
from working copy root to get Node.js deps. - To serve the site and rebuild as changes are made, execute
npm run docs-watch
. - To rebuild the site once, execute
npm run docs
.
- 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 directories are not under version control.