From 4538547a6f8e0d98b338bede68db41efe2486a14 Mon Sep 17 00:00:00 2001 From: hellojukay Date: Fri, 25 Sep 2020 14:35:24 +0800 Subject: [PATCH] mdbook: add page (#4351) --- pages/common/vagrant.md | 4 ++++ pages/linux/mdbook.md | 24 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 pages/linux/mdbook.md diff --git a/pages/common/vagrant.md b/pages/common/vagrant.md index 3ce3e94b4..5c38b1c40 100644 --- a/pages/common/vagrant.md +++ b/pages/common/vagrant.md @@ -26,3 +26,7 @@ - Connect to machine via SSH: `vagrant ssh` + +- Output the SSH configuration file of the running Vagrant machine: + +`vagrant ssh-config` diff --git a/pages/linux/mdbook.md b/pages/linux/mdbook.md new file mode 100644 index 000000000..4d2a0bf80 --- /dev/null +++ b/pages/linux/mdbook.md @@ -0,0 +1,24 @@ +# mdbook + +> Create online books by writing makrdown files. +> More information: . + +- Create a mdbook project in the current directory: + +`mdbook init` + +- Create a 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`