FerryDocs
ContributingDocs site

Change a reference page

To change a generated page, change the Rust side. Then run the generator and commit the result.

Edit on GitHub

Change Rust. The text of the reference pages is in the Rust code.

1 / 4

Do these steps after you change a command, a flag, an API handler or a .

Change the Rust side

To changeEdit
The text of the CLI and server pagesThe help of ferry and ferryd
The text of the API pagesThe #[utoipa::path] annotations of and the of the schemas, in ferry-api and ferry-core
How the script makes the pagesscripts/generate.mjs

Regenerate

Terminal
cd docs
npm run generate         # runs cargo in the repository root

Check

Terminal
npm run generate:check   # CI: exits 1 when a committed file is stale

Commit the result

The generated files are in git. Thus npm run build works without Rust.

On this page