The Sway Reference
Setup
If you wish contribute to this reference:
-
Install Rust if it's not installed.
-
Install mdbook.
cargo install mdbook
-
To build the book, ensure you are in /sway/sway-book
and run:
mdbook build
-
To serve a hot-reloading instance of the book in your browser, run:
mdbook serve --open