ContributingDocs site
Change a reference page
To change a generated page, change the Rust side. Then run the generator and commit the result.
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 DTO.
Change the Rust side
| To change | Edit |
|---|---|
| The text of the CLI and server pages | The clap help of ferry and ferryd |
| The text of the API pages | The #[utoipa::path] annotations of utoipa and the doc comments of the schemas, in ferry-api and ferry-core |
| How the script makes the pages | scripts/generate.mjs |
Regenerate
cd docs
npm run generate # runs cargo in the repository rootCheck
npm run generate:check # CI: exits 1 when a committed file is staleCommit the result
The generated files are in git. Thus npm run build works without Rust.