FerryDocs
ContributingDocs site

The npm scripts

Eight npm scripts in docs/ run, measure, generate, check and build the site.

Edit on GitHub

dev. Write the page and look at it in the browser.

1 / 6
From a new page to the export

What each script does

Run each script in docs/.

ScriptWhat it does
npm run devNext.js dev server with hot reload
npm run buildStatic export to out/, then the link check
npm startServes out/ locally
npm run typechecknext typegen && tsc --noEmit
npm run generateRegenerates the reference pages from the Rust code (needs cargo)
npm run generate:checkFails when a generated file is stale
npm run check-linksChecks out/ for broken internal links and anchors
npm run check-contentMeasures the pages against the rules of AUTHORING.md: simple English, words per page, figures

On this page