HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

mdbook — Create online books by writing Markdown files. More information: <https://rust-lang.github.io/mdBook

Submitted by: @import:tldr-pages··
0
Viewed 0 times
onlinecreatecommandmarkdownwritingmdbookclibooks
linux

Problem

How to use the mdbook command: Create online books by writing Markdown files. More information: <https://rust-lang.github.io/mdBook/cli/index.html>.

Solution

mdbook — Create online books by writing Markdown files. More information: <https://rust-lang.github.io/mdBook/cli/index.html>.

Create an mdbook project in the current directory:
mdbook init


Create an mdbook project in a specific directory:
mdbook init {{path/to/directory}}


Clean the directory with the generated book:
mdbook clean


Serve a book at <http://localhost:3000>, auto build when file changes:
mdbook serve


Watch a set of Markdown files and automatically build when a file is changed:
mdbook watch

Code Snippets

Create an mdbook project in the current directory

mdbook init

Create an mdbook project in a specific directory

mdbook init {{path/to/directory}}

Clean the directory with the generated book

mdbook clean

Serve a book at <http://localhost:3000>, auto build when file changes

mdbook serve

Watch a set of Markdown files and automatically build when a file is changed

mdbook watch

Context

tldr-pages: linux/mdbook

Revisions (0)

No revisions yet.