Add common mdBook tasks.

This commit is contained in:
Bauke 2022-10-30 20:59:33 +01:00
parent 599a4bcef2
commit 3cf6385d2c
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 19 additions and 0 deletions

View File

@ -40,3 +40,22 @@ args = [
"--skip-clean",
"--target-dir=target/tarpaulin"
]
[tasks.book]
workspace = false
install_crate = "mdbook"
command = "mdbook"
[tasks.clean-book]
extend = "book"
args = ["clean", "hooked-book"]
[tasks.build-book]
extend = "book"
dependencies = ["clean-book"]
args = ["build", "hooked-book"]
[tasks.serve-book]
extend = "book"
dependencies = ["clean-book"]
args = ["serve", "hooked-book"]