Install dependencies:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shor install the Rust toolchain using another methodcargo install mdbookcargo 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.