This guide explains how to set up a local environment to build the GPU Security Toolkit using mdBook.
mdBook is installed via Rust’s package manager (cargo).
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shRestart your shell, then verify:
rustc --version
cargo --version- Download the installer from
https://rustup.rs - Run the installer with default options
- Restart your terminal
- Verify:
rustc --version
cargo --versioncargo install mdbookVerify:
mdbook --versiongit clone https://github.com/Zero-Trust-AI-Security/gpu-security-toolkit.git
cd gpu-security-toolkitmdbook buildOutput will be written to:
./book/Open book/index.html in your browser.
mdbook serveOpen:
http://localhost:3000PDF builds require additional tooling:
- Pandoc
- Tectonic
- mdbook-pandoc
cargo install mdbook-pandochttps://pandoc.org/installing.html
https://tectonic-typesetting.github.io/en-US/install.html
Once installed:
mdbook buildThe PDF will be generated using the pdf profile in book.toml.
Note: PDF generation is fully supported in CI; local PDF builds are optional.
mdbook: command not found
Ensure Cargo’s bin directory is in your PATH:
export PATH="$HOME/.cargo/bin:$PATH"mdbook clean
mdbook build