Install mdBook:
cargo install mdbook
To build the book's HTML:
mdbook build
And to edit the book in pseudo-interactive "watch" mode:
mdbook watch --open # local files
mdbook serve --open # server at localhost:3000
We use the linkcheck
tool to find broken links.
To run it locally (requires the nightly toolchain):
curl -sSLo linkcheck.sh https://raw.githubusercontent.com/rust-lang/rust/master/src/tools/linkchecker/linkcheck.sh
sh linkcheck.sh book