Install mdbook
and then open a new terminal session in order to run the subsequent commands
cargo install mdbook
To build book:
mdbook build
To serve locally:
mdbook serve
With forc installed running the command
cargo run --bin forc-documenter write-docs
will generate the proper docs for forc
and its commands based on forc --help
. This behavior is further documented in the Forc documenter README.