Running an mdbook Server on Raspberry Pi

Installation steps

After installing Rust, use Cargo to install mdbook:

cargo install mdbook

Running the mdbook server

Create a new book

Navigate to the directory where you want to create your book:

cd ~

Create a new mdbook project

mdbook init socksdox

Build and serve the book

Change to your book's directory:

cd socksdox/
mdbook build && mdbook serve

By default, the server runs on http://localhost:3000. You can access it from a web browser on your Raspberry Pi or any device on the same network

Edit contents

nano chapter_1.md
nano chapter_2.md
nano SUMMARY.md