This directory contains the mdBook version of the Better Code course.
Install Rust and Cargo:
Linux and macOS:
curl https://sh.rustup.rs -sSf | shWindows: Download the installer from here.
cargo install mdbook@0.4.48
cargo install mdbook-katexTo build and serve the book locally:
mdbook serveThis will start a local server at http://localhost:3000.
To just build the book without serving:
mdbook buildThe built book will be in the book/ directory.
The book is automatically built and deployed to GitHub Pages using GitHub Actions when changes are pushed to the main branch.
- Edit existing chapters in the
src/directory - Add new chapters by creating new
.mdfiles insrc/ - Update
src/SUMMARY.mdto include new chapters in the table of contents - The book will automatically rebuild when you push changes to GitHub