Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

clean 命令

clean 命令用於刪除生成的手冊和任何其他建置製品。

mdbook clean

指定目錄

The clean command can take a directory as an argument to use as the book’s root instead of the current working directory.

mdbook clean path/to/book

--dest-dir

The --dest-dir (-d) option allows you to override the book’s output directory, which will be deleted by this command. Relative paths are interpreted relative to the current directory. If not specified it will default to the value of the build.build-dir key in book.toml, or to ./book.

mdbook clean --dest-dir=path/to/book

path/to/book could be absolute or relative.