Install dependencies:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
or install the Rust toolchain using another methodcargo install mdbook
cargo install near-cli-rs
Build: mdbook build
Deploy to mainnet: NEAR_ENV=mainnet npx web4-deploy out/html web4.slimebook.near --nearfs
Deploy to test: NEAR_ENV=testnet npx web4-deploy out/html web4.slimebook.testnet --nearfs
Add --deploy-contract
option when you deploy it for the first time.